Matt Molnar
Matt Molnar

Reputation: 2542

NodeJS/Dokku/Docker: ffmpeg exited with code 127

I'm trying to run ffmpeg inside of a Docker container via Dokku. I've heavily modified a Dokku plugin to accomplish this as I need h264 support. I currently get an error from fluent-ffmpeg which states

Error: ffmpeg exited with code 127

I've tried to look up what error code 127 is but haven't found much. Some people seem to suggest that it's some sort of issue with finding ffmpeg. However, I did have a libx264 error from ffmpeg earlier in the process so I'm pretty sure the ffmpeg binary is being found. Unfortunately fluent doesn't send the used command line for ffmpeg to the error event so I'm not sure what the exact command being ran is.

Upvotes: 2

Views: 3629

Answers (2)

Alejandro De Castro
Alejandro De Castro

Reputation: 2257

One posible solution is add the full path to ffmpeg:

/usr/local/bin/ffmpeg -i short.mp4 -vf "fps=1/10,scale=250:-1" -r 1/10 preview%d.jpg

Upvotes: 0

Alex Lau
Alex Lau

Reputation: 1697

127 means command not found. (127 Return code from $?)

I guess your ffmpeg executable is not located in any directories defined by environment variable PATH.

Upvotes: 3

Related Questions