LigH
31st March 2022, 21:29
I got a request from an owner of a Vantrue X4S dashcam. He noticed that videos recorded by this camera appear over-saturated when downloaded to the PC. But they look suitable in the Vantrue mobile app. I checked a file (HEVC and AAC in MP4) with MediaInfo and noticed that the colorimetry is flagged as full scale BT.709; so I guess the "full scale" flag might be created wrong by the camera, hence media players respecting this flag expand the chrominance too wide, while the Vantrue app ignores it.
So I wonder: Is there any tool which is able to patch a HEVC video header in a way that the colorimetry gets changed to limited scale?
Or can you imagine a different reason?
Count : 331
Count of stream of this kind : 1
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : HEVC
Video_Format_WithHint_List : HEVC
Codecs Video : HEVC
Video_Language_List : en
Audio_Format_List : AAC LC
Audio_Format_WithHint_List : AAC LC
Audio codecs : AAC LC
Audio_Language_List : en
Complete name : F:\Downloads\20220331_155500_0213_N_A.MP4
Folder name : F:\Downloads
File name extension : 20220331_155500_0213_N_A.MP4
File name : 20220331_155500_0213_N_A
File extension : MP4
Format : MPEG-4
Format/Extensions usually used : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v
Commercial name : MPEG-4
Format profile : Base Media / Version 2
Internet media type : video/mp4
Codec ID : mp42
Codec ID : mp42 (isom/avc1/mp42)
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible : isom/avc1/mp42
File size : 111396516
File size : 106 MiB
File size : 106.2 MiB
Duration : 60000
Duration : 1mn 0s
Duration : 1mn 0s 0ms
Duration : 00:01:00.000
Duration : 00:01:00:00
Duration : 00:01:00.000 (00:01:00:00)
Overall bit rate mode : VBR
Overall bit rate : 14852869
Overall bit rate : 14.9 Mbps
Frame rate : 30.000
Frame rate : 30.000 fps
Frame count : 1800
Stream size : 3394340
Stream size : 3.24 MiB (3%)
Stream size : 3 MiB
Stream size : 3.2 MiB
Stream size : 3.24 MiB
Stream size : 3.237 MiB
Proportion of this stream : 0.03047
HeaderSize : 31716
DataSize : 111340648
FooterSize : 24152
IsStreamable : No
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
File creation date : UTC 2022-03-31 16:42:20.280
File creation date (local) : 2022-03-31 18:42:20.280
File last modification date : UTC 2022-03-31 16:42:26.106
File last modification date (local): 2022-03-31 18:42:26.106
Video
Count : 378
Count of stream of this kind : 1
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format/Url : http://www.itu.int
Commercial name : HEVC
Format profile : Main@L5@High
Internet media type : video/H265
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Codec ID/Url : http://www.itu.int/
Duration : 60000
Duration : 1mn 0s
Duration : 1mn 0s 0ms
Duration : 00:01:00.000
Duration : 00:01:00:00
Duration : 00:01:00.000 (00:01:00:00)
Bit rate : 14336320
Bit rate : 14.3 Mbps
Width : 2560
Width : 2560 pixel
Height : 1440
Height : 1440 pixel
Sampled_Width : 2560
Sampled_Height : 1440
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate : 30.000
Frame rate : 30.000 fps
Frame count : 1800
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bit
Bits/(Pixel*Frame) : 0.130
Stream size : 107522398
Stream size : 103 MiB (97%)
Stream size : 103 MiB
Stream size : 102.5 MiB
Proportion of this stream : 0.96522
Language : English
Language : eng
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
colour_description_present : Yes
colour_description_present_Source: Stream
Color range : Full
colour_range_Source : Stream
Color primaries : BT.709
colour_primaries_Source : Stream
Transfer characteristics : BT.709
transfer_characteristics_Source : Stream
Matrix coefficients : BT.709
matrix_coefficients_Source : Stream
CodecConfigurationBox : hvcC
Audio
Count : 281
Count of stream of this kind : 1
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
ID : 2
Format : AAC
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Commercial name : AAC
Format_AdditionalFeatures : LC
Codec ID : mp4a-40-2
Duration : 59968
Duration : 59s 968ms
Duration : 00:00:59.968
Duration : 00:00:58:09
Duration : 00:00:59.968 (00:00:58:09)
Bit rate mode : VBR
Bit rate : 64005
Bit rate : 64.0 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : Front: C
Channel positions : 1/0/0
Channel layout : C
Samples per frame : 1024
Sampling rate : 16000
Sampling rate : 16.0 KHz
Samples count : 959488
Frame rate : 15.625
Frame rate : 15.625 fps (1024 SPF)
Frame count : 937
Compression mode : Lossy
Stream size : 479778
Stream size : 469 KiB (0%)
Stream size : 469 KiB
Stream size : 468.5 KiB
Proportion of this stream : 0.00431
Language : English
Language : eng
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
mdhd_Duration : 59968
So I wonder: Is there any tool which is able to patch a HEVC video header in a way that the colorimetry gets changed to limited scale?
Or can you imagine a different reason?
Count : 331
Count of stream of this kind : 1
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : HEVC
Video_Format_WithHint_List : HEVC
Codecs Video : HEVC
Video_Language_List : en
Audio_Format_List : AAC LC
Audio_Format_WithHint_List : AAC LC
Audio codecs : AAC LC
Audio_Language_List : en
Complete name : F:\Downloads\20220331_155500_0213_N_A.MP4
Folder name : F:\Downloads
File name extension : 20220331_155500_0213_N_A.MP4
File name : 20220331_155500_0213_N_A
File extension : MP4
Format : MPEG-4
Format/Extensions usually used : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v
Commercial name : MPEG-4
Format profile : Base Media / Version 2
Internet media type : video/mp4
Codec ID : mp42
Codec ID : mp42 (isom/avc1/mp42)
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible : isom/avc1/mp42
File size : 111396516
File size : 106 MiB
File size : 106.2 MiB
Duration : 60000
Duration : 1mn 0s
Duration : 1mn 0s 0ms
Duration : 00:01:00.000
Duration : 00:01:00:00
Duration : 00:01:00.000 (00:01:00:00)
Overall bit rate mode : VBR
Overall bit rate : 14852869
Overall bit rate : 14.9 Mbps
Frame rate : 30.000
Frame rate : 30.000 fps
Frame count : 1800
Stream size : 3394340
Stream size : 3.24 MiB (3%)
Stream size : 3 MiB
Stream size : 3.2 MiB
Stream size : 3.24 MiB
Stream size : 3.237 MiB
Proportion of this stream : 0.03047
HeaderSize : 31716
DataSize : 111340648
FooterSize : 24152
IsStreamable : No
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
File creation date : UTC 2022-03-31 16:42:20.280
File creation date (local) : 2022-03-31 18:42:20.280
File last modification date : UTC 2022-03-31 16:42:26.106
File last modification date (local): 2022-03-31 18:42:26.106
Video
Count : 378
Count of stream of this kind : 1
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format/Url : http://www.itu.int
Commercial name : HEVC
Format profile : Main@L5@High
Internet media type : video/H265
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Codec ID/Url : http://www.itu.int/
Duration : 60000
Duration : 1mn 0s
Duration : 1mn 0s 0ms
Duration : 00:01:00.000
Duration : 00:01:00:00
Duration : 00:01:00.000 (00:01:00:00)
Bit rate : 14336320
Bit rate : 14.3 Mbps
Width : 2560
Width : 2560 pixel
Height : 1440
Height : 1440 pixel
Sampled_Width : 2560
Sampled_Height : 1440
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate : 30.000
Frame rate : 30.000 fps
Frame count : 1800
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bit
Bits/(Pixel*Frame) : 0.130
Stream size : 107522398
Stream size : 103 MiB (97%)
Stream size : 103 MiB
Stream size : 102.5 MiB
Proportion of this stream : 0.96522
Language : English
Language : eng
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
colour_description_present : Yes
colour_description_present_Source: Stream
Color range : Full
colour_range_Source : Stream
Color primaries : BT.709
colour_primaries_Source : Stream
Transfer characteristics : BT.709
transfer_characteristics_Source : Stream
Matrix coefficients : BT.709
matrix_coefficients_Source : Stream
CodecConfigurationBox : hvcC
Audio
Count : 281
Count of stream of this kind : 1
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
ID : 2
Format : AAC
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Commercial name : AAC
Format_AdditionalFeatures : LC
Codec ID : mp4a-40-2
Duration : 59968
Duration : 59s 968ms
Duration : 00:00:59.968
Duration : 00:00:58:09
Duration : 00:00:59.968 (00:00:58:09)
Bit rate mode : VBR
Bit rate : 64005
Bit rate : 64.0 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : Front: C
Channel positions : 1/0/0
Channel layout : C
Samples per frame : 1024
Sampling rate : 16000
Sampling rate : 16.0 KHz
Samples count : 959488
Frame rate : 15.625
Frame rate : 15.625 fps (1024 SPF)
Frame count : 937
Compression mode : Lossy
Stream size : 479778
Stream size : 469 KiB (0%)
Stream size : 469 KiB
Stream size : 468.5 KiB
Proportion of this stream : 0.00431
Language : English
Language : eng
Encoded date : UTC 2022-03-31 15:56:00
Tagged date : UTC 2022-03-31 15:56:00
mdhd_Duration : 59968