[FFmpeg-cvslog] nvenc: Force high_444 profile for 444 input
Yogender Gupta
git at videolan.org
Thu Mar 23 13:08:46 EET 2017
ffmpeg | branch: master | Yogender Gupta <ygupta at nvidia.com> | Thu Oct 6 09:10:25 2016 +0000| [da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6] | committer: Luca Barbato
nvenc: Force high_444 profile for 444 input
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6
---
libavcodec/nvenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 0b6e4ce..9c35bd0 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -723,6 +723,11 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
break;
}
+ if (ctx->data_pix_fmt == AV_PIX_FMT_YUV444P) {
+ cc->profileGUID = NV_ENC_H264_PROFILE_HIGH_444_GUID;
+ avctx->profile = FF_PROFILE_H264_HIGH_444_PREDICTIVE;
+ }
+
h264->level = ctx->level;
return 0;
More information about the ffmpeg-cvslog
mailing list