Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Could I use VideoWriter to save the video as H.265(HEVC) format?

OS : windows 10 64 bits Compiler : vc2015 opencv : 3.4.0

Try with following codes, but do not work

video_writer_.open(file_location,
                              cv::VideoWriter::fourcc('H','E','V','C'), //tried with 'H','2','6','5' too
                              static_cast<double>(config_.fps_), video_size_);

Got error messages

OpenCV: FFMPEG: tag 0x43564548/'HEVC' is not found (format 'avi / AVI (Audio Video Interleaved)')'

What kind of error I made?

Lack of dll? If yes, which dll I should use?

Wrong input of fourcc?

Thanks