Unable to Stop a graph

From: Alain (alain_au_travail_at_hotmail.com)
Date: 10/06/04


Date: 5 Oct 2004 18:39:49 -0700

Hi,
I wrote code to programmaticaly build a filter graph to play MPEG-2
files to a DDraw Exclusive mode surface, through the Overlay mixer:

Filters:

File -> MPEG-2 Demux -> MPEG-2 Video Decoder -> Overlay Mixer

As MPEG-2 video decoder, I am using the ULead, uldsmpeg.ax filter.

With such graph, if I interrupt the video with a call to
IMediaControl::Stop(), then this call blocks and never returns. The
Stop call is made from the app WindowProc, which receives the keyboard
input from user requesting to stop the video.
This same video interruption mechanism works fine with other types of
files (using similar filter graph) - using other video decoder
filters: AVI, MPEG-1 .

For a test, I built a similar graph in GraphEdit, using the same
MPEG-2 filter.
Filters:
File -> MPEG-2 Demux -> MPEG-2 Video Decoder -> Video Renderer

I have no problem Pausing/Stopping this graph within GraphEdt.

Any clue ? Could the problem be related to the fact that DDraw
Exclusive mode is used in combinaison with this ULead MPEG-2 decoder I
am using ? Seems to me the video decoder should not be influenced by
the rendering method (downstream).

Thanks,

Alain



Relevant Pages

  • Re: Unable to Stop a graph
    ... >I wrote code to programmaticaly build a filter graph to play MPEG-2 ... >As MPEG-2 video decoder, I am using the ULead, uldsmpeg.ax filter. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Problem: color space conversion by DirectShow
    ... > After that I call series of filters that requiere YUY2 ... AviSynth clearly does not build the same graph otherwise it ... any filter that can extract data from the graph?). ... the video renderer, which won't be the case in AviSynth, the ...
    (microsoft.public.win32.programmer.directx.video)
  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.win32.programmer.directx.video)
  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Re: Creating a sample grabber to connect to YUY2 / VideoInfo2
    ... >I want the MS sample grabber to work with DVDs and MPEG-2 files. ... >require it to be able to attach to Video Info 2 formatted streams. ... DIBs in YUV formats are always top-down. ... You can't do this with a trans-in-place filter if you're hooking the filter ...
    (microsoft.public.win32.programmer.directx.video)

Loading