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. |
![]() |
#1 | Link |
Registered User
Join Date: Jul 2009
Posts: 242
|
Add HDR metadata on SDR video.
Hello, is it possible to convert SDR video to HDR video (or even Dolby Vision)? A bit like MadVR does to convert HDR to Dovi.
I tried with ffmpeg, but they catch a tint to red. I'm upscaling videos in 4K and would like to put them in HDR. Thank you for your answers. |
![]() |
![]() |
![]() |
#2 | Link | ||
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,565
|
Quote:
Assuming you're upscaling from BT709 SDR FULL HD and your video is already progressive: Quote:
Code:
ffmpeg.exe -i "\\VBOXSVR\Share_Windows_Linux\Production\AVS\test.avs" -vf scale=out_color_matrix=bt2020nc:out_h_chr_pos=0:out_v_chr_pos=0 -pix_fmt yuv420p16le -strict -1 -an -f yuv4mpegpipe - | x265.exe --y4m - --dither --preset medium --level 5.0 --no-high-tier --ref 4 --profile main10 --crf 22 --deblock -1:-1 --hdr-opt --hrd --min-luma 64 --max-luma 940 --chromaloc 2 --range limited --videoformat component --colorprim bt2020 --transfer arib-std-b67 --colormatrix bt2020nc --atc-sei 18 --overscan show --repeat-headers --rd 3 --vbv-maxrate 25000 --vbv-bufsize 25000 --wpp -o "\\VBOXSVR\Share_Windows_Linux\raw_video.hevc" ffmpeg.exe -i "\\VBOXSVR\Share_Windows_Linux\Production\AVS\test.avs" -map 0:1 -af loudnorm=I=-24:LRA=14:tp=-2 -c:0:1 ac3 -b:0:1 384k -ar 48000 "\\VBOXSVR\Share_Windows_Linux\audio.ac3" pause I would write a command line command for it but it's 10PM on Saturday evening and I just don't feel like it, but yeah, you can use whatever you want to encode it with whatever settings and whatever container as long as it supports H.265 and HDR metadata. p.s in case you don't feel comfortable using Avisynth or x265 directly and you wanna use FFMpeg to do everything, just apply the LUT from within FFMpeg and call it a day: https://forum.doom9.org/showthread.php?t=176091 Cheers, Frank Last edited by FranceBB; 26th March 2022 at 22:28. |
||
![]() |
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,831
|
It's going to be far from perfect.
You would need some well done tool, which would do it in 2 passes and per scene. Technicolor use to work on such a tool, but no idea what happened with it. We still struggle with HDR to SDR conversion as any tool which does it globally (not per scene based on analysis) will give compromised results. |
![]() |
![]() |
![]() |
Tags |
dolby vision, hdr |
Thread Tools | Search this Thread |
Display Modes | |
|
|