Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to change the playback rate of a video in gst-launch to make it play faster/slower? Or is there a way to set the video to start playing from a specific position?

Take into consideration the following pipeline that I'm using to play both audio/video with subtitle:

gst-launch filesrc location=tbbt_s05e01.srt ! subparse ! bot. filesrc location=tbbt_s05e01.avi ! decodebin name=decoder decoder. ! queue ! audioconvert ! audioresample ! autoaudiosink decoder. ! timeoverlay ! textoverlay name=bot valignment=bottom ! xvimagesink
share|improve this question

1 Answer 1

up vote 0 down vote accepted

And the answer was found using a gstreamer plugin named gnonlin. This component includes several gstreamer elements including gnlfilesource which can start the video at a specific position.

The following command loads a video file and a subtitle and starts playing at the position specified in media-start (nanoseconds):

gst-launch filesrc location=/data/videos/tbbt_s05e01.srt ! subparse ! bot. gnlfilesource location=file:///data/videos/tbbt_s05e01.avi duration=10000000000000 media-start=100000000000 ! ffmpegcolorspace ! textoverlay name=bot valignment=bottom  ! xvimagesink
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.