#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to
produce
wrong color
----------------------------------+--------------------------------------
Reporter: gnattu | Type: defect
Status: new | Priority: normal
Component: avfilter | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
When use `-hwaccel_output_format videotoolbox_vld` with `scale_vt` filter,
the output SDR file will have a wrong color. The red light would appears
to be yellow.
The sunlight from below video sample from LG promotion will produce a
difference that is very easy to tell:
https://isovideo.com/SDR_to_HLG_Conversion_Clips/LG_4K_OLED_Wonders-184055-tmu_hlg10_hevc.mkv
How to reproduce:
Run below command and the test.mp4 will have wrong color:
{{{
% ./ffmpeg -hwaccel videotoolbox \
-hwaccel_output_format videotoolbox_vld \
-i LG_4K_OLED_Wonders-184055-tmu_hlg10_hevc.mkv \
-c:v hevc_videotoolbox \
-profile:v main \
-b:v 3M \
-vf
scale_vt=w=iw/2:h=ih/2:color_matrix=bt709:color_primaries=bt709:color_transfer=bt709
\
-c:a copy \
-tag:v hvc1 \
test.mp4
}}}
Run this, just removing the `-hwaccel_output_format videotoolbox_vld \`
line, and replace it with an hwupload, will give you a correct color:
{{{
%./ffmpeg -hwaccel videotoolbox \
-i /Users/gnattu/Movies/ffmpeg-sample/4K_HLG.mkv \
-c:v hevc_videotoolbox \
-profile:v main \
-b:v 3M \
-vf
hwupload,scale_vt=w=iw/2:h=ih/2:color_matrix=bt709:color_primaries=bt709:color_transfer=bt709
\
-c:a copy \
-tag:v hvc1 \
test-correct.mp4
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10884>
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".