All scripts are very simple, easy to modify and can be used as a template for different variations. You can daisy-chain all scripts, they will only run on certain file extensions. They will delete the original file after transcoding to save space.

They require a recent version of ffmpeg and will work only under linux (tested under Debian Wheezy). Additionally you will need at least NZBGet v13.

Encodes Video with high-level 4.0 profile - should be compatible with older TV models, quality might not be best though...

Encodes Audio to AAC (which is compatible with older TV models in contrary to AC3 or DTS)

Z
When using the transcoders above in conjunction with NZBDrone or similar, it might happen that NZBDrone will break as it will find movie files that are still being transcoded.
This script simply, when daisy-changed AFTER all the transcoders, will move the files to yet another destination after all PP is done, so NZBDrone will only find finish transcoded files.

* you can now specify via "Settings" the path to the ffmpeg executable - the default value should work in most cases though...
* it will check if ffmpeg exists and fail else
* ffmpeg is set to overwrite existing files (to allow automated systems not blocking) in the same folder
* ffmpeg will return error string and error code in case of an error (and then also not delete the original file)
* correctly signal "NONE" if no files were transcoded
* Z will only move files if there was no failure in any PP script before

TODO:
* make a check for new ffmpeg version
* make a check for new nzbget version

Thanks for sharing this. I have been trying to use this as post processing script on my Synology but have been unable to make it run. You mention it runs on Linux so I assume it should be possible to adapt the script for a Synology.