hudl / HudlFfmpeg

Hudl.Ffmpeg framework
Apache License 2.0
112 stars 32 forks source link

error messages returned by Ffmpeg/Fprobe are always swallowed #65

Open boqapt opened 8 years ago

boqapt commented 8 years ago

Reproducing:

Observed: Exception is thrown with message in innermost exception "FFmpeg failed processing with an exit code of 1"

Expected: Exception with message "Invalid data found when processing input"

Reason: <...>.ProcessIt methods running ffmpeg/fprobe redirect only stdout, they don't redirect stderr at all but Ffmpeg prints errors (and even not errors, but statistics, header etc. - everything) into stderr

Advice how clean error message without any junk can be retrieved: Run ffmpeg.exe with args -loglevel error -hide_banner -nostats