diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index 505814e96c..78eefc34a3 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/src/cap_msmf.cpp @@ -2469,6 +2469,12 @@ const GUID CvVideoWriter_MSMF::FourCC2GUID(int fourcc) #endif case CV_FOURCC_MACRO('H', '2', '6', '4'): return MFVideoFormat_H264; break; +#if defined(NTDDI_WIN10) + case CV_FOURCC_MACRO('H', '2', '6', '5'): + return MFVideoFormat_H265; break; + case CV_FOURCC_MACRO('H', 'E', 'V', 'C'): + return MFVideoFormat_HEVC; break; +#endif case CV_FOURCC_MACRO('M', '4', 'S', '2'): return MFVideoFormat_M4S2; break; case CV_FOURCC_MACRO('M', 'J', 'P', 'G'): diff --git a/modules/videoio/test/test_video_io.cpp b/modules/videoio/test/test_video_io.cpp index 595e1557ef..7d7944f5eb 100644 --- a/modules/videoio/test/test_video_io.cpp +++ b/modules/videoio/test/test_video_io.cpp @@ -388,6 +388,7 @@ static Ext_Fourcc_PSNR synthetic_params[] = { {"wmv", "WMV3", 30.f, CAP_MSMF}, {"wmv", "WVC1", 30.f, CAP_MSMF}, {"mov", "H264", 30.f, CAP_MSMF}, + // {"mov", "HEVC", 30.f, CAP_MSMF}, // excluded due to CI issue: https://github.com/opencv/opencv/pull/23172 #endif #ifdef HAVE_AVFOUNDATION @@ -991,6 +992,7 @@ static Ext_Fourcc_PSNR hw_codecs[] = { #ifdef _WIN32 {"mp4", "MPEG", 29.f, CAP_MSMF}, {"mp4", "H264", 29.f, CAP_MSMF}, + {"mp4", "HEVC", 29.f, CAP_MSMF}, #endif };