[FFmpeg-devel] [PATCH 4/4] vaapi_encode_h265: Enable 4:2:2 support
Mark Thompson
sw at jkqxz.net
Thu Mar 5 02:25:28 EET 2020
---
With <https://github.com/intel/media-driver/pull/866>, intra-only 4:2:2 encode works on Ice Lake with something like:
-vf 'format=yuyv422,hwupload' -c:v hevc_vaapi -g 1 out.mp4
There is still something wrong with inter frames.
libavcodec/vaapi_encode_h265.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c
index 59d150f503..79e3c70602 100644
--- a/libavcodec/vaapi_encode_h265.c
+++ b/libavcodec/vaapi_encode_h265.c
@@ -1197,6 +1197,10 @@ static const VAAPIEncodeProfile vaapi_encode_h265_profiles[] = {
#if VA_CHECK_VERSION(0, 37, 0)
{ FF_PROFILE_HEVC_MAIN_10, 10, 3, 1, 1, VAProfileHEVCMain10 },
{ FF_PROFILE_HEVC_REXT, 10, 3, 1, 1, VAProfileHEVCMain10 },
+#endif
+#if VA_CHECK_VERSION(1, 2, 0)
+ { FF_PROFILE_HEVC_REXT, 8, 3, 1, 0, VAProfileHEVCMain422_10 },
+ { FF_PROFILE_HEVC_REXT, 10, 3, 1, 0, VAProfileHEVCMain422_10 },
#endif
{ FF_PROFILE_UNKNOWN }
};
--
2.25.0
More information about the ffmpeg-devel
mailing list