[vlc-devel] Re: input_ClockManageRef() and MPEG2 PS
saman at natlab.research.philips.com
Mon Sep 1 09:02:56 CEST 2003
John Michael Zorko wrote:
> ... what this does, when playing a stream, is effectively play
> everything between every other sequence header, just as an experiment
> to see if the macroblocking artifacts were still present (server VLC
> streaming to client VLC). Surprise -- they went (mostly) away, so this
> is cool. However, i've a clocking problem now, because pf_demux_ps()
> calls input_ClockManageRef() which does an mwait() to let the elapsed
> time between the last PTS and the current PTS go by (at least I think
> this is what it's doing). In other words, the MPEG is still playing
> back at normal speed, even though i'm skipping all of the data between
> every other sequence header. I would like it to play at 2x in this case.
> So, I added the input_ClockManageRef() call befpre pf_demux_ps(), but
> this didn't help. What I think I want to do is set the current clock
> to the PTS of the stuff I want to play, not the stuff I want to skip.
> Am I understanding this correctly? Can someone give me an idea how to
> do this? Any info is much appreciated, as always!
What you need to do is let the clock reinitialize itself, so it jumps
the clock gap you just created. It will then just play the sequece you
jumped to directly in its normal speed.
So after each jump the clock needs to be reinitilized with the new time
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel