COLORS belissimo
Ultra HD editions of HDR color films contain much more color information than a regular monitor can display. But it can be used to make a more colorful video that can still be played on regular monitors.
Here are the usual colors
and color
Or here are the usual ones
and color
I must say that no one tried color! I'll have to do it myself. And it will be ffmpeg.
Is in ffmpeg.org/download.html
I'm Windows now. Therefore Windows builds from gyan.dev www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
All you need is one file ffmpeg.exe
and create a.cmd
So what is needed inside a.cmd? I'll tell you now)
First
ffmpeg -i We.mkv -map 0:0
That means the video is online. Which video? Resolution 3840 by 2160 (of which TWO out of THREE are 1920 by 1080) BDRemux and HDR10. Size 49 GB. Child of the weather.
You can of course audio
-map 0:1 -acodec flac
and now the main point
-vf format=yuv444p,zscale=t=linear:npl=35:p=709:w=1920:h=1080:f=point,tonemap=hable:desat=0,zscale=m=709,format=yuv444p
in it format=yuv444p only ffmpeg allows 4:4:4 color subsampling – each of the three components Y' Cb Cr has the same sampling frequency! That is, THREE resolution 3840 by 2160. And then three resolution 1920 by 1080. (And not two 960 by 540).
npl=35 is lighter or darker. Optimal 35.
And now the last one is p=709 and m=709 but in no case t=709!
If t then the colors are normal! And without – color! Same as the colors in the pictures.
-color_trc 1
still needs to be added. Otherwise linear in one place. And -color_trc 1 gives three bt709 colors too.
the last one is video encoding
-vcodec h264_nvenc -bf 4 -rc constqp -qp 20 -profile:v high444p -coder 1 -rc-lookahead 32 Weath.mkv
It’s clear that h264_nvenc and that -qp 20 (you can use -qp 18 or -qp 16). And high444p and not 420!
All!
Launch and wait about 4 hours. Ready.
I even have a trailer for Weather Child in color:
A little over a year ago, I suffered a stroke, after which I spent a long time recovering, and finally decided to write an article on Habr.