Automated Media Center - Encoding

Any questions? Need some help?
Post Reply
conandrum
Posts: 3
Joined: 06 Sep 2013, 03:57

Automated Media Center - Encoding

Post by conandrum »

Hi there - excellent work and thanks.
I use a modified version of your script for utorrent post processing:
"C:/Program Files/Filebot/filebot.exe" -script fn:amc --output "Y:/Videos" --log-file amc.log --action copy --conflict override -non-strict --def music=n subtitles=en,el artwork=y backdrops=y plex=hippo minFileSize=0 "seriesFormat=TV Series/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}{'.'+lang.ISO3Language.upper()}" "animeFormat=Movies/Movie Files/{n} ({y})/{fn}{'.'+lang.ISO3Language.upper()}" "movieFormat=Movies/Movie Files/{n} ({y})/{fn}{'.'+lang.ISO3Language.upper()}" "musicFormat=Music/{n}/{fn}" ut_dir=%1 ut_file=%2 ut_kind=%3 ut_title=%4 ut_label=%5 ut_state=%6 clean=y

I read that there are some commandline switches that can download a sub in a specific encoding format:
e.g. filebot -get-subtitles path/to/movie --q "Avatar" --lang zh --output srt --encoding utf8 -non-strict

How can I use these encoding types for different languages in my utorrent postprocessing command?
As you can see, I download both subtitles=en,el.
Can I use something like: subtitles=en/utf8,el/greek ?

Thanks
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center - Encoding

Post by rednoah »

Just add the encoding switch to the filebot -script fn:amc <options> call so all the getSubtitles() calls within the AMC script will then default to the given options:

Code: Select all

--encoding utf8
If you need one encoding for one language, and another encoding for another language you'll have to modify the script and force the encoding when getSubtitles() is called according to your own encoding preference logic.
:idea: Please read the FAQ and How to Request Help.
conandrum
Posts: 3
Joined: 06 Sep 2013, 03:57

Re: Automated Media Center - Encoding

Post by conandrum »

Thanks I will try to do that.
conandrum
Posts: 3
Joined: 06 Sep 2013, 03:57

Re: Automated Media Center - Encoding

Post by conandrum »

I just had a quick look at the amc page.
Is there a link to where I can download the script and modify it locally?
User avatar
bonelifer
Power User
Posts: 83
Joined: 23 Mar 2013, 18:27

Re: Automated Media Center - Encoding

Post by bonelifer »

conandrum wrote:I just had a quick look at the amc page.
Is there a link to where I can download the script and modify it locally?
All the scripts can be found at http://filebot.net/scripts/
Post Reply