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?
ffmpeg
has a lot of different options for various tasks. When in doubt, consult the documentationffmpeg -i Counter-AVI.avi -c:v libx264 -preset slow -crf 16 test.mp4