Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can you read H265/HEVC file using VideoCapture? With OpenCV 3.1.

Added x265 codec to ffmpeg in OpenCV 3.1 environment.

I am trying to read a file with Video Capture, but when looking at frame, there is only 8 bits of RGB information. Since it is an H265 file, I was expecting to get 10 bits of RGB.

Could you tell me whether the method or procedure you are getting with H265 is wrong?


[code]

VideoCapture video = new VideoCapture;
video.Open(filename);
if(!video.isOpened())
    return -1;

video->get(CAP_PROP_POS_FRAMES);
cv::Mat frame(size,size,CV_64FC3);
video >> frame;
if(!frame.ptr() == NULL)
    return -1;

//Video.get FOURCC is "hvc1"
//video.get FORMAT is 0
//frame.type = 16(CV_8UC3)