Convert MP4 to HLS

Turn MP4 videos into HLS. A zip with the playlist index.m3u8 and the video cut into MPEG-TS segments of about six seconds, re-encoded to H.264 with AAC sound and a keyframe every two seconds so each segment plays on its own.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

An MP4 cut into streaming segments.A zip with an index.m3u8 playlist and the video in short pieces, ready for a web server.

  1. What you get

    One zip file. It holds the playlist index.m3u8 and the video cut into MPEG-TS segments of about six seconds.

    The video is re-encoded to H.264 with AAC sound. A keyframe falls every two seconds, so each segment plays on its own.

    Only one quality level is written. Put the contents on any web server and point a player at the playlist.

  2. Shaping the video

    Set Max width (px) or Max height (px) to shrink a large video while keeping its shape. A video that is already smaller stays as it is, so nothing is enlarged.

    Set Start at (s) and Stop at (s) to keep only part of the video. Stop at counts from the start of the original, so it must be later than Start at. Set Rotate to turn the result by 90, 180 or 270 degrees clockwise.

    Set Speed to play faster or slower, from 0.25 to 4. Voices keep their pitch. Set Frame rate (fps) to change the frames per second.

  3. Quality and sound

    Constant rate factor is the quality target for the video. Lower values keep more detail and make a bigger file. A few steps up or down changes the size noticeably.

    Turn on Mute to drop the sound track and keep only the picture. Turn on Stabilize to steady a video shot by hand. The motion is measured first, then smoothed, and the picture is zoomed in a little so the moving edges stay out of view. It takes about twice as long.

MP4 and HLS.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
  9. 09 · video.mute

    Mute

    Drops the sound track and keeps only the picture.

  10. 10 · video.stabilize

    Stabilize

    Steadies a video shot by hand. The motion is measured first, then smoothed, and the picture is zoomed in a little so the moving edges stay out of view. It takes about twice as long.

The formats

From · MP4

MP4 Video

The most compatible video container, usually H.264 video with AAC audio.

Extensions
.mp4 .m4v .f4v
MIME type
video/mp4
Kind
Video
To · HLS

HLS Package

A video cut into short segments with an .m3u8 playlist for HTTP Live Streaming, zipped to put on any web server.

Extensions
.hls.zip
MIME type
application/x-hls+zip
Kind
Video

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

terminal
$ cv convert clip.mp4 clip.hls.zip
$ cv convert clip.mp4 clip.hls.zip

Questions.What people ask about MP4 to HLS.

01OF 04

A zip with the playlist index.m3u8 and the video cut into MPEG-TS segments of about six seconds.

Yes. It is re-encoded to H.264 with AAC sound, with a keyframe every two seconds so each segment plays on its own.

No. One quality level is written. Use Max width (px) or Max height (px) to set the size of that one level.

Yes. Set Start at (s) and Stop at (s) to keep only that part. For a plain cut without streaming, see trim MP4.

More conversions.Other ways in and out of MP4 and HLS.