OregonDigital / oregondigital

OregonDigital Hydra Application
https://oregondigital.org/catalog/
Other
25 stars 5 forks source link

Video file derivatives hanging for large videos in resque workers #1351

Closed wickr closed 4 years ago

wickr commented 4 years ago

When a large video file gets derivatives created, the resque job is hanging as ffmpeg hangs. I confirmed it processes the video file and uses the CPUs, but then CPU usage drops to 0 and the processes remain.

It appears to be related to this: https://stackoverflow.com/questions/16523746/ffmpeg-hangs-when-run-in-background

When I ran the same ffmpeg command on a large video file from the shell, it ran successfully and I saw all of the output.

So the first attempt will be to add -nostdin flag to the ffmpeg call from our derivatives processing code.

wickr commented 4 years ago

-nostidin didn't have any effect on the output or video file results.

After testing more locally running the full ffmpeg call from the shell, using -v 0 and -nostats together instead has the desired empty output.