Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
6th December 2018, 10:28 | #1 | Link |
Registered User
Join Date: Jun 2005
Posts: 236
|
How do I use ffmpeg forced_subs_only option?
Windows 7x64
I just discovered the ffmpeg option "-forced_subs_only 1" and I can't get it to work. Code:
for %%f in ("*.mkv") do %ffmpeg% -forced_subs_only 1 -i "%%f" -map 0:s:0 "%%~nf.srt" Code:
for %%f in ("*.mkv") do %ffmpeg% -i "%%f" -map 0:s:0 -forced_subs_only 1 "%%~nf.srt" Codec AVOption forced_subs_only (Only show forced subtitles) specified for output file #0 (movie.srt) |
6th December 2018, 10:48 | #3 | Link |
Registered User
Join Date: Jun 2005
Posts: 236
|
Ok. I misunderstood the purpose of that command.
When I look at an mp4 or mkv using something like mediainfo, it shows the subtitle streams and sometimes it says they are forced. Is there a way to extract only subtitle streams that have that flag set? edit: It looks like what I want to do is extract subtitles based on disposition, but so far I can't see any mention of being able to do that with ffmpeg. Last edited by unknownsoldierX; 6th December 2018 at 10:54. |
|
|