Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from .mov to .mp4 (or h264) using avconv

Tags:

mp4

avconv

mov

Looking at the avconv website there seem to be a vast array of options to convert video.

However, I'm getting lost in all the technical detail.

Is there a simple way to convert a .mov to a .mp4 (or h264)?

I'm happy if it's slightly lossy.

If it helps I'm on Ubuntu 12.04.2 LTS.

like image 803
Snowcrash Avatar asked Sep 24 '13 09:09

Snowcrash


People also ask

Can you convert MOV to MP4 without losing quality?

Whereas the MP4 format is the international standard that works with nearly every device - Apple, Windows, Android, and many more. No, converting MOV to MP4 does not usually lead to any loss in quality. At worst, any loss in quality would be minimal and unnoticeable.


1 Answers

In a very basic form, it would look a bit like this:

avconv -i inputfile.mov -c:v libx264 outputfile.mp4

This will only work if you compiled avconv with libx264 support - you can see here on how to do that.


If you're not that concerned about codecs and just need an ".mp4" file, you can also run this:

avconv -i inputfile.mov -c copy outputfile.mp4

This will copy all codec information from the .mov container and place it into the .mp4 container file.


Just as a note, avconv is a fork of ffmpeg, many of the switches for ffmpeg will work for avconv (if that helps your search for answers)

like image 84
Jamie Taylor Avatar answered Sep 28 '22 07:09

Jamie Taylor