Simple Format Specification
- - Basics
- - Video specs
- - Audio specs
- - Format options
- - H264 and HEVC options
- - MP4 options
- - Prores options
- - Target a visual Quality instead of bitrate (Recommanded)
A Simple format describes the format specs you want to use in outputs section.
The format name follows this simple naming convention:
Only the container is required, which is really nice because the correct format specs are set for you like bitrates, codecs, sample rate, etc.
So let's say you want to use a fairly standard format like MP4 (H264 / AAC), the format name would be
mp4. For a WebM format:
webm and so on.
Here are some simple format examples to show you how it works:
If you want an audio only output format, use one of the audio container
wav. In that case, the
$video_specs must be removed from the format name.
For each container, video and audio specs are set automatically for you following the video format standards. Most of the time, you just need to customize the output resolution and you get a format that just works.
|Container||Video specs||Audio specs|
Video specs must be separated by the underscore character
_ and are all optional.
To disable video, set the video specs to
x. For instance:
Default resolution if not specified:
0x0 (=Original resolution)
There are two ways to specify the resolution: either with the classic
widthxheight or with the *p notation like
1080p. Note that for thumbnails, GIF, only the notation
widthxheight is working.
If you use the latter, the video bitrate is automatically set for you:
|Definition||Resolution||Aspect||Bitrate in Kbit/s|
If you set the width or height to 0, we will automatically calculate the value for you according to the aspect ratio of the source video.
0x0 means that the original resolution will be kept.
Note that the video bitrate can still be overriden when using *p notation:
• Video codec
Here is the list of video codecs we support:
Note that we always set the right video codec associated to the right container for you. So unless you want HEVC or VP9, you can leave the video codec setting to us.
• Video bitrate
Default video bitrate if not specified:
The video bitrate must be given in kbps and always ends with
k. Value must be <
Default FPS if not specified:
0fps (=original FPS)
The FPS value must ends with
fps, here are the possible FPS you can provide:
0fps means keep original FPS.
Audio specs must be separated by the underscore character
_ and are all optional.
To disable audio, set the audio specs to
• Audio codec
Here is the list of audio codecs we support:
Note that we always set the right audio codec associated to the right container for you. However you can customize it if you need to.
• Audio bitrate
Default audio bitrate if not specified:
The audio bitrate must be given in kbps and always ends with
k. Value must be <=
• Sample rate
Default sample rate if not specified:
The sample rate value must ends with
hz, here are the possible sample rate you can provide:
• Audio Channel
Default channel if not specified:
Possible channel values are
Set pixel format. Can be:
Enable 2pass encoding. For instance:
H264 and HEVC options
Generate a fragmented MP4 file if this option is used.
Quality options for H264, HEVC, VP8 and VP9 codecs
Target a visual quality instead of a bitrate. From
1 (worst) to
5 (visually lossless) quality.
3 is pretty good quality with a good ratio quality / size.
Note that when using quality option, the video bitrate is ignored. Only works with H264, HEVC, VP8 and VP9.
If you want to constrain the maximum bitrate used, use the options
maxrate=bitratek. For instance: