Ask Your Question

Seungjun's profile - activity

2020-10-11 14:32:49 -0600 received badge  Popular Question (source)
2014-10-11 23:20:50 -0600 commented question How to read yuv video?

Oh..then, I should read it as binary. Thank you!

2014-10-07 21:51:31 -0600 asked a question How to read yuv video?

Hi

I have a problem reading yuv UHD video. It is 4K 10bit YUV RAW video.

My goal is to extract all frames of video to 10-bit depth images.

I tried with following code.

char* source = "UHD.yuv";

VideoCapture InputVideo(source);
if (!InputVideo.isOpened())
{
    cout << "Could not open the input video << endl;

    return -1;
}

But here comes the error message.

[IMGUTILS @ 000000000013f4b0] Picture size 0x0 is invalid

[IMGUTILS @ 000000000013ef40] Picture size 0x0 is invalid

[IMGUTILS @ 000000000013ef90] Picture size 0x0 is invalid

warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:548)

Could not open the imput video

Thanks for help in advance.