How to use ffmpeg to convert video to avi without compression?
I am using this command to convert a .mp4 video file to avi:
ffmpeg -i video.mp4 video.avi
But the .avi file I got is compressed with FMP4 and I can't open it in VirtualDub.
How can I create an .avi file that has no compression at all? Or with a very easy loseles codec that Virtualdub can understand? Or with DivX one-pass?
Solution 1:
Since the input stream is encoded ffmpeg
has to convert it into a "lossless" codec. That is a codec that only contains I-Frames. Avi is a container of streams and thus does not know anything about "converting".
ffmpeg -i video.mp4 -c:a copy -c:v ayuv output.avi
should do the trick, where "ayuv" is one of the possible codecs as example .
More infos here