hi! Im working on encoding some clips i have in pro-res format to HEVC for HDR10 testing.
Source: Prores 4:2:2 10bit UHD - Nature scene 10000frames
Syntax:
Pass 1:
ffmpeg -i "output2.mov" -strict -1 -vf scale=out_color_matrix=bt2020nc
ut_h_chr_pos=0
ut_v_chr_pos=0,format=yuv420p10 -an -r 25 -f yuv4mpegpipe - | "x265.exe" --y4m - --output-depth 10 --input-res 3840x2160 --fps 25 --preset veryslow --b-adapt 2 --ref 4 --open-gop --keyint 48 --profile main10 --level-idc 5.1 --no-high-tier --sar 1:1 --colorprim bt2020 --transfer smpte-st-2084 --colormatrix bt2020nc --b-pyramid --bframes 4 --hrd --vbv-bufsize 35000 --bitrate 35000 --vbv-maxrate 40000 --slow-firstpass --pass 1 --stats "test_HDR10.stats" --aud --chromaloc 2 --max-cll "1000,400" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,0.0050)" --output nul
Pass 2:
ffmpeg -i "output2.mov" -strict -1 -vf scale=out_color_matrix=bt2020nc
ut_h_chr_pos=0
ut_v_chr_pos=0,format=yuv420p10 -an -r 25 -f yuv4mpegpipe - | "x265.exe" --y4m - --output-depth 10 --input-res 3840x2160 --fps 25 --preset slow --b-adapt 2 --ref 4 --open-gop --keyint 48 --profile main10 --level-idc 5.1 --no-high-tier --sar 1:1 --colorprim bt2020 --transfer smpte-st-2084 --colormatrix bt2020nc --b-pyramid --bframes 4 --hrd --vbv-bufsize 35000 --bitrate 35000 --vbv-maxrate 40000 --slow-firstpass --pass 2 --stats "test_HDR10.stats" --aud --chromaloc 2 --max-cll "1000,400" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,0.0050)" --output "test_HDR10.hevc"
Ive selected slow on the 2nd pass since it takes like 3 days to encode on my Haswell if not..
In the recent 2.3 release of x265, there are some new features for HDR.. Not sure how to incorporate the hdr features..
any comments are welcomed
TEB