Command-line tool to convert .mov files to lightweight .mp4
npm install mov2mp4A command-line tool to convert .mov files to lightweight .mp4 files using H.264/AAC encoding.
macOS Screen Recording creates .mov files that are often very large. A 5-minute screen recording can easily be 500MB+. This tool compresses them to a fraction of the size while maintaining good quality, making them easier to share via email, Slack, or upload to the web.
- Node.js 20.0.0 or higher
- FFmpeg must be installed on your system
Homebrew:
``bash`
brew install ffmpeg
MacPorts:
`bash`
sudo port install ffmpeg
`bash`
brew install pleymor/mov2mp4/mov2mp4
This automatically installs ffmpeg as a dependency.
`bash`
npm install -g mov2mp4
Or run directly with npx:
`bash`
npx mov2mp4 input.mov
Convert a .mov file to .mp4 with default settings (medium quality):
`bash`
mov2mp4 recording.mov
This creates recording.mp4 in the same directory.
Specify where to save the output file:
`bash`
mov2mp4 recording.mov -o ~/Desktop/compressed.mp4
Choose between three quality levels:
`bashLow quality (smallest file, CRF 28)
mov2mp4 recording.mov -q low
$3
`bash
mov2mp4 --help
`Example
`bash
$ mov2mp4 screen-recording.mov -q lowConverting: screen-recording.mov
Progress: 100%
Conversion complete!
Output: screen-recording.mp4
Original size: 523.4 MB
New size: 42.1 MB
Compression: 92% reduction
``MIT