Trick mode: backward play is not happening

amit.debnath at wipro.com amit.debnath at wipro.com
Tue Mar 12 03:41:45 PDT 2013


Hi,

I am trying to implement trick mode backward play with gstreamer.

OS: Ubuntu 10.04.

File type : .wmv file.


I am trying to use the following method:

1. Getting position by calling gst_element_query_position().

2. Then passing different play rate to the API gst_event_new_seek() for playing in different speed..

if (play_rate > 0)
{
seek_event = gst_event_new_seek ((gdouble)play_rate, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_ACCURATE|GST_SEEK_FLAG_FLUSH),
GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_NONE, 0);
}
else
{
seek_event = gst_event_new_seek (play_rate, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_ACCURATE|GST_SEEK_FLAG_FLUSH),
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, position);
}

In my case when the play_rate is >1, fast forward is happening nicely.

But every time I am trying with any negative value, the backward play is not happening.

The event is not returning any error as well. The play is happening with the previous speed set.


Please help me out to play the media backward.

Regards,
Amit




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130312/5ec324a9/attachment.html>


More information about the gstreamer-devel mailing list