[Libav-user] FFMPEG decoding errors

rohit khali khali.rohit at gmail.com
Wed Nov 4 13:59:17 EET 2020


Hi,

I am using FFMPEG APIs to decode video.
While trying to decode an error stream, FFMPEG is able to identify the
errors as shown in the logs below being printed from FFMPEG libraries.
Decoded output also has visual issues.
***
Code Output:
    [h264 @ 0x55aa17781f40] mb_type 38 in I slice too large at 3 0
    [h264 @ 0x55aa17781f40] error while decoding MB 3 0
    [h264 @ 0x55aa17781f40] concealing 396 DC, 396 AC, 396 MV errors in I
frame

    [Frame 1(352x288),codedPicNum=0, I,yuv420p]
***
However, I am wondering how am I supposed to signal these errors to my
application?
The Return value for  avcodec_receive_frame() is not indicating any error
here as we can see from code snip.

****
Code:
    while (ret >= 0) {
        ret = avcodec_receive_frame(dec_ctx, frame);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
            return;
        else if (ret < 0) {
            fprintf(stderr, "Error during decoding\n");
            exit(1);
        }
        printf("[Frame %d(%dx%d),codedPicNum=%d, %c,%s]\n",
dec_ctx->frame_number, frame->width, frame->height,
frame->coded_picture_number, av_get_picture_type_char(frame->pict_type),
av_get_pix_fmt_name(frame->format));
        fflush(stdout);
    }
***

Please help.

Thanks,
Rohit Khali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20201104/98d050ac/attachment.html>


More information about the Libav-user mailing list