求教opencv编程测试播放mkv格式视频时cmd框出现红色警告一样的东西强迫症有谁知道咋回事吗什么原因

源码

#include "opencv\highgui.h"  

int main()
{
    cvNamedWindow("*.mkv", CV_WINDOW_AUTOSIZE);
    CvCapture* capture = cvCreateFileCapture("*.mkv");
    IplImage* frame = NULL;
    while (1)
    {
        frame = cvQueryFrame(capture);
        if (!frame)
            break;
        cvShowImage("R.mkv", frame);
        char c = cvWaitKey(33);
        if (c == 27)
            break;
    }
    cvReleaseCapture(&capture);
    cvDestroyWindow("*.mkv");
    return 0;
}

可以看,但是有红色提示

求教opencv编程测试播放mkv格式视频时cmd框出现红色警告一样的东西强迫症有谁知道咋回事吗什么原因_第1张图片 第一次发文章提问以后还是要多用这个,

 

[h264 @ 0000023f25377320] reference count 1 overflow
[h264 @ 0000023f25377320] reference count overflow
[h264 @ 0000023f25377320] decode_slice_header error
[h264 @ 0000023f25377320] no frame!
[h264 @ 0000023f25377320] reference count 1 overflow
[h264 @ 0000023f25377320] reference count overflow
[h264 @ 0000023f25377320] decode_slice_header error
[h264 @ 0000023f25377320] no frame!
[h264 @ 0000023f25377320] illegal reordering_of_pic_nums_idc 32
[h264 @ 0000023f25377320] reference count overflow
[h264 @ 0000023f25377320] decode_slice_header error
[h264 @ 0000023f25377320] no frame!
Invalid UE golomb code
[h264 @ 0000023f25377320] reference overflow 3199971767 > 15 or 0 > 15
Invalid UE golomb code
[h264 @ 0000023f25377320] reference overflow 3199971767 > 15 or 0 > 15
[h264 @ 0000023f25377320] decode_slice_header error
[h264 @ 0000023f25377320] no frame!
[h264 @ 0000023f253c3180] reference count overflow
[h264 @ 0000023f253c3180] decode_slice_header error
[h264 @ 0000023f253c3180] no frame!
[h264 @ 0000023f2544bb40] reference count overflow
[h264 @ 0000023f2544bb40] decode_slice_header error
[h264 @ 0000023f2544bb40] no frame!
[h264 @ 0000023f2538dac0] reference count overflow
[h264 @ 0000023f2538dac0] decode_slice_header error
[h264 @ 0000023f2538dac0] no frame!
Invalid UE golomb code
[h264 @ 0000023f2538e260] reference overflow 3199971767 > 15 or 0 > 15
[h264 @ 0000023f2538e260] decode_slice_header error
[h264 @ 0000023f2538e260] no frame!
[h264 @ 0000023f2538e720] QP 63 out of range
[h264 @ 0000023f2538e720] decode_slice_header error
[h264 @ 0000023f2538e720] no frame!
[h264 @ 0000023f253baba0] QP 190 out of range
[h264 @ 0000023f253baba0] decode_slice_header error
[h264 @ 0000023f253baba0] no frame!
[h264 @ 0000023f253bb060] QP 206 out of range
[h264 @ 0000023f253bb060] decode_slice_header error
[h264 @ 0000023f253bb060] no frame!

你可能感兴趣的:(视频处理,opencv,bug,mkv剪切,ffmpeg)