madebyhiro / codem-transcode

Offline video transcoder written in node.js
Other
153 stars 68 forks source link

ffmpeg error logging doesn't always work correctly #1

Closed tieleman closed 12 years ago

tieleman commented 13 years ago

The transcoder doesn't always log the correct ffmpeg error message. For example, this job failed with error message:

ffmpeg finished with an error: 'ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 6 2011 14:02:45 with gcc 4.1.2 20070925 (Red Hat 4.1.2-33) configuration: --prefix=/software/ffmpeg-codem-0.7-rc1-bcbce67e --disable-sha

That's not really helpful. Apparently not everything from STDERR was read properly before the "failed" callback was called.

tieleman commented 12 years ago

Turns out this was a bug in the scheduler. The "message" field was truncated on 256 bytes.