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 > Announcements and Chat > General Discussion

Reply
 
Thread Tools Display Modes
Old 20th May 2025, 01:04   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 510
Add Colormeitry Flags to the Same File

I have a video that doesn't have colorimetry flags. How do I add them to the video without having to create a new file? I tried using this command but I got the following error:

Code:
mkvpropedit "C:\Users\User\Videos\video.mkv" --edit track:1 -s colour-primaries=1 -s colour-transfer-characteristics=1 -s colour-matrix-coefficients=1
The file is being analyzed.
Error: The name 'colour-primaries' is not a valid property name for the current edit specification in '--set colour-primaries=1'.
jay123210599 is offline   Reply With Quote
Old 24th May 2025, 13:04   #2  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 5,069
For mkvpropedit it's color, not colour.

mkvpropedit stores/changes that info at the container level but it doesn't modify the bitstream, so if the info already exists in the bitstream MediaInfo will display something like:

Color primaries : BT.601 PAL
colour_primaries_Original : BT.709

I usually extract the video stream to a raw format with ffmpeg while adding/changing the VUI info, then remux it with MKVToolNix. The info isn't saved to the container that way, but as long as it's written to the video stream I don't think it matters.

https://ffmpeg.org/ffmpeg-all.html#h264_005fmetadata
https://ffmpeg.org/ffmpeg-all.html#hevc_005fmetadata

For h265:
Code:
ffmpeg -i input.mkv -vcodec copy -an -sn -bsf:v hevc_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 output.hevc
hello_hello is offline   Reply With Quote
Old 26th December 2025, 00:35   #3  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 996
Spammers love Jay's threads for some reason LOL
Z2697 is offline   Reply With Quote
Old 26th December 2025, 03:37   #4  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,389
Quote:
Originally Posted by Z2697 View Post
Spammers love Jay's threads for some reason LOL
I've already reported a bunch of them.
Unfortunately they don't seem to be stopping, not even at Christmas...
FranceBB is offline   Reply With Quote
Old 30th December 2025, 14:32   #5  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 138
At this point I'm grateful that the bots have been defeated (so far).
Columbo is offline   Reply With Quote
Old 30th December 2025, 14:54   #6  |  Link
GeoffreyA
.
 
Join Date: Jun 2024
Location: South Africa
Posts: 701
The battle has been won; the war continues.
GeoffreyA is offline   Reply With Quote
Old 2nd January 2026, 22:16   #7  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 2,044
Subforae: 777 viewing, 123 viewing, 362 viewing....
Indeed. Somebody sucks up everything they can digest, and more.
Just "less" agents, "only" 11164 guests of >51.000 peak. Doesn't feel too good.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 2nd January 2026 at 22:19.
Emulgator is offline   Reply With Quote
Reply

Tags
colorimetry

Thread Tools
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 00:00.


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