10/13/2025
Effortlessly convert video formats like MOV to MP4 with FFmpeg. Get the one-line command, understand key parameters, and learn to control quality for perfect results.
How to Convert Video Formats with FFmpeg: The Ultimate Quick Guide (MOV to MP4 Example)
Have you ever received a .MOV
or .MKV
file only to find it won't play on your favorite device or software? File format incompatibility is one of the most common headaches in the digital world. Fortunately, FFmpeg empowers you to become a format conversion master with a single command.
🚀 Quick Path: The FFmpeg Command
To convert a video from one format to another (for instance, from input.mov
to output.mp4
), the simplest command is:
ffmpeg -i input.mov output.mp4
FFmpeg intelligently infers the correct encoders and container format to use based on the output filename extension (.mp4
) you provide.
🧠The Breakdown: What Each Parameter Means
This command is beautifully concise. Let's understand its components:
Parameter | Explanation | Example |
---|---|---|
ffmpeg |
The command that starts the FFmpeg program. | ffmpeg |
-i input.mov |
-i stands for "input," followed immediately by your source filename. |
-i my_wedding_video.mov |
output.mp4 |
The desired filename for your destination file. FFmpeg uses the .mp4 extension to automatically select appropriate video/audio codecs. |
final_video_for_web.mp4 |
FAQ & Variations
Q: How can I control the quality of the output video during conversion?
A: Excellent question! By default, FFmpeg uses a reasonable quality setting. For precise control, however, you can use the -crf
(Constant Rate Factor) parameter. The typical range for crf
is 0-51, where a lower value means higher quality (and a larger file size). For the H.264 codec, 23
is considered a visually good default.
For example, to convert with higher quality:
ffmpeg -i input.mov -c:v libx264 -crf 18 output.mp4
-c:v libx264
explicitly tells FFmpeg to use thelibx264
video codec.-crf 18
sets a high-quality level.
Q: What if I just want to change the file container (e.g., from .mp4 to .mkv) without re-encoding to save time?
A: This is a pro-level move that FFmpeg handles effortlessly! You can use "stream copy" mode, which directly copies the video and audio data without re-encoding, making the process incredibly fast.
ffmpeg -i input.mp4 -c copy output.mkv
Here, -c copy
(short for -codec copy
) tells FFmpeg: "Copy all streams, don't touch their data, just place them into a new container."