Do custom post processing scripts really run in the end of the processing?

Hey guys!

So im looking into this post processing script thing. I have a script which remux everything in the directory the script is running from (including subdirectories) to mp4 and then deletes the originally downloaded file. I run it manually after Sonarr (and Couchpotato) have moved all of my downloaded stuff to their respective directories.
My question is; will my script run in the very end of the process or will it run before sonarr moves the files or even before that?

This is my script:

shopt -s globstar
for f in **/.mkv; do ffmpeg -i “$f” -c copy “${f%.mkv}.mp4”; done
find . -name '
.mkv’ -delete

(dont even know if “done” means end of the script.)

If anyone knows how i can make ffmpeg automatically detect the input container, please let me know ( I do have a script for avi’s as well)

After the import is done by Sonarr.

If you’re using usenet and a supported client (SABnzbd or NZBGet) you could use a post processing script there to remux it before import, unfortunately Torrent clients don’t tell Sonarr that its importing files so partial files could get picked up.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.