Page 1 of 1

Multi Subs + Audio

Posted: 10 Jan 2018, 16:30
by BabyRay
Hello, need some help from you guys. I have some problems with the Subs and Audio.
Filebot does not recognize the subs. filebot names all the same. there is eng. ger. forced. in the name but filebot names all the same.

Original Name:
NAME.2015.german.720p.bluray.x264.forced-GROUP
NAME.2015.english.720p.bluray.x264.forced-GROUP
NAME.2015.german.720p.bluray.x264-GROUP
NAME.2015.english.720p.bluray.x264-GROUP

Actually i use this:
Movies:
{ny}/{ny}{fn =~ /[.]eng$/ ? '.eng' : '.ger' }{'.'+fn.match(/forced/)} [{vf}, {ac}, {af}] {group}
NAME (2015).ger [720p, DTS, 6ch] GROUP

Series:
{n} - {'S'+s.pad(2)}E{e.pad(2)} - {t} [{vf}, {ac}, {af}]
NAME - S01E01 - TITLE [720p, AC3, 6ch] GROUP

Is it posible to add ALL Audio LAnguages like this :

NAME (2015).ger [720p, DTS, 6ch] .eng [720p, AC3, 6ch] GROUP
NAME - S01E01 - TITLE .eng [720p, AC3, 6ch] .ger [720p, DTS, 6ch] GROUP

One last question, is it posible that i run Filebot as a script in SBNZBd to rename my Files automatically?

Re: Multi Subs + Audio

Posted: 10 Jan 2018, 20:33
by rednoah
1.
If subtitle files are named properly (e.g. name.eng.srt) then FileBot will detect the subtitle language {lang} based on that. In your case it'll probably resort to statistical language detection based on the subtitle text content, which may or may not work as accurately as you want.


2.
Yes, but the format might be somewhat complex. Here's a snippet to get you started:

Code: Select all

{audio.collect{ [it.Language, it.Format] } }

3.
FileBot is a command-line tool, so it can easily be called by any other program or tool.

This might be useful:
https://github.com/filebot/plugins/blob ... process.sh

Re: Multi Subs + Audio

Posted: 11 Jan 2018, 10:27
by BabyRay
Hi and thank you for your help.
But i dont understand it :(
I used google to find my settings.

1. Most German Releases named like this. How can i handle these Subs?
GROUP-NAME.2017.german.720p.bluray.x264.sub
GROUP-NAME.2017.german.720p.bluray.x264-forced.idx

2.
{n} - {'S'+s.pad(2)}E{e.pad(2)} - {t} {vf},{audio.collect{[it.Language, it.Format]}}
NAME - S01E01 - TITLE 720p, [[de, AC-3], [en, DTS]]

How can i get it like this? Change "it.Format" or only it."Format" example: it.ac?
NAME - S01E01 - TITLE 720p .eng [AC3, 6ch] .ger [DTS, 6ch] GROUP

Re: Multi Subs + Audio

Posted: 11 Jan 2018, 10:32
by rednoah
1.
These are image-based subtitles (not text-based subtitles) and thus language auto-detection doesn't work:

Code: Select all

GROUP-NAME.2017.german.720p.bluray.x264.sub
GROUP-NAME.2017.german.720p.bluray.x264-forced.idx
In this case, I'd just check the filename:

Code: Select all

{fn =~ /german/ ? '.ger' : null}
:idea: IF filename contains "german" THEN yield ".ger" otherwise yield no value

:idea: You can repeat this snipped for all the languages that you might need.

@see viewtopic.php?f=5&t=4191


2.
If you access each audio stream directly, then you won't be able to use convenience bindings such as {ac} (i.e. audio codec of the first audio stream) and access the appropriate MediaInfo field directly for each stream:
viewtopic.php?f=5&t=4285

Re: Multi Subs + Audio

Posted: 11 Jan 2018, 11:40
by BabyRay
1. can i put these together oder must i use multiple times like this?

Code: Select all

{fn =~ /german/ ? '.ger' : null} {fn =~ /english/ ? '.eng' : null} {fn =~ /ger/ ? '.ger' : null} {fn =~ /eng/ ? '.ger' : null}
2. sorry i cant follow you :(
i use mediainfo but i dont know what to do

Re: Multi Subs + Audio

Posted: 11 Jan 2018, 16:21
by rednoah
1.
You can combine them like this:

Code: Select all

{fn =~ /ger|german/ ? '.ger' : fn =~ /eng|english/ ? '.eng' : null}

2.
Unfortunately, my previous advice may only be useful for advanced users, because it would require a certain level of programming skill to get where you wanna go.

:idea: For the sake of simplicity, I recommend sticking to the easy {vf}, {ac}, {channels} etc bindings.