Sunday, November 14, 2021

[SOLVED] ffmpeg install specific version Fedora 21

Issue

I have a webapp working in local, but failing on the server. Both use Fedora 21. I need to check if the ffmpeg configuration of my server (2.4.11 instead of 2.4.10) is to blame.

On server, a simple print() of the ffmpeg command displays an array, while on local it displays a string.

In the code, I call:

pipe = sp.Popen(ffmpeg_command, stdout = DEVNULL, stdin=sp.PIPE, stderr=fp)

then:

pipe.stdin.write(....)

On server, last line fails with message "Broken Pipe Error" and ffmpeg error: "pipe:: Invalid data found when processing input"

Thanks in advance!


Solution

It turns out the problem did not come from ffmpeg, but from ffmpegwrapper. https://github.com/interru/ffmpegwrapper

The clue was that a simple print of the ffmpeg command was not formatted the same on both machines. On the server, I installed the same version than I used in local, and now it's running fine :)



Answered By - Arnaud