0

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!

Arnaud
  • 131
  • 3
  • 13
  • Why do you specifically need 2.4.10? – llogan Dec 16 '15 at 05:04
  • I have a webapp working in local, but not on the server, with only the ffmpeg commands failing. – Arnaud Dec 16 '15 at 12:04
  • How can we reproduce the issue? There is not enough info here for us to provide much help. – llogan Dec 16 '15 at 17:14
  • Yes, I'm sorry the issue may depend on several aspects of my app. i succeeded in updating the ffmpeg versions to do several tests, and now I suggest it's a difference of ffmpegwrapper version. – Arnaud Dec 17 '15 at 14:38
  • I've never heard of "ffmpegwrapper". – llogan Dec 17 '15 at 21:38
  • https://github.com/interru/ffmpegwrapper It turns out this was the source of our problem :) I'm closing this question. – Arnaud Dec 21 '15 at 10:30

2 Answers2

2

Fedora 21 is EOL so the repositories are gone and you should upgrade to current release.

Also ffmpeg is not in official repositories, but unofficial are also gone. You would need to find the source and probably build if from source.

Jakuje
  • 24,773
  • 12
  • 69
  • 75
  • I feared that :( I've updated my question with more details. I have a perfectly working webapp launching ffmpeg commands, and those same commands fail on server. I'd like to have the same configuration there. – Arnaud Dec 16 '15 at 13:30
0

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 :)

Arnaud
  • 131
  • 3
  • 13