How to convert AVI to MP4 using FFMPEG?
I am using this script to convert an avi file into a mp4 file
ffmpeg -i video.avi video.mp4
The resulting file I got is encoded using H264 but the video is flawed.
What am I doing wrong? I would like the resulting video to be encoded a good codec that is widely spread.
- This is the source AVI file (5 MB)
- This is the resulting MP4 file (20 KB)
Does this defect have a name? Also I can't upload the video on Twitter, why is that?
MPEG-4 is still currently the most universally compatible and widespread codec, Instead of using H.264 codec
Execute:
ffmpeg -i video.avi -c:v mpeg4 video.mp4
This will specify "MPEG-4 Video (Simple Profile)" codec instead of "H.264 (High 4:4:4 Profile)".