#11238: -color_trc and -color_primaries flags don't work
-------------------------------------+-------------------------------------
Reporter: owztue | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
How to reproduce:
Any video input would do i think (at least h264 in mp4 with yuv420p), but
you can also test it with one of ffmpeg's test source:
{{{
% ffmpeg -f lavfi -i smptebars -c:v rawvideo -pix_fmt uyvy422 -t 3
rawvid.avi
}}}
And then reencode the result to h264:
{{{
% ffmpeg -i rawvid.avi -c:v libx264 -pix_fmt yuv420p -color_range "tv"
-colorspace "bt709" -color_trc "bt709" -color_primaries "bt709" vid-
reenc.mp4
}}}
and now output of {{{ffprobe -show_streams vid-reenc.mp4}}} has
{{{
yuv420p(tv, bt709/unknown/unknown, progressive),
color_range=tv
color_space=bt709
color_transfer=unknown
color_primaries=unknown
}}}
I don't know when this problem emerged, but version built on 03/May/2024
doesn't have this problem and all the flags are set correctly with the
same commands above. I'm on 09/Oct/2024 master-latest build now.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11238>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".