[FFmpeg-trac] #9146(undetermined:new): ffmpeg gives different value of color_trc if video stream contains an atc sei for mp4 and ts file

FFmpeg trac at avcodec.org
Wed Mar 10 04:54:46 EET 2021


#9146: ffmpeg gives different value of color_trc if video stream contains an atc
sei for mp4 and ts file
-------------------------------------+-------------------------------------
             Reporter:  a1q123456    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  4.2
  undetermined                       |
             Keywords:  hevc hlg     |               Blocked By:
  color_trc                          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/9146>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list