A bash script that converts QuickTime .mov videos to .mp4 using ffmpeg.
- ffmpeg — install with
brew install ffmpeg
# Convert a single file
./mov2mp4.sh video.mov
# Convert multiple files at once
./mov2mp4.sh clip1.mov clip2.mov
# Convert all .mov files in the current directory
./mov2mp4.sh *.movOutput files are saved alongside the originals with the .mp4 extension.
- Video is encoded with H.264 (
libx264) at quality level 22 - Audio is encoded with AAC at 192k
- Files are optimized for web streaming (
faststart)