Skip to content

Instantly share code, notes, and snippets.

@LeeiFrankJaw
Created June 19, 2023 02:58
Show Gist options
  • Save LeeiFrankJaw/66a312e9d88fedb840cd0421fc6562af to your computer and use it in GitHub Desktop.
Save LeeiFrankJaw/66a312e9d88fedb840cd0421fc6562af to your computer and use it in GitHub Desktop.
Compress Apple HEVC HDR Videos
for i in *.mp4; do
ffmpeg -i "$i" -c:v libx265 -crf 30 -c:a copy -color_primaries bt2020 -colorspace bt2020nc -color_trc arib-std-b67 -map_metadata 0 -max_muxing_queue_size 1024 -n Compressed/${i::-4}.mp4;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment