#11269: hevc_amf with 10-bit video incorrectly forces output color space to 
BT2020
-------------------------------------+-------------------------------------
             Reporter:  Adrian       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  amf          |               Blocked By:
  hevc_amf                           |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 Encoding any 10-bit video using `hevc_amf` encoder forces it's output
 color space to BT2020, even if the original file is using BT709. This is
 caused by this code here:
 
https://github.com/FFmpeg/FFmpeg/blob/08b1bffa49715a9615acc025dfbea252d8409e1f/libavcodec/amfenc_hevc.c#L257-L266

 Example video file: https://drive.google.com/file/d
 /1OFyV08QcJnrK8fNYCeQt2jTvW-Olt5Dw/view?usp=sharing

 How to reproduce:
 {{{
 % ffmpeg.exe -i DJI_20241020171413_0160_D.MP4 -c:v hevc_amf -t 2 out.mp4
 ffmpeg 7.1
 }}}

 ffprobe then shows`yuv420p10le(tv, bt709/bt2020/smpte2084, progressive)`
 and colors are messed up (depends on the player, but for example in
 Windows' Media Player)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11269>
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".

Reply via email to