Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ! 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
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/ ! 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


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.