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)