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.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th December 2018, 10:28   #1  |  Link
unknownsoldierX
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"
Still extracts all subtitles, flagged forced or not.

Code:
for %%f in ("*.mkv") do %ffmpeg% -i "%%f" -map 0:s:0 -forced_subs_only 1 "%%~nf.srt"
Doesn't extract anything, just gives this message:

Codec AVOption forced_subs_only (Only show forced subtitles) specified for output file #0 (movie.srt)
unknownsoldierX is offline   Reply With Quote
Old 6th December 2018, 10:40   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
There are no forced flags (per line) for srt subtitles. That is something you find on DVD or Blu-Ray subtitles.
sneaker_ger is offline   Reply With Quote
Old 6th December 2018, 10:48   #3  |  Link
unknownsoldierX
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.
unknownsoldierX is offline   Reply With Quote
Old 8th December 2018, 23:50   #4  |  Link
kuchikirukia
Registered User
 
Join Date: Oct 2014
Posts: 476
I don't think you can do it with gMKVExtract GUI either, but if they all have the same name or language you can do it that way.
kuchikirukia is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.