I would like to get some list of all available subtitles tracks like:
#1 - id, name
#2 - id, name
#3 - id, name
...
So list would tell how much subtitles tracks I have, show id and name of each track
Is there any FFmpeg
option to show such list?
Example
ffprobe
command to list the stream ID and language:Result
This shows the stream id #5 is English, #6 is Faroese, and #7 is Ainu. See List of ISO 639-1 codes for the language abbreviations.
-map
optionYou can use this information to create your command. If you want the English and Ainu languages use:
or
or
See the
-map
option documentation for more info.FFmpeg seems doesn't have such option
so we can only parse all printed data by
ffmpeg -i VIDE_FILE_NAME
(filtering out not stream text track lines)also FFmpeg doesn't really prints that ID (it's just stream position made by FFmpeg) like MediaInfo would print