[Libav-user] Is there any way to programmatically get ffmpeg decoding error count or callbacks?

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Jun 5 08:41:07 CEST 2013


2013/6/5 Vahid Kowsari <vahid at kowsari.com>:
> Hi,
>
> I am developing a media monitoring solution and it would be really helpful
> to know if we are receiving a good signal.
> I am using ffmpeg APIs to decode udp mpegts streams. Are there any ffmpeg
> APIs that I can call to get notified of errors in the decoding? Or just get
> a current count of errors?

You can catch log messages, or create decoder with option
err_detect=explode (or other value, consult with decoder source code),
which will result in decoding failure instead of surviving the error.
Of course you may proceed to decode after failure, you are not
required to restart everything after that.

--
Andrey Utkin


More information about the Libav-user mailing list