Skip to content

Instantly share code, notes, and snippets.

@nusserstudios
Created December 3, 2020 21:50
Show Gist options
  • Save nusserstudios/22b09390f5bac9a8e96e08def354d5ed to your computer and use it in GitHub Desktop.
Save nusserstudios/22b09390f5bac9a8e96e08def354d5ed to your computer and use it in GitHub Desktop.
ffmpeg hdr convert ubuntu
ffmpeg -y -fflags +genpts -use_wallclock_as_timestamps 1 -i "in.mkv" -analyzeduration 100M -probesize 100M -max_muxing_queue_size 9999 -map 0:v -map 0:a -map 0:s? -c:s copy -c:a copy -pix_fmt yuv420p10le -vf scale=out_color_matrix=bt2020:out_h_chr_pos=0:out_v_chr_pos=0,format=yuv420p10 -c:v libx265 -preset slow -x265-params "high-tier=1:level-idc=5.1:open-gop=1:crf=22:crf-min=5:crf-max=40:aq-mode=1:colorprim=bt2020:colormatrix=bt2020nc:transfer=smpte2084:colormatrix=bt2020nc:hdr=1:hdr=1:info=1:repeat-headers=1:max-cll=0,0:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(12000000,200)" "out.mkv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment