Convert AVI to H264

Turn AVI videos into H264. A raw H.264 stream without sound or timestamps.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop AVI files on the dialor turn it to pick what to do

A raw H.264 stream from your AVI.The video comes out as one file with no container, no sound and no timestamps.

  1. What you get

    A single H264 file: an elementary stream of the kind encoders and cameras write. It holds the video and nothing else.

    If the video in the AVI is already H.264, it is copied as it is. Other video is encoded to 8-bit H.264.

  2. What it leaves behind

    Sound is dropped, because a raw stream has no place for it. Timestamps are dropped too, so the file does not carry timing information.

    A copy is only replaced by a re-encode when an option or a rotation needs one. In that case the video is encoded again to H.264.

  3. Options

    Set Max width (px) or Max height (px) to shrink video that is larger than the value. The shape is kept, and smaller video is never enlarged. Rotate turns the result clockwise by 90, 180 or 270 degrees.

    Set Start at (s) to cut seconds from the beginning, and Stop at (s) to end at a given second of the original. Stop at counts from the start of the original, so it must be later than Start at.

    Speed plays the video faster or slower, where 2 is twice as fast and 0.5 is half as fast. Frame rate (fps) sets frames per second. Constant rate factor sets the quality target: lower keeps more detail and makes a bigger file.

  4. When it stops

    If the AVI cannot be parsed, the conversion stops with input_corrupted.

    To go the other way, use H264 to AVI.

AVI and H264.What each format is, and the options this conversion takes.

  1. 01 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    16 to 20000
  2. 02 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    16 to 20000
  3. 03 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  4. 04 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  5. 05 · trim_end

    Stop at (s)

    Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    0 to 86400
  6. 06 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400
  7. 07 · video.crf

    Constant rate factor

    The quality target for the video. Lower keeps more detail and makes a bigger file. A few steps up or down changes the size noticeably.

    0 to 51
  8. 08 · video.fps

    Frame rate (fps)

    Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    1 to 120

The formats

From · AVI

AVI Video

Microsoft's original video container. Old, large and still around.

Extensions
.avi .divx .xvid
MIME type
video/x-msvideo
Kind
Video
To · H264

Raw H.264 Stream

An H.264 elementary stream with no container, as encoders and cameras write it.

Extensions
.h264 .264
MIME type
video/h264
Kind
Video

In your code.The same AVI to H264 conversion through the API, for your app or your agent.

terminal
$ cv convert clip.avi clip.h264
$ cv convert clip.avi clip.h264

Questions.What people ask about AVI to H264.

01OF 04

No. The stream has no sound and no timestamps. Only the video is kept.

Only when it needs to be. H.264 video is copied as it is unless an option or a rotation needs a re-encode. Other video is encoded to 8-bit H.264.

Yes. Set Max width (px) or Max height (px) to shrink it. Raising Constant rate factor lowers the quality target and makes a smaller file.

Yes. Set Start at (s) and Stop at (s) to choose the part you keep.

More conversions.Other ways in and out of AVI and H264.