Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-03-03 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Comment (by yigithan):

 With some research, the problem looks like to me "Tone mapping". I am not
 sure I am still trying to figure out but it looks like default
 {{{videotoolbox_vld}}} making basic tone mapping**?** during hardware
 decoding and if specify the {{{pix_fmt}}} in this case the **format =
 **{{{p010le}}} which is 10 bit format, It looks like it supposed to be.
-- 
Ticket URL: 
FFmpeg 
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".


Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-03-01 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Comment (by yigithan):

 I am new at this project but looks like pixel format causes the problem.

 With {{{-hwaccel_output_format videotoolbox_vld}}} you are using
 {{{videotoolbox_vld}}} as {{{pix_fmt}}}. If you run like that
 {{{-hwaccel_output_format p010le}}} it should work as expected. I could
 not figure out how videotoolbox selects pixel format inside. But looks
 like it's supporting in the official documentation.
-- 
Ticket URL: 
FFmpeg 
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".


Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Changes (by gnattu):

 * Attachment "correct-color.jpg" added.

 The correct color output. The sunlight looks more natural.
-- 
Ticket URL: 
FFmpeg 
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".


Re: [FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#10884: Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to 
produce
wrong color
+
 Reporter:  gnattu  |Owner:  (none)
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Changes (by gnattu):

 * Attachment "wrong-color.jpg" added.

 The wrong color output. The sunlight appears too yellow.
-- 
Ticket URL: 
FFmpeg 
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".


[FFmpeg-trac] #10884(avfilter:new): Using `-hwaccel_output_format videotoolbox_vld` make `scale_vt` to produce wrong color

2024-02-26 Thread FFmpeg
#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: 
FFmpeg 
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".