﻿id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
9146,"ATC SEI of HLG (18) should overwrite color_trc from VUI in mp4, just like in ts and mkv",a1q123456,,"If a ts file contains an alternative_transfer_characteristics SEI, it seems like ffmpeg will sets color_trc to value provided by ATC-SEI rather than vui_parameters.transfer_characteristics. But if  the file is mp4 format, color_trc is the value provided by vui_parameters. Maybe 
ffmpeg should give same color_trc whether the file is mp4 or ts?


How to reproduce:
{{{

% ffmpeg -i <whatever-video.mp4> -color_trc bt2020-10 -color_primaries bt2020 -colorspace bt2020nc -vf ""format=yuv420p10le"" -t 00:00:01 -c:v hevc -x265-params ""atc-sei=18"" hevc-hdr.mp4

% ffmpeg -i hevc-hdr.mp4 -c copy hevc-hdr.ts

% ffmpeg -i hevc-hdr.ts
  ...
      Stream #0:0[0x100]: Video: hevc (Main 10) (HEVC / 0x43564548), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
                                                                                                     ^^^^^^^^^^^^^
  ...


% ffmpeg -i hevc-hdr.mp4
  ...
  Duration: 00:00:01.00, start: 0.000000, bitrate: 4115 kb/s
    Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/bt2020-10, progressive), 1920x1080, 4087 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)
                                                                                                 ^^^^^^^^^
  ...
% mediainfo hevc-hdr.ts
...
Transfer characteristics                 : HLG / BT.2020 (10-bit)
...
ffmpeg version: 4.3.1
}}}


",defect,open,normal,undetermined,unspecified,,hevc,,,,0,0
