jrottenberg/ffmpeg

ffmpeg: not found

tan-tan-kanarek opened this issue · 0 comments

Hi,
I'm running event-driven tasks in k8s that may auto-scale the number of pods according to load, which means that the k8s may send SIGTERM when it's time to scale down, not necessarily to an idle pod, sometimes to a pod in the middle of handling a task.
My node.js code can capture the SIGTERM and exit when the job is done, but not the ffmpeg.

I used 4.4/nvidia2004 docker file as reference to create my own docker file, in fact, the only thing I changed is
adding -DNO_SIGTERM=1 to --extra-cflags.

Yet, node fails on ENOENT when calling ffmpeg or ffprobe.
Using shell, I got the following:

/opt/myapp # ls -l /usr/local/bin/ff*
-rwxr-xr-x    1 root     root        244032 Jul 13 12:36 /usr/local/bin/ffmpeg 
-rwxr-xr-x    1 root     root        133608 Jul 13 12:36 /usr/local/bin/ffprobe
/opt/myapp # /usr/local/bin/ffmpeg --help
ash: /usr/local/bin/ffmpeg: not found

Thank you.