Skip to content

Instantly share code, notes, and snippets.

@cameroncowden
Created August 8, 2022 16:17
Show Gist options
  • Save cameroncowden/a24edf69b83e1c6683a9498f7ac9a437 to your computer and use it in GitHub Desktop.
Save cameroncowden/a24edf69b83e1c6683a9498f7ac9a437 to your computer and use it in GitHub Desktop.
use ffmpeg to optimize a mov file for a shopify site (accepts mp4 only). Note: usings the downloadable executable ffmpeg, hence the ./
./ffmpeg -y -i input.mov -c:v libx264 -crf 30 -profile:v high -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart -an output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment