Problems seeking

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems seeking

Erwin Rol
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems seeking

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

Regards,
Javi

2009/3/15 Erwin Rol <[hidden email]>
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems seeking

Erwin Rol
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 <[hidden email]>
>
>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems seeking

Wim Taymans
In reply to this post by Erwin Rol
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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems seeking

Erwin Rol
Wim Taymans wrote:

> 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.

That worked, thanks for the info.

- 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel