Page 1 of 1

[Feature] Mkv subtitle detection

Posted: 21 Oct 2013, 23:43
by verysofttoiletpaper
Would be very interesting to be able to detect when a mkv container already has subtitles and not download extra subtitles which many times are out of sync and get priority in many players.

Re: [Feature] Mkv subtitle detection

Posted: 22 Oct 2013, 01:36
by rednoah
That's pretty easy. Check how AMC forces anime-mode by checking Japnese audio + ASS subtitles.

Re: [Feature] Mkv subtitle detection

Posted: 28 Oct 2013, 04:48
by verysofttoiletpaper
Couldn't the AMC script check if the subtitles already exist in the mkv before downloading more, just like it checks for existing subtitles files?

Re: [Feature] Mkv subtitle detection

Posted: 07 Nov 2013, 04:03
by verysofttoiletpaper
Could you add this improvement to the AMC script?

Thank you :)

Re: [Feature] Mkv subtitle detection

Posted: 16 Feb 2014, 20:18
by verysofttoiletpaper
Has this been forgotten or is there a reason not to add this feature?

Re: [Feature] Mkv subtitle detection

Posted: 17 Feb 2014, 04:37
by rednoah
I guess you could easily add this logic to your own custom subtitle script.

Just check with getMediaInfo(...) and see if you get subtitles tracks and if yes just don't pass them along to getMissingSubtitles(...)

Re: [Feature] Mkv subtitle detection

Posted: 17 Feb 2014, 07:26
by Ithiel
oohh... kewlies..

Is there a way to feed that into a cmd line for use in the context menu?

i.e. How would I edit something like this to check getMediaInfo() if the mkv already includes subtitles for a (or multiple) specific language(s)?

Code: Select all

cmd /c filebot -get-subtitles \"%1\" -non-strict --lang en --log-file context.log

Re: [Feature] Mkv subtitle detection

Posted: 17 Feb 2014, 11:16
by rednoah
Sorry, that one will need some scripting, either in groovy or cmdline, 1. select all files, 2. filter out files mkv files with embedded subtitles, 3. run -get-subtitles on the remaining files.

Like so:
https://github.com/filebot/scripts/blob ... all.groovy

Re: [Feature] Mkv subtitle detection

Posted: 18 Feb 2014, 03:36
by Ithiel
wow.. um... that sounds like an absolute truck-load of work for a very niche requirement, lol.
I think I'll pass on adding that to the context menu for the time being :-P

Hopefully it helps verysofttoiletpaper though.

Side Note: that is one freaking hilarious alias, lol.