Gentoo|
Advanced video enhancing
Publikováno 2023-06-22 v 16:49:12
41
Conversion to HDR
ffmpeg -i input.mkv -vf "scale=in_color_matrix=bt709:out_color_matrix=bt709,format=yuv420p10le" -c:v libx265 -x265-params "hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50):max-cll=1000,400" -c:a copy output.mkv
Fairy theme
ffmpeg -i input.mkv -vf "
scale=in_color_matrix=bt709:out_color_matrix=bt709,
format=yuv420p10le,
curves=all='0/0 0.2/0.3 0.5/0.6 0.8/0.8 1/1',
colorbalance=rs=0.2:gs=0.2:bs=0.5,
vignette='PI/4*(X-0.5)*(Y-0.5)+0.2*rand(1)',
minterpolate='fps=30:mi_mode=mci:mc_mode=aobmc:me_mode=bidir:me=hexbs',
dither=grain=2
" -c:v libx265 -x265-params "hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50):max-cll=1000,400" -c:a copy output.mkv