Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th September 2025, 19:19   #1  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,381
Adding MaxCLL / MaxFall metadata in mov container

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

Quote:
--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

Quote:
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

Quote:
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)

Last edited by FranceBB; 10th September 2025 at 19:27.
FranceBB is offline   Reply With Quote
Old 11th September 2025, 08:24   #2  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Location: Aix en Provence, France
Posts: 163
you should be able to do that within MP4box (colorprim, colortfc, colormx switches)
Kurt.noise is offline   Reply With Quote
Old 11th September 2025, 18:22   #3  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,381
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...
FranceBB is offline   Reply With Quote
Old 13th September 2025, 06:48   #4  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Location: Aix en Provence, France
Posts: 163
but did you actually try it ? coz it's quite the same...

Code:
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
Code:
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
Code:
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
Kurt.noise is offline   Reply With Quote
Old 13th September 2025, 08:49   #5  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,411
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th September 2025 at 09:32.
StainlessS is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.