# HG changeset patch # User Oleksandr Gavenko # Date 1471993181 -10800 # Node ID 813aa342d9ceea840a9ed50cbd51049a6bbd94c2 # Parent 6ffd71b073850e15924a0c8c4df8c5393f0d2f31 Extract subtitles from video. diff -r 6ffd71b07385 -r 813aa342d9ce video.rst --- a/video.rst Wed Aug 24 01:50:38 2016 +0300 +++ b/video.rst Wed Aug 24 01:59:41 2016 +0300 @@ -45,6 +45,16 @@ $ ffmpeg -i $IN.avi -vf fps=1 image-%03d.png +Extract subtitles from video +============================ + +Find stream id with ``ffprobe $VIDEO`` and pass to:: + + $ ffmpeg -y -i in.mkv -map 0:$ID -f webvtt out.vtt + +List of supported by ``ffmpeg`` subtitle formats:: + + $ ffmpeg -formats | grep subt Playing 3d film ===============