[vlc-devel] Re: Skipped/Drop Frames

Hussain conundrums at gmail.com
Fri Sep 24 15:10:21 CEST 2004


On Fri, 24 Sep 2004 10:20:57 +0100, Dermot McGahon <dermot at dspsrv.com> wrote:
> On Fri, 24 Sep 2004 01:26:17 -0700, Hussain <conundrums at gmail.com> wrote:
> 
> > I think this needs a bit more explanation. When I un-pause a stream,
> > 99% of the time, I get a late picture or early picture skipped
> > warning.
> 
> I'm copying the list about this. It could be that some buffers need
> to be emptied when you pause or it could be that this is normal but
> that it should "settle down" very soon after.
> 
> 
> > This causes the stream to pause for a while before continuing
> > on. HOWEVER VLC  thinks that the stream is still being played, and
> > continues to move the time progress bar and increment the time.
> 
> Maybe VLC needs to know that it is still filling buffers, waiting
> for sync, and not to update the progress bar during this period.
> 
> 
> > Thus
> > this causes the time shown/displayed by VLC to go out of Sync with the
> > actual time of the stream play back. With my latest code, I was using
> > the play back time calculated by VLC. So when after a pause and play,
> > you pause the stream again, on hitting play, VLC will start playback
> > on average 5 secs, before or after the time when the stream was
> > paused. For example, the second time around you pause the stream at
> > 30secs. On resuming play, VLC will start playback at 35 secs. Other
> > than that, the play back resumes normally after 1 or 2 secs.
> 
> So, are you saying that pause/resume works reasonably well, but that
> pause/resume/pause/resume in quick succession does not?

Yes pause/resume works reasonably well. 
It's pause/resume/pause/resume that can lead to problems. 

The attached patch enables, pause to resume from the correct place.
Changes only need to be made to the livedotcomm.cpp file, which can be
found in the modules/demux/ directory.

Hussain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: livedotcom.patch
Type: text/x-patch
Size: 1459 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20040924/98b8a2fa/attachment.bin>


More information about the vlc-devel mailing list