GStreamer cannot reverse playback of H264 encoding the MP4 video

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

GStreamer cannot reverse playback of H264 encoding the MP4 video

ligen
GStreamer cannot reverse playback of H264 encoding the MP4 video

thanks!
你还是你,我还是我.....
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer cannot reverse playback of H264 encoding the MP4 video

ligen
In Gstreamer's core reference library there is a function
gst_element_seek.It is said that if the parameter rate of the function
gst_element_seek is set to -1.0 reverse playback can be implemented.I
tried this for playing a MP4 file but reverse playback could not be
achieved...Could you give me a suggestion of how to achieve reverse
playback....

    if(pipeline){
        g_print("playback....\n");
        GstFormat fmt = GST_FORMAT_TIME;
        gint64 pos;
        gint64 length;
        if(pipeline && gst_element_query_duration(pipeline, &fmt, &length) && gst_element_query_position(pipeline,&fmt,&pos))
        {
           rate = -1.0;
           if(gst_element_seek(pipeline,rate,GST_FORMAT_TIME,(GstSeekFlags)(GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_KEY_UNIT|GST_SEEK_FLAG_SKIP),GST_SEEK_TYPE_SET,0,GST_SEEK_TYPE_SET,pos))
           {
                GstState state;
                gst_element_get_state(pipeline,&state,NULL,-1);
                if(state != GST_STATE_PLAYING)
                    gst_element_set_state(pipeline,GST_STATE_PLAYING);
           }
        }
    }

It is can not  reverse playback of H264 encoding the MP4 video , but It will can reverse playback of mepg-4  encoding the MP4 video ,such as  the mpeg-4 encodeing of the mp4/avi video

Could you give me a suggestion?

thanks !  

email: 623669584@qq.com
你还是你,我还是我.....
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer cannot reverse playback of H264 encoding the MP4 video

Tim-Philipp Müller-2
In reply to this post by ligen
On Mon, 2012-09-10 at 02:38 -0700, ligen wrote:
> GStreamer cannot reverse playback of H264 encoding the MP4 video

You might want to mention some more details, such as:

 - what GStreamer and -plugins versions you're using

 - what decoders you're using

 etc.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer cannot reverse playback of H264 encoding the MP4 video

ligen
 
hi
Thank you for your reply to my question

gstreamer vesion:

pkg-config --modversion gstreamer-0.10

0.10.36

I use decodebin to play H264 encoded MP4 video

thanks again!








你还是你,我还是我.....
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer cannot reverse playback of H264 encoding the MP4 video

Tim-Philipp Müller-2
On Mon, 2012-09-10 at 04:00 -0700, ligen wrote:

Hi,

> gstreamer vesion:
>
> pkg-config --modversion gstreamer-0.10
>
> 0.10.36
>
> I use decodebin to play H264 encoded MP4 video

Yes, but what decoder is used? ffdec_h264? a proprietary decoder? a
hardware-accelerated decoder on an embedded system?

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer cannot reverse playback of H264 encoding the MP4 video

ligen
Hi
I use  ffdec_h264 decoder, on the PC, ubuntu linux
Thank you for your reply to my question
你还是你,我还是我.....