Help with converting to AVI file using FFMpeg

Useful and helpful Windows specific command line samples and examples.
Post Reply
maxvkwong
Posts: 1
Joined: Wed May 22, 2019 12:42 pm

Help with converting to AVI file using FFMpeg

Post by maxvkwong »

Hey guys, I'm trying to convert an uncompressed (raw) AVI file to uncompressed (raw) AVI. So, essentially, just converting it back to the same format to test if it processes frames correctly. I don't want to just copy the already working video steam.

The command I use is:

Code: Select all

./ffmpeg.exe -i <input-filename> -f avi -c:v rawvideo -pix_fmt bgr24 output.avi
Am I using the correct command here? The output file is not viewable in the latest VLC player (v3.0.6). The codec information has the incorrect height too:
Image

The ffprobe shows the same input and output format:
Image

The sample AVI I got from this website (HD Uncompressed AVI link link on the site, in case anyone cares).

If anyone can help me, I would greatly appreciate it! Thanks.

Reino
Posts: 94
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Help with converting to AVI file using FFMpeg

Post by Reino »

maxvkwong wrote:
Wed May 22, 2019 12:47 pm

Code: Select all

./ffmpeg.exe -i <input-filename> -f avi -c:v rawvideo -pix_fmt bgr24 output.avi
-f avi and -pix_fmt bgr24 aren't needed. If you only want to compare the videotrack, then you can add -an to exclude the audiotrack (from being converted to mp3):

Code: Select all

ffmpeg -i "AVI(Uncompressed)-SD.avi" -c:v rawvideo -an output.avi
Here for both videos VLC reports:

Code: Select all

Stream 0
    Type: Video
    Codec: 24 bits RGB (RV24)
    Resolution: 720x576
    Display resolution: 720x576
    Frame rate: 25
Both videotracks are identical.

Post Reply