How to seek with a negative rate?

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

How to seek with a negative rate?

Markus Becker-2
Hi,
I try to implement fast forward and fast rewind in a C++ application.
Fast forward is no problem, but with fast rewind I get problems:

My code for seeking:

Glib::RefPtr<Gst::Event> event =
Gst::EventSeek::create(-1.0,Gst::FORMAT_TIME,
         Gst::SEEK_FLAG_NONE, Gst::SEEK_TYPE_SET, 0,
         Gst::SEEK_TYPE_NONE, current_pos);

I use a playbin2 element for playback.

Any hints?

Best regards,
Markus

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to seek with a negative rate?

Stefan Sauer
Markus Becker schrieb:

> Hi,
> I try to implement fast forward and fast rewind in a C++ application.
> Fast forward is no problem, but with fast rewind I get problems:
>
> My code for seeking:
>
> Glib::RefPtr<Gst::Event> event =
> Gst::EventSeek::create(-1.0,Gst::FORMAT_TIME,
>          Gst::SEEK_FLAG_NONE, Gst::SEEK_TYPE_SET, 0,
>          Gst::SEEK_TYPE_NONE, current_pos);
>
> I use a playbin2 element for playback.
>  
this is not supported by all demuxers yet. What have you been using?

Stefan

> Any hints?
>
> Best regards,
> Markus
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to seek with a negative rate?

Markus Becker-2
Am 14.10.2009 17:02 schrieb Stefan Kost:

> Markus Becker schrieb:
>> Hi,
>> I try to implement fast forward and fast rewind in a C++ application.
>> Fast forward is no problem, but with fast rewind I get problems:
>>
>> My code for seeking:
>>
>> Glib::RefPtr<Gst::Event> event =
>> Gst::EventSeek::create(-1.0,Gst::FORMAT_TIME,
>>          Gst::SEEK_FLAG_NONE, Gst::SEEK_TYPE_SET, 0,
>>          Gst::SEEK_TYPE_NONE, current_pos);
>>
>> I use a playbin2 element for playback.
>>  
> this is not supported by all demuxers yet. What have you been using?
>
> Stefan
>

Because of using playbin2 as pipeline, I don't really know (and care)
which demuxer I use.
I tried backward seeking with ogg and mp3 files.
Or do I misunderstand something fundamentally wrong?

Markus


>> Any hints?
>>
>> Best regards,
>> Markus
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>  
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to seek with a negative rate?

Stefan Sauer
Markus Becker schrieb:

> Am 14.10.2009 17:02 schrieb Stefan Kost:
>  
>> Markus Becker schrieb:
>>    
>>> Hi,
>>> I try to implement fast forward and fast rewind in a C++ application.
>>> Fast forward is no problem, but with fast rewind I get problems:
>>>
>>> My code for seeking:
>>>
>>> Glib::RefPtr<Gst::Event> event =
>>> Gst::EventSeek::create(-1.0,Gst::FORMAT_TIME,
>>>          Gst::SEEK_FLAG_NONE, Gst::SEEK_TYPE_SET, 0,
>>>          Gst::SEEK_TYPE_NONE, current_pos);
>>>
>>> I use a playbin2 element for playback.
>>>  
>>>      
>> this is not supported by all demuxers yet. What have you been using?
>>
>> Stefan
>>
>>    
>
> Because of using playbin2 as pipeline, I don't really know (and care)
> which demuxer I use.
> I tried backward seeking with ogg and mp3 files.
> Or do I misunderstand something fundamentally wrong?
>
> Markus
>
>  
With ogg its supposed to work. if in doubt check bugzilla and file a
bug. Attach the file if possible.

Stefan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel