[gst-devel] Problems seeking

Wim Taymans wim.taymans at gmail.com
Sun Mar 15 21:05:01 CET 2009


On Sun, 2009-03-15 at 14:35 +0100, Erwin Rol wrote:
> Hello,
> 
> i am trying to seek in a pipeline but it always seems to fail. I have 
> tried it in every possible state NULL/READY/PAUSED/PLAYING but it never 
> works.
> 
> My pipeline setup is like that
> 
> filesrc location=audio.ogg ! queue ! oggdemux ! vorbisparse ! vorbisdec 
> ! audioconvert ! queue ! alsasink
> filesrc location=video.ogv ! queue ! oggdemux ! theoraparse ! theoradec 
> ! queue ! dfbvideosink

Adding a queue in front of oggdemux makes it work in push mode and
disables seeking currently (because it's not yet implemented)

Remove the queue in front of the oggdemux elements and seeking will
work.

Wim

> 
> So the audio and video are in separate files. Playing stopping, pausing 
> works fine.  But i can't get seeking to work. I need seeking because i 
> have 6 audio tracks in 6 files and need to beable to switch the track 
> without stopping the video (or at least only pause it for a sec and than 
> restart at the old position)
> 
> I tried it like that
> 
> 1) set pipeline PAUSED
> 2) get pipeline position
> 3) set pipeline NULL
> 4) set new location=audio.ogg
> 5) set pipeline PAUSED
> 6) seek to position got at (2)
> 7) set pipeline PLAYING
> 
> I do wait for the ASYNC state changes, but the seek always returns 
> FALSE, and the files starts playing at position 0.
> 
> What am I doing wrong, cause i really can't find much in the net other 
> than that seeking only works in paused/playing state.
> 
> - Erwin
> 
> 
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> 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