[FFmpeg-trac] #11020(ffmpeg:new): Invalid color range error on ffmpeg 7.0
FFmpeg
trac at avcodec.org
Thu May 23 03:03:41 EEST 2024
#11020: Invalid color range error on ffmpeg 7.0
------------------------------------+----------------------------------
Reporter: Marius | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: 7.0 | Resolution:
Keywords: regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
Comment (by Balling):
Can be fixed with
{{{
ffmpeg.exe -i https://vid.connatix.com/mmid-545c8cbb-
f0f5-119b-2687-29df00ef32c7/original.mp4 -bsf:v
h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1
-c copy -colorspace
1 -color_trc 1 -color_primaries 1 cxdasca.mp4
}}}
Even just ffplay.exe https://vid.connatix.com/mmid-545c8cbb-
f0f5-119b-2687-29df00ef32c7/original.mp4
reproduces this.
I found the issue: yuv420p(tv, reserved, progressive), so colorspace is
set to reserved. Indeed,
00023A video_full_range_flag: 0 (0x0) - (1 bits) -
Limited
00023A colour_description_present_flag (3 bytes)
00023A colour_description_present_flag: Yes
00023A colour_primaries: 3 (0x03) - (8 bits) -
00023B transfer_characteristics: 3 (0x03) - (8 bits) -
00023C matrix_coefficients: 3 (0x03) - (8 bits) -
By looking into ITU-T H.273 all three of those are
Reserved (For future use by ITU-T | ISO/IEC)
also see:
https://www.reddit.com/r/ffmpeg/comments/1cqzgc4/ffmpeg_fails_to_encode_in_av1_with_some_videos/
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11020#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list