Blender Git Commit Log

Git Commits -> Revision 9bd5dff

June 7, 2021, 14:58 (GMT)
FFmpeg: Fix H264 lossless render not lossless

While encoder parameters for lossless encoding are set correctly,
output is not lossless due to pixel format being set to
`AV_PIX_FMT_YUV420P` which is inherently lossy due to chroma subsampling.

This was reported in T61569 and was merged to T57397, but there were
2 bugs - one for encoding and one for decoding.

Set pixel format to `AV_PIX_FMT_YUV444P` when rendering lossless H264
files. This format isn't available in `codec->pix_fmts[0]` and it looks,
that it has to be hard-coded.

Reviewed By: sergey

Differential Revision: D11458

Commit Details:

Full Hash: 9bd5dff7909815659cb71fb39755520d238fec42
Parent Commit: c342719
Committed By: Jacques Lucke
Lines Changed: +6, -0

1 Modified Path:

/source/blender/blenkernel/intern/writeffmpeg.c (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021