Audio & Video

Compress an AVI Clip for Playback and Sharing

·

AVI carries audio and video streams in RIFF. A camera file with Motion JPEG frames and PCM sound can be a useful source for comparing H.264 MP4 and VP9 WebM exports.

AVI Compressor

Compress the four-second AVI practice clip

Open the AVI practice file. It contains a 640 × 360 Motion JPEG picture at 24 frames per second and uncompressed PCM audio. Choose H.264 MP4, a 240p output height and a 500 kbps video target. Keep the audio enabled and compress the clip.

The output should play for about four seconds, with H.264 video, 240-pixel picture height and AAC audio. Compare the displayed byte count against the 299,252-byte source and listen near the end before sharing.

Open the AVI CompressorMicrosoft AVI RIFF file referenceFFmpeg codec documentation

Choose a container for the receiving player

Choose MP4 when the destination expects H.264 and AAC. Choose WebM if the destination supports VP9 and Opus. Test the actual downloaded copy in the receiving player.

The target bitrate influences encoding. Overhead, audio and the source picture also affect saved size. A maximum file-size requirement needs a measured check after encoding.

Microsoft AVI RIFF file referenceFFmpeg codec documentation

Inspect the streams in the downloaded clip

For an independent check, open the saved file in a media inspector. Compare the stream codec, video frame dimensions, presence of audio and the container duration with the selected settings.

The included command displays these fields for a local file. Replace the sample filename with your own saved copy.

Inspect the downloaded media with ffprobe
ffprobe -v error -show_entries stream=codec_name,codec_type,width,height:format=duration,size -of json "avi-output.mp4"

FFmpeg ffprobe stream reporting documentation

Common questions

Does a file extension identify the video codec?

AVI identifies a container. The video might be Motion JPEG, DV or another supported codec. Check source evidence before troubleshooting a decode error.

Why can a lower bitrate make fine details harder to read?

The encoder has fewer bits per second for the picture. Compare motion and text at the target display size.

Can I remove the audio track?

Turn audio off before compressing, then check the saved copy. Keep the source when you need audio for another export.

Sources

Put it into practice.

Related guides