Page 1 of 1

Detect portion of subtitle text related to film length

Posted: Thu Apr 19, 2018 2:11 pm
by mohahn
Hi,

here I've many many movies as MKV files. Most of them had subtitles with forced flag which aren't really forced subtitles. That's why I've cleaned them all and removed all possible flags from subtitles (i.e. forced).
Now, I want to reset forced flag for the subtitles. So, is there a way to detect the portion of subtitles related to the film length? For example: if there is a subtitle inside MKV and it's shown only 10% of the time, then I can assume, it's a forced subtitle.
Please note, that I'm working with CLI only, so I need commands that work on Linux shell.

Regards

Re: Detect portion of subtitle text related to film length

Posted: Thu Apr 19, 2018 2:47 pm
by Woodstock
MakeMKV does not have that capability.

Re: Detect portion of subtitle text related to film length

Posted: Thu Apr 19, 2018 7:02 pm
by mohahn
Sad to hear that :-(
Are there other CLI tools that can be used additional to MakeMKV?

Re: Detect portion of subtitle text related to film length

Posted: Thu Apr 19, 2018 7:22 pm
by Woodstock
Not that I know of, but I haven't looked.

Generally speaking, the "forced" flag is NOT USED very much. Tools like handbrake's Foreign Audio Search read each subtitle track and count how many subtitles are found... if one of them has 10% or fewer than other tracks, it gets selected as being the equivalent of "forced only".

But I don't know of a generic tool for that functionality.

Re: Detect portion of subtitle text related to film length

Posted: Fri Apr 20, 2018 7:07 am
by Grauhaar
Subtitles can be modified with the Java tool "BDSup2Sub". This is a conversion tool to switch between the different subtitle formats. But the tool can also set or reset the forced flag and other manipulations. The subtitle stream must be extracted, edited with the tool and after this remerged with f.e. MKVToolNix.