Skip to content

Instantly share code, notes, and snippets.

@brightzheng100
Created October 17, 2022 09:02
Show Gist options
  • Save brightzheng100/6e2cc7ef633cadeecd76834383907e71 to your computer and use it in GitHub Desktop.
Save brightzheng100/6e2cc7ef633cadeecd76834383907e71 to your computer and use it in GitHub Desktop.
MP4 processing with ffmpeg

It's frustrating to have a much bigger file exported from iMovie. For example, a editing of WebEx recording, which is MP4 file, in iMovie and exporting it out as MP4, will significantly increase the size, say from 300MB to 2.5GB.

The simplest way to shrink it, based on my experiments, is to use ffmpeg:

ffmpeg -i source.mp4 -c:v libx265 -preset fast -crf 28 -tag:v hvc1 -c:a eac3 -b:a 224k output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment