[gst-devel] Problems seeking

Erwin Rol mailinglists at erwinrol.com
Sun Mar 15 16:10:02 CET 2009


Javier Gálvez Guerrero wrote:
> Do you need to set the pipeline in the NULL state after pausing it?

If I don't set the pipeline in NULL state i don't seem to be able to set 
a new location on the filesrc.

- Erwin


> 
> Regards,
> Javi
> 
> 2009/3/15 Erwin Rol <mailinglists at erwinrol.com>
> 
>> 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
>>
>> 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
>>
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 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