amietn / vcsi

Create video contact sheets, thumbnails
MIT License
471 stars 57 forks source link

Fix issue where ffmpeg may occasionally hang #98

Closed shssoichiro closed 2 years ago

shssoichiro commented 2 years ago

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.

amietn commented 2 years ago

Thanks!