Re: repeating video pauses before restart

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Fri, 20 Jan 2006 06:18:04 -0800, James B wrote:

> Hello, I now have DS up and running and even got WM_GRAPHNOTIFY working so my
> video is repeating (using the playwnd.cpp example code). The problem is
> there is a slight delay between the video restarting, and I want this to be
> instant, or near instant. Is there someway I can acheive this?
>
> I thought this wouldn't be a problem as the video file is pretty small
> (10MB) and should be fully cached by the OS on the repeat, but the decoding
> hardware or software must need some 'spool up' time to decode it from the
> beginning. I have a few ideas of how I can fix this but wanted to hear if
> anyone has any experience with this.

I presume that on ec-complete you are seeking to the beginning. This will
re-cue the graph -- that is, the graph will be paused until the first frame
from the new position has reached the renderer, then the graph will
transition to run mode again. The transition process will make a slight
pause -- at least 10ms.

I would think the best way to get a seamless loop is to keep the graph
running and adjust the timestamps. This is easily done with a two-graph
solution such as GMFBridge.

G
.



Relevant Pages

  • Re: Intermitent IMediaControl::Stop problem
    ... >>I have developed an application that is streaming live video from Viewcast ... with only one of the video streams displayed at any given time. ... >>on the other graph. ... > maybe you should try waiting for state changes for a shorter period of ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: InfTee doesnt work with Video Mixing Renderer 9
    ... > The graph works fine in this configuration. ... > When I add the InfTee filter, it cannot connect to VMR9 directly. ... > This problem doesn't occur with the old Video Renderer. ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Never getting EC_COMPLETE
    ... I'm never getting an EC_COMPLETE event when I play an MPEG-2 video. ... While one graph is being played I'm building the ... I'm never getting an EC_COMPLETE from the first graph. ... rendering the output pin of the new source filter and it reuses the ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Show 1 Video on 2 forms
    ... video preview. ... The graph contains a set of filters which process and display the video. ... What you need to do is to find a filter, probably called "Video Renderer" ... Find the input pin and disconnect it from the upstream pin. ...
    (microsoft.public.win32.programmer.directx.video)
  • Desperate with this frigging graph
    ... here is the function I made to create and run the graph. ... but since the video was interlaced and I wanted to deinterlace ... developed after a lot of pain a filter to convert from one vinfo to the ... and theere's a grabber to make thumbnails. ...
    (microsoft.public.win32.programmer.directx.video)