Skip to content

Instantly share code, notes, and snippets.

@novogrammer
Last active October 24, 2023 10:51
Show Gist options
  • Save novogrammer/a34287393452ba915a3990095b178c79 to your computer and use it in GitHub Desktop.
Save novogrammer/a34287393452ba915a3990095b178c79 to your computer and use it in GitHub Desktop.
transparent PNG to transparent MOV
#!/bin/bash
# 60fps
ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -colorspace bt2020nc -color_trc bt709 -color_primaries bt2020 -vf setparams=color_primaries=bt2020:color_trc=bt709:colorspace=bt2020nc -alpha_quality 0.9 -vtag hvc1 -b:v 1M output.mov
# without colorspace
#ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -alpha_quality 0.9 -vtag hvc1 -crf 10 -b:v 1M output.mov
# too large
#ffmpeg -r 60 -i input%02d.png -c:v prores_ks output.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment