Debugging revealed that ffmpeg was occasionally throwing
a strange error expecting input of some sort, which would cause
vcsi to hang.
https://unix.stackexchange.com/a/36411 reveals that this
is a semi-common issue when running a command in a loop,
and is resolved by setting stdin to /dev/null to ensure
that ffmpeg is not consuming anything to stdin from the loop.
Debugging revealed that ffmpeg was occasionally throwing a strange error expecting input of some sort, which would cause vcsi to hang.
https://unix.stackexchange.com/a/36411 reveals that this is a semi-common issue when running a command in a loop, and is resolved by setting stdin to /dev/null to ensure that ffmpeg is not consuming anything to stdin from the loop.