How to convert mov to mp4 with ffmpeg

When you record on Quicktime, that saves as .mov which is a SUPER huge file size.

$ ffmpeg -i input_name.mov -vcodec h264 -c:a aac output_name.mp4

Notes:

  • Video codec: -vcodec h264 option is used to set the H.264 video codec. However, -c:v libx264 option achieves the same result. Both options use the H.264 codec, but they use different names to refer to it.
  • Audio codec: (-c:a aac). AAC is a more modern and widely supported audio codec compared to MP2.