ffmpeg--异常打印

Past duration %f too large

Non-monotonous DTS in output stream 0:1; previous: 3411, current: 3272; changing to 3411. This may result in
Queue input is backward in time

incorrect timestamps in the output file

dropping frame

dup!

打印位置:

static void do_video_out(AVFormatContext *s,
                         OutputStream *ost,
                         AVFrame *next_picture,
                         double sync_ipts)
{

    if (nb_frames > (nb0_frames && ost->last_dropped) + (nb_frames > nb0_frames)) {
        if (nb_frames > dts_error_threshold * 30) {
            av_log(NULL, AV_LOG_ERROR, "%d frame duplication too large, skipping\n", nb_frames - 1);
            nb_frames_drop++;
            return;
        }
        nb_frames_dup += nb_frames - (nb0_frames && ost->last_dropped) - (nb_frames > nb0_frames);
        av_log(NULL, AV_LOG_VERBOSE, "*** %d dup!\n", nb_frames - 1);
    }

}

"Drop" means it has dropped a frame during encoding.

"Dup" means it has duplicated a frame during encoding.

猜你喜欢

转载自blog.csdn.net/evsqiezi/article/details/80899848