HowTo: Linux Convert .OGV Format To .AVI Video Format

ww‮ruttual.w‬i.com
HowTo: Linux Convert .OGV Format To .AVI Video Format

To convert an .OGV video file to an .AVI video file on a Linux system, you can use the ffmpeg command-line utility.

FFmpeg is a powerful tool for converting and manipulating video and audio files, and it is available on most Linux distributions.

To convert an .OGV file to an .AVI file using FFmpeg, you can use the following command:

ffmpeg -i input.ogv -c:v mpeg4 -c:a libmp3lame output.avi

This command will convert the input file input.ogv to an .AVI file named output.avi, using the MPEG-4 video codec and the MP3 audio codec.

You can also use the -vf option to specify video filters, and the -af option to specify audio filters. For example, to resize the video to a specific width and height, you can use the scale filter like this:

ffmpeg -i input.ogv -vf scale=640:480 -c:v mpeg4 -c:a libmp3lame output.avi

This will resize the video to a width of 640 pixels and a height of 480 pixels.

You can also use the -b:v option to specify the video bitrate, and the -b:a option to specify the audio bitrate. For example, to set the video bitrate to 500 kbps and the audio bitrate to 128 kbps, you can use the following command:

ffmpeg -i input.ogv -b:v 500k -b:a 128k -c:v mpeg4 -c:a libmp3lame output.avi

For more information about the options and filters available in FFmpeg, you can consult the FFmpeg documentation or use the ffmpeg -h command to see a list of all options.

Created Time:2017-10-29 22:08:43  Author:lautturi