Detect portion of subtitle text related to film length

MKV playback, recompression, remuxing, codec packs, players, howtos, etc.
Post Reply
mohahn
Posts: 5
Joined: Thu Jan 12, 2017 2:55 pm

Detect portion of subtitle text related to film length

Post by mohahn » Thu Apr 19, 2018 2:11 pm

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

Woodstock
Posts: 5354
Joined: Sun Jul 24, 2011 11:21 pm

Re: Detect portion of subtitle text related to film length

Post by Woodstock » Thu Apr 19, 2018 2:47 pm

MakeMKV does not have that capability.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

mohahn
Posts: 5
Joined: Thu Jan 12, 2017 2:55 pm

Re: Detect portion of subtitle text related to film length

Post by mohahn » Thu Apr 19, 2018 7:02 pm

Sad to hear that :-(
Are there other CLI tools that can be used additional to MakeMKV?
Last edited by mohahn on Fri Apr 20, 2018 5:47 am, edited 1 time in total.

Woodstock
Posts: 5354
Joined: Sun Jul 24, 2011 11:21 pm

Re: Detect portion of subtitle text related to film length

Post by Woodstock » Thu Apr 19, 2018 7:22 pm

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.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

Grauhaar
Posts: 65
Joined: Thu Sep 15, 2016 3:46 pm

Re: Detect portion of subtitle text related to film length

Post by Grauhaar » Fri Apr 20, 2018 7:07 am

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.

Post Reply