Wow. I like your script. I’m gonna steal it and try on my end. I like your BASH a lot better than my elementary effort. I did use the built-in transcoder in my BASH to avoid needing any extra installs (in a docker container):
I like your locking approach. I’ll give it a go in my test script… but I’m perplexed why even my rudimentary script is failing to generate a tmp log file:
#!/bin/bash
tmpfile=$(mktemp /tmp/dummy_log.XXXXX)
echo $@ > $tmpfile
3 tuners ending at the same time do not generate a single log file. Script is in the new recommended location. TMP directory rwx for plex:plex.