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.


Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 3rd March 2021, 20:15   #1  |  Link
Registered User
Join Date: Feb 2021
Posts: 12
Pass hdr10 master-display metadata to x265

AFAIK --master-display and --max-cll are the only HDR10 metadata options that can be different for different hdr10 sources. If you want to reencode such sources with x265 or ffmpeg using x265, you'll need to pass that metadata from the source to the encoder.
While max-cll is easily obtainable by querying the source with mediainfo, the string needed for the master-display option is not.
As I became too lazy to extract and convert that string manually everytime, I made a little tool that generates a master-display string to be used with x265's --master-display parameter directly. It supports manual input in cd/mē and information extraction via ffmpeg from the source file (which must have an hevc video stream).

Let's assume you just made a backup of a 4K blu-ray with makemkv. If you want to obtain the master-display string for x265 you just have to use this simple command:

convertmdinfo -i /path/to/my/movie.mkv
You can get the source on github via the link below and build it with gcc and probably other C compilers. You'll need the ffmpeg libs and headers though.

zweifingerjoe is offline   Reply With Quote

ffmpeg, hdr10, x265

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 11:58.

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