Reputation: 2542
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
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
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