View Full Version : Adding MaxCLL / MaxFall metadata in mov container
FranceBB
10th September 2025, 19:19
Hi there,
I'm trying to remux some Apple ProRes HQ BT2020 HDR PQ files in a mov container to add the MaxCLL / MaxFall information.
I generally have no problem adding those in the H.265 HEVC stream via x265 as it's as easy as it's as simple as using
--colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --max-cll 1000,400
however here I'm dealing with an Apple ProRes which means that I can only add them in the mov container.
I tried remuxing with
ffmpeg.exe -hide_banner -fflags +genpts -i "Test.mov" -map 0:0 -map 0:1 -c:v copy -c:a copy -map_metadata -1 -color_range 1 -color_primaries 9 -color_trc 16 -colorspace 9 -movflags write_colr -metadata:s:v:0 "maxcll=1000,400" -f mov -y "Remux.mov"
pause
however the output still doesn't have MaxCLL / MaxFall.
The encode is nothing particular, it's just a simple
ffmpeg.exe -hide_banner -i "A:\MEDIA\temp\test.avs" -vcodec prores_ks -profile:v 3 -qscale:v 0 -vendor apl0 -color_range 1 -color_primaries 9 -color_trc 16 -colorspace 9 -movflags write_colr -metadata:s:v:0 "maxcll=1000,400" -c:a pcm_s24le -ar 48000 -f mov -y "A:\MEDIA\temp\final_output.mov"
pause
which I'm using to re-encode the input. Any clues?
(yes, Ben, I'm doing this "for you" as you guys mandate Apple ProRes HQ in a mov container eheheheheh)
Kurt.noise
11th September 2025, 08:24
you should be able to do that within MP4box (https://wiki.gpac.io/MP4Box/mp4box-import-opts/#file-importing) (colorprim, colortfc, colormx switches)
FranceBB
11th September 2025, 18:22
I've only used MP4Box to mux / remux mp4 containers, I didn't know it could mux mov containers as well or perhaps you mean remuxing to mp4, add the info in the container and then remux again back to mov? In which case, that would be a bit more convoluted.
EDIT: Actually no, we can't mux an Apple ProRes with PCM audio in an mp4 container anyway...
Kurt.noise
13th September 2025, 06:48
but did you actually try it ? coz it's quite the same...
mp4box.exe -info "E:\Backup\ProRes_RAW_HQ .mov"
[iso file] Unknown box type aprh in parent stsd
[iso file] Box "tmcd" (start 652893419) has 6 extra bytes
# Movie Info - 3 tracks - TimeScale 24000
Duration 00:00:05.797
Fragmented: no
Major Brand qt - version 0 - compatible brands: qt
Created: GMT Wed Nov 3 14:21:05 2021
- Modified: GMT Wed Nov 3 14:21:07 2021
# Movie Meta type: "mdta" - 0 resource item(s)
# Track 1 Info - ID 1 - TimeScale 48000
Media Duration 00:00:05.797
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 278259 - CFR 48000/sec
Media Type: soun:lpcm
PCM Audio - Sample Rate 48000.000000 channels 4 24-bits int little-endian
RFC6381 Codec Parameters: lpcm
All samples are sync
Max sample duration: 1 / 48000
# Track 2 Info - ID 2 - TimeScale 24000
Media Duration 00:00:05.839
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 140 - CFR 23.976025/sec
Visual Track layout: x=0 y=0 width=4264 height=2408
Media Type: vide:aprh
Visual Sample Entry Info: width=4264 height=2408 (depth=24 bits)
Visual - Compressor "Apple ProRes RAW HQ" - Resolution 4264 x 2408
Vendor code "appl" - Version 0 - revision 0
RFC6381 Codec Parameters: aprh
All samples are sync
Max sample duration: 1001 / 24000
# Track 3 Info - ID 3 - TimeScale 24000
Media Duration 00:00:28.737
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 1 - CFR 0.034798/sec
Media Type: tmcd:tmcd
Time Code stream
First timecode: 00:00:10:00
RFC6381 Codec Parameters: tmcd
All samples are sync
Max sample duration: 689689 / 24000
mp4box.exe -add "E:\Backup\ProRes_RAW_HQ .mov" -new "E:\Backup\t3.mov"
[iso file] Unknown box type aprh in parent stsd
[iso file] Box "tmcd" (start 652893419) has 6 extra bytes
IsoMedia import ProRes_RAW_HQ .mov - track ID 1 - Audio (SR 1 - 3 channels)
[iso file] Unknown box type aprh in parent stsd
IsoMedia import ProRes_RAW_HQ .mov - track ID 2 - Video (size 4264 x 2408)
IsoMedia import ProRes_RAW_HQ .mov - track ID 3 - media type "tmcd:tmcd"
[QTFF/ProRes] Adjusting QTFF compliancy
[ProRes] No color info present in visual track, defaulting to BT709
Saving E:\Backup\t3.mov: 0.500 secs Interleaving
mp4box.exe -info "E:\Backup\t3.mov"
[iso file] Unknown box type aprh in parent stsd
# Movie Info - 3 tracks - TimeScale 24000
Duration 00:00:05.797
Fragmented: no
Progressive (moov before mdat)
Major Brand qt - version 512 - compatible brands: qt
Created: GMT Sat Sep 13 05:41:14 2025
# Track 1 Info - ID 1 - TimeScale 48000
Media Duration 00:00:05.797
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 278259 - CFR 48000/sec
Media Type: soun:lpcm
PCM Audio - Sample Rate 48000.000000 channels 4 24-bits int little-endian
RFC6381 Codec Parameters: lpcm
All samples are sync
Max sample duration: 1 / 48000
# Track 2 Info - ID 2 - TimeScale 24000
Media Duration 00:00:05.839
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 140 - CFR 23.976025/sec
Visual Track layout: x=0 y=0 width=4264 height=2408
Media Type: vide:aprh
Visual Sample Entry Info: width=4264 height=2408 (depth=24 bits)
Visual - Compressor "Apple ProRes RAW HQ" - Resolution 4264 x 2408
Vendor code "appl" - Version 0 - revision 0
RFC6381 Codec Parameters: aprh
All samples are sync
Max sample duration: 1001 / 24000
# Track 3 Info - ID 3 - TimeScale 24000
Media Duration 00:00:28.737
Track has 1 edits: track duration is 00:00:05.797
Track flags: Enabled In Movie In Preview Size is AspectRatio
Media Language: English (eng)
Media Samples: 1 - CFR 0.034798/sec
Media Type: tmcd:tmcd
Time Code stream
First timecode: 00:00:10:00
RFC6381 Codec Parameters: tmcd
All samples are sync
Max sample duration: 689689 / 24000
StainlessS
13th September 2025, 08:49
I know nuttin bout such things, but I do notice something that seems not quite right with previous post output.
"Media Samples: 140 - CFR 23.976025/sec"
The 5 digit should be '4',
24000 / 1001 = 23.97602398 (last digit 7x rounded to 8 on my calculator), but should be recurring digits 23.9760 239760 239760 239760 etc
So for digit string 397xxx should round up to lead digit 4, not 5.
So result should be 23.976024 (with the final digit rounded up)
Maybe nobody cares.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.