Wie kann man die Videowiedergaberate einstellen oder einen Suchlauf () mit gst-launch durchführen?

2113
karlphillip

Ist es möglich, die Wiedergaberate eines Videos zu ändern, um die Wiedergabe gst-launchschneller / langsamer zu machen? Oder gibt es eine Möglichkeit, das Video so einzustellen, dass die Wiedergabe von einer bestimmten Position beginnt?

Berücksichtigen Sie die folgende Pipeline, die ich zum Abspielen von Audio / Video mit Untertiteln verwende:

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 
1

1 Antwort auf die Frage

0
karlphillip

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