Select 1 subs from multiple embedded subtitles using ffmpeg

Jun 15, 2020 17:00

Consider input.mkv is video source with multiple subtitle embedded.

1. Using ffprobe function to get video source info.
--> ffprobe -i input.mkv 2>input.txt

2. Identify subtitle that you want to be extracted.


3. Using ffmpeg command.
--> ffmpeg -i input.mkv -map 0:v -map 0:a -map 0:s:3 -qscale 0 output.mkv
* -map 0:v :- select input video to be included in the output file
* -map 0:a :- select input audio to be included in the output file
* -map 0:s:3 :- select subtitle input (english) to be included in the output file

ffmpeg: subtitle

Previous post Next post
Up