🎥 Install & Use ffmpeg on Mac, Linux & Windows (Mini Tutorial)
ffmpeg is a powerful command-line tool for processing video, audio, and streams. It can convert formats, extract audio, resize videos, cut clips, and much more. It’s free, open source, and used everywhere from YouTube uploaders to Hollywood studios.
🔧 Install ffmpeg
🖥 macOS
You’ll need Homebrew — the Mac package manager. If you don’t have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then install ffmpeg:
brew install ffmpeg
🐧 Linux
On Ubuntu/Debian:
sudo apt updatesudo apt install ffmpeg
On Arch/Manjaro:
sudo pacman -S ffmpeg
On Fedora/RHEL:
sudo dnf install ffmpeg
🪟 Windows
Download the official static build:
Click "Windows" → Choose a build (e.g., gyan.dev or BtbN)
Download the .zip file, extract it, and copy the bin/ffmpeg.exe path
Add the bin folder to your System PATH so you can run ffmpeg from any command prompt
To test:
ffmpeg -version
🧠 What Can ffmpeg Do?
🎞 Convert video/audio formats
🎧 Extract or replace audio from a video
✂️ Cut or trim media files (lossless or re-encoded)
📏 Resize, crop, rotate videos
📷 Turn videos into image sequences or vice versa
🔁 Batch process files in scripts
It supports nearly every media format imaginable: mp4, mov, avi, mp3, aac, webm, gif, wav, etc.
🌐 Why .mov Files Don’t Work in Browsers
Apple's .mov format often uses proprietary codecs (like ProRes) that aren’t supported by most web browsers. Even if the file plays fine on your Mac, it may not work in Chrome, Firefox, or Safari on other platforms.
✅ Convert .mov to .mp4 for Web
To make it web-friendly, convert it to .mp4 using H.264 and AAC:
ffmpeg -i input.mov -vcodec libx264 -acodec aac output.mp4
Want even smaller files? Add -crf 23 (lower is better quality, 18–28 is typical):
ffmpeg -i input.mov -vcodec libx264 -acodec aac -crf 23 output.mp4
Now you can safely embed your video on websites using <video> tags or platforms like Free2z.
🚀 Quick Examples
🎧 Extract audio from a video
ffmpeg -i video.mp4 -q:a 0 -map a audio.mp3
✂️ Trim a clip without re-encoding
ffmpeg -i video.mp4 -ss 00:00:30 -to 00:01:00 -c copy clip.mp4
📏 Resize a video to 720p
ffmpeg -i input.mp4 -vf "scale=1280:720" output.mp4
📸 Convert video to GIF
ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos" output.gif
🔍 Pro Tips
Use -hide_banner to suppress startup info.
Add -y to auto-overwrite files without prompts.
For highest quality: use libx264 with -crf 18 or -preset slow
📚 Learn More
Run this in your terminal for the manual:
man ffmpeg
Or check the official docs.
💬 Final Thought
ffmpeg is like a Swiss Army knife for media. Once you learn a few flags, you can do almost anything — faster than with any GUI.

