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.mp4

When to use it

  • compatibility
  • upload platforms
  • browser playback

How it works

  1. Upload the source video.
  2. Adjust CRF or preset if needed.
  3. Run FFmpeg and download the H.264 MP4.

Option reference

OptionWhat it does
-c:v libx264Uses the H.264 encoder.
-profile:v highUses the H.264 High profile.
-c:a aacEncodes 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.