Browser FFmpeg recipe
Encode H.264 Video Online with FFmpeg
Create an H.264 MP4 with AAC audio.
Command
Run this FFmpeg command
ffmpeg -i input.mov -c:v libx264 -profile:v high -crf 22 -preset fast -c:a aac -b:a 128k h264.mp4When to use it
- compatibility
- upload platforms
- browser playback
How it works
- Upload the source video.
- Adjust CRF or preset if needed.
- Run FFmpeg and download the H.264 MP4.
Option reference
| Option | What it does |
|---|---|
-c:v libx264 | Uses the H.264 encoder. |
-profile:v high | Uses the H.264 High profile. |
-c:a aac | Encodes audio as AAC. |
Practical notes
- H.264 MP4 remains one of the safest compatibility targets.
- Use a lower CRF value if you need higher quality.
FAQ
Is H.264 the same as MP4?
No. H.264 is a video codec, while MP4 is a container.
Can I use this for MOV files?
Yes. It is useful for converting MOV to a compatible MP4.