[Libav-user] Detecting bad frames h.264 decoder
diceydawg .
diceydawg at gmail.com
Tue Aug 26 19:42:00 CEST 2014
Hi, i am developing an application that decodes a mpeg-ts file that must
drop any frames which may cause video artifacts (for the purpose of machine
vision algorithms). Currently I am using the log_callback within a mutex
(for multi-threaded decoders) in order to receive the correct error for a
given frame. (example below)
if (level == AV_LOG_FATAL) {
//print out error
} else if (level == AV_LOG_ERROR) {
/** handle bad frame */
} else {
Since parsing the log to detect error's is not the best way to detect frame
issues, Is there a better way to handle this? Can I retrieve the error
from a frame returned from avcodec_decode_video2?
Daisuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140826/3bc02a87/attachment.html>
More information about the Libav-user
mailing list