[vlc-devel] RTSP trickplay - libvlc_media_player_set_rate support for fast forward/rewind

Nuno Mota ee05154 at fe.up.pt
Sat Jun 4 04:50:30 CEST 2011

2011/6/1 Sébastien Escudier <sebastien-devel at celeos.eu>

> On Wed, 2011-06-01 at 14:29 +0100, Nuno Mota wrote:
> > However there's a big problem when you set rate 0. VLC understood a
> > rate of -31!!!
> The input checks for <= 0 rate at startup but not in
> INPUT_CONTROL_SET_RATE. I opened a ticked for this :
> http://trac.videolan.org/vlc/ticket/4861
> > The problem you mentioned in the forum is kind of a big fail (yes i'm
> > mundu :). When fast rewinding the time gets stuck and then it doesn't
> > update. If you press play it will only start from the time you issued
> > the setRate(negative), and not at the time where I pressed play again.
> > Do you know where vlc actually updates its time?
> There are several issues with rtsp and time update. In fact the time
> will always update at 1x speed.
> That's because rtsp servers re-calculate timestamps, and vlc thinks it
> receives the pictures at 1x speed.
> Time update is based on timestamps

Whenever the timestamp changes it means it's rate times ahead or behind the
original time! Unfortunatly  i'm currently writing my thesis and have no
time to dwell into the VLC source code again. However VLC knows at which
rate the video is playing, which means everytime it updates the video time
(whenever the timestamp changes) it should check first for the specific
rate! I think that playing from a local file VLC plays correctly. But not
when receiving from a stream!


> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110604/8ac8c4fe/attachment.html>

More information about the vlc-devel mailing list