regarding negative playback rates in seek

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

regarding negative playback rates in seek

Jyoti-2
Hi all,

I am writing an application to play a video file at different playback rates.
I am able to seek and play with positive playback rates > 1.0 (normal playback speed).
But am not able to play video at negative playback rates(say -2.0).
The arguments I set in gst_element_seek are as below.

-- cur_pos is the position from where i want to seek.

        gst_element_seek (pipeline, -2.0 , GST_FORMAT_TIME,
                          GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT,
                          GST_SEEK_TYPE_SET, 0,
                          GST_SEEK_TYPE_SET, cur_pos);

Thanks.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

michael smith-6-3
On Fri, Apr 17, 2009 at 5:43 AM, Jyoti <[hidden email]> wrote:

> Hi all,
>
> I am writing an application to play a video file at different playback
> rates.
> I am able to seek and play with positive playback rates > 1.0 (normal
> playback speed).
> But am not able to play video at negative playback rates(say -2.0).
> The arguments I set in gst_element_seek are as below.
>
> -- cur_pos is the position from where i want to seek.
>
>         gst_element_seek (pipeline, -2.0 , GST_FORMAT_TIME,
>                           GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT,
>                           GST_SEEK_TYPE_SET, 0,
>                           GST_SEEK_TYPE_SET, cur_pos);

Negative speed playback requires that the demuxers and decoders
support that - and many don't. Try with an Ogg file.

Mike

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

Jyoti-2
Thanks Mike.
But how can I know the demuxers & decoders that support negative speed playback.

Regards

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

Stefan Sauer
Jyoti schrieb:
> Thanks Mike.
> But how can I know the demuxers & decoders that support negative speed
> playback.
Do you check the return code of gst_element_seek(). Maybe we should add
this to the seek-query.

Stefan

>
> Regards
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

Jyoti-2
Hi Stefan,
Please

> Do you check the return code of gst_element_seek().
Yes I do check the return value of gst_element_seek() which is a  a boolean value.

> Maybe we should add this to the seek-query. 
I couldn't follow your lines saying add the return value to seek-query.
Could you please elaborate on that.

Thanks



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

Stefan Sauer
Jyoti schrieb:
> Hi Stefan,
> Please
>
> > Do you check the return code of gst_element_seek().
> Yes I do check the return value of gst_element_seek() which is a  a
> boolean value.
And you are getting true, even tough its not supporting reverse
playback? File a bug.

>
> > Maybe we should add this to the seek-query.
> I couldn't follow your lines saying add the return value to seek-query.
> Could you please elaborate on that.
There is the seek-query which application will use to check if content
is seekable at all. The seek query could be eventually extended to query
reverse playback capabilities.

Stefan

>
> Thanks
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: regarding negative playback rates in seek

Jyoti-2
Thanks Stefan.
I will try out that.


On Mon, Apr 20, 2009 at 5:45 PM, Stefan Kost <[hidden email]> wrote:
Jyoti schrieb:
> Hi Stefan,
> Please
>
> > Do you check the return code of gst_element_seek().
> Yes I do check the return value of gst_element_seek() which is a  a
> boolean value.
And you are getting true, even tough its not supporting reverse
playback? File a bug.

>
> > Maybe we should add this to the seek-query.
> I couldn't follow your lines saying add the return value to seek-query.
> Could you please elaborate on that.
There is the seek-query which application will use to check if content
is seekable at all. The seek query could be eventually extended to query
reverse playback capabilities.

Stefan

>
> Thanks
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel