Score:2

How to convert AVI to MP4 using FFMPEG?

in flag

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.

Does this defect have a name? Also I can't upload the video on Twitter, why is that?

Nmath avatar
ng flag
Does this answer your question? [use ffmpeg to transform mp4 to same high-quality avi file?](https://askubuntu.com/questions/83161/use-ffmpeg-to-transform-mp4-to-same-high-quality-avi-file). Opposite direction but the process is the same. `ffmpeg` has a lot of different options for various tasks. When in doubt, consult the [documentation](https://ffmpeg.org/documentation.html)
andrew.46 avatar
in flag
Input and output files look ok to me, perhaps try a more embellished command line: `ffmpeg -i Counter-AVI.avi -c:v libx264 -preset slow -crf 16 test.mp4`
Score:1
mx flag

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)".

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.