[gst-devel] Start Playback from a particular position.

Wim Taymans wim at fluendo.com
Thu Mar 22 10:48:17 CET 2007


On Thu, 2007-03-22 at 15:04 +0530, Snaik wrote:
> Hi all,
>        i have written a simple player application using gstreamer.
> i would like to know how can i start playback from a particular
> position in a stream.
> 
> heres what i have tried.
>       [] set the pipeline to paused state 
>       []  wait for the  state change to complete
>       []  issue a seek 
>       []  set pipeline to playing state.
> 
> but in this case the first frame from the stream is displayed(due to
> preroll) before the frame from the seek position is displayed. 
> is it possible to start the playback directly from a particular
> position in the stream.
> 
Currently the only way to do this is to preroll a partial pipeline as
explained in
http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/part-block.txt?revision=1.5&view=markup
In the future you should be able to issue a seek on playbin (decodebin)
in the READY state, which will internally perform these actions and
start from the position you asked for.

Wim

> thanks in advance
> 
>   
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list