[FFmpeg-trac] #7356(ffmpeg:new): -map 0:s:m:language:eng - ERORR it does not extract eng sub. It always extract first sub Stream
FFmpeg
trac at avcodec.org
Wed Aug 15 13:31:41 EEST 2018
#7356: -map 0:s:m:language:eng - ERORR it does not extract eng sub. It always
extract first sub Stream
--------------------------------------+----------------------------------
Reporter: KnightDanila | Owner:
Type: enhancement | Status: new
Priority: wish | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: map | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Comment (by KnightDanila):
Okay, but wait :)
About this "e.g. {{{-map 0:s:2}}} to select the third subtitle stream of
input 0."
I will show you a "strange code":
{{{
ffmpeg.exe -i input.mkv -map 0:s -map -0:m:language:rus
"output_subtitles.srt"
}}}
If you have a input.mkv file with one russian and one english subtitles
It will return english subtitles file "output_subtitles.srt"
But if you use this code:
{{{
ffmpeg.exe -i input.mkv -map 0:s -map -0:m:language:eng
"output_subtitles.srt"
}}}
It will return russian subtitles file "output_subtitles.srt"
Also it works with audio streams:
If you have a input.mkv file with:
one russian,
one ukrainian,
one english,
two japanese
audio streams.
{{{
ffmpeg.exe -i TEST_Input.mkv -map 0:a -map -0:m:language:rus -map
-0:m:language:ukr -map -0:m:language:jpn -report "TEST_output.ac3"
}}}
This code delete rus, ukr and jpn streams. And return "TEST_output.ac3" -
with eng audio stream.
I add new log
[https://trac.ffmpeg.org/attachment/ticket/7356/ffmpeg-20180815-131022.log]
I know this is strange but it works :)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7356#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list