kkroening / ffmpeg-python

Python bindings for FFmpeg - with complex filtering support
Apache License 2.0
9.87k stars 883 forks source link

ffprobe error output format #113

Open lucasdavila86 opened 6 years ago

lucasdavila86 commented 6 years ago

Is there a way to get the error output in "json" (dictionary) format? Something like the output of this command

ffprobe -v quiet -print_format json -show_format -show_streams -show_error http://example.com/live/stream.m3u8
{
    "error": {
        "code": -1094995529,
        "string": "Invalid data found when processing input"
    }
}
kkroening commented 6 years ago

Great idea. There is not currently a way to do this, but it would be a good feature. Will try to implement at some point.