[FFmpeg-trac] #9637(ffmpeg:open): Color matrix behaviour in colr box

FFmpeg trac at avcodec.org
Fri Feb 11 13:02:42 EET 2022


#9637: Color matrix behaviour in colr box
-------------------------------------+-------------------------------------
             Reporter:  Ulysse       |                    Owner:  (none)
  Dansin                             |
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:  x265 hdr     |               Blocked By:
  color_matrix colr_box              |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Ulysse Dansin):

 Hello Bailing
 Thank you for the quick response.

 We agree that setting -colorspace will fix the problem, our question is
 why this information cannot be read directly from the NAL SPS after
 encoding.

 This would simplify the command while at the same time avoiding color
 matrix information mismatch between codec and container...

 Replying to [comment:3 Balling]:
 > Exiftool will show Color Representation            : nclx 9 16 9
 >
 > ffmpeg -i "20200905-003746_TURKSAT_8K1.mkv" -filter_complex
 "scale=3840x1604,setsar=1/1" -c:v libx265 -preset fast -x265-params
 "crf=15:vbv-maxrate=50000:vbv-bufsize=250000:master-
 display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50
 ):max-cll=1261,512:ref=2" -pix_fmt yuv420p10le -vsync 1 -an -map_chapters
 -1 -map_metadata:g -1:g -map_metadata:s:v -1:g -map_metadata:s:a -1:g'''
 -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc'''
 -movflags +faststart -f mp4 .\out12121212121_nostuff.mp4
 >
 >
 > Okay? You are using it wrong.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9637#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list