Fix #115493: AV1 lossless encoding is not actually lossless
All other YUV based codecs switch from default 4:2:0 YUV layout (which is lossy) to a full resolution 4:4:4 YUV. However AV1 was not doing that, probably by oversight. Pull Request: https://projects.blender.org/blender/blender/pulls/132738
This commit is contained in:
committed by
Aras Pranckevicius
parent
5839d03c0b
commit
e0044790d3
@@ -790,7 +790,7 @@ static AVStream *alloc_video_stream(MovieWriter *context,
|
||||
if (codec_id == AV_CODEC_ID_VP9 && rd->im_format.planes == R_IMF_PLANES_RGBA) {
|
||||
c->pix_fmt = AV_PIX_FMT_YUVA420P;
|
||||
}
|
||||
else if (ELEM(codec_id, AV_CODEC_ID_H264, AV_CODEC_ID_H265, AV_CODEC_ID_VP9) &&
|
||||
else if (ELEM(codec_id, AV_CODEC_ID_H264, AV_CODEC_ID_H265, AV_CODEC_ID_VP9, AV_CODEC_ID_AV1) &&
|
||||
(context->ffmpeg_crf == 0))
|
||||
{
|
||||
/* Use 4:4:4 instead of 4:2:0 pixel format for lossless rendering. */
|
||||
|
||||
Reference in New Issue
Block a user