[FFmpeg-trac] #9374(undetermined:closed): mkv to mp4 has a color tint
FFmpeg
trac at avcodec.org
Wed Aug 18 00:29:04 EEST 2021
#9374: mkv to mp4 has a color tint
-------------------------------------+-------------------------------------
Reporter: razvan | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component:
| undetermined
Version: git-master | Resolution: duplicate
Keywords: mp4 tint | Blocked By:
color |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by jeeb):
This is actually two bugs, one of which you are correct about (RGB matrix
not being reset in the scale filter leading to 4:4:4 YCbCr being
mistakenly flagged as RGB).
The other one (captured bgr0 getting flagged as limited range - no scale
filter involved at all) is a result of a piece of old logic which was
correct when x264 only supported YCbCr, but was not changed as RGB support
was added to the wrapper. If the range flag was set to unspecified, it
would only set the full range flag for the YUVJ pixel formats and set it
to off otherwise.
I noticed this same logic was also copied over to the libx265 wrapper.
I have posted a patch set to fix this issue in the libx264 and libx265
wrappers for now:
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=4613
Of course, the logic generating the AVFrame should probably set the range
flag, but that is not something for tonight.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9374#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list