Re: Modify frame rate of avi and asf file using Windows Media Obje
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Aug 2008 14:22:44 -0400
From: "ak268"
example, if i set the currrent pos i find that the
associated callback gets called, indicating that the pos
has been changed, but there is no such indication about
when the media has actually repainted at that position.
WMP just relies on DS and can only tell you when the seeking
operation completes on the graph.
Seeking is a complicated operation. The gist of it is that
seeking is performed by the file parser and causes all data
to be flushed and re-buffered and it may take some time for
the new data to reach the renderer after the parser has
completed the seek.
What you can do (in DS) is to stop the graph, seek, then
pause and wait for the pause to complete (Pause() is
asynchronous). When pause completes, the renderer will be
displaying the first frame.
Notice however that, if you always seek to the same position
all of your files at once and you use DS, you can also just
render all of the files in the same graph and they will stay
in sync automagically.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- References:
- Modify frame rate of avi and asf file using Windows Media Object M
- From: ak268
- Re: Modify frame rate of avi and asf file using Windows Media Object M
- From: Alessandro Angeli
- Re: Modify frame rate of avi and asf file using Windows Media Obje
- From: ak268
- Re: Modify frame rate of avi and asf file using Windows Media Obje
- From: ak268
- Modify frame rate of avi and asf file using Windows Media Object M
- Prev by Date: multiple wmv append - audio dropout and video freezing in result
- Next by Date: Re: VBA script to send a filename (drive/path) and launch to play WMP
- Previous by thread: Re: Modify frame rate of avi and asf file using Windows Media Obje
- Next by thread: VBA script to send a filename (drive/path) and launch to play WMP
- Index(es):
Relevant Pages
|