Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boqapt opened this issue Jun 26, 2016 · 0 comments
Open

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

boqapt opened this issue Jun 26, 2016 · 0 comments

Comments

@boqapt
Copy link

boqapt commented Jun 26, 2016

Reproducing:

  • corrupt sample video file HudlFfmpeg\Samples\Assets\sample-video.mp4 by inserting couple of spaces at the beggining of it in text editor
  • start (in Visual Studio) Samples app and select [2] - ConcatVideo

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant