I'm using the following to convert a video library from x264 to x265. But I can't stop it without doing a Ctrl-C on the bash script whilst it's working.
find /mnt/local/int001/media/TV/ \
\( -name '*[xXhH]264*.mkv' -o -name '*[xXhH].264*.mkv \) \
! -name '*[xX]265*' -type f -exec /usr/local/bin/ConvertTo265.sh {} +
But then the find process keeps spitting out results and the script re-triggers. How can I implement this so I can stop it when required. I have several months of conversion ahead and need to be able to stop it for maintenance etc.
'*[xXhH].264*.mkv \)
– schrodingerscatcuriosity Dec 01 '19 at 00:47