Fast forward works but rewind doesn't

leon dudi.reuveni at comm-it.co.il
Wed Mar 12 14:56:17 PDT 2014


Hi,

I have pipeline (0.10 version) and I need to control the speed and direction
of the video. 
the video is encoded with h.264 

fast forward and slow motion works perfect 
but when I try to rewind, I get this message: 
  
 ** (project name) WARNING **: seek failed   

this is the pipeline: 

filesrc movie.mp4 ! queue ! decodebin2 ! autovideosink 

this is the seek code: 

          gst_element_query_position (pipeline,&format , &position) 

          if (rate > 0) { 
                       seek_event = gst_event_new_seek (rate,
GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, 
                        GST_SEEK_TYPE_SET, position , GST_SEEK_TYPE_SET, 0
); 
              }
             else { 
                     seek_event = gst_event_new_seek (rate, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH , 
                     GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, position); 
                   } 

             gst_element_send_event (pipeline, seek_event); 


I cant figure out why this is hapening..
if someone know what to, Ill be happy for some help! 
thanks.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Fast-forward-works-but-rewind-doesn-t-tp4665936.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list