Changes between Version 38 and Version 39 of Encode/H.264
- Timestamp:
- Feb 15, 2013, 8:49:16 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Encode/H.264
v38 v39 18 18 19 19 === 2. Choose a preset === 20 A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). General usage is to use the slowest preset that you have patience for. Current presets in descending order of speed are: `ultrafast`, `superfast`, `veryfast`, `faster`, `fast`, `medium`, `slow`, `slower`, `veryslow`, `placebo`. Ignore `placebo` as it is a joke and a waste of time (see [#faq FAQ]). 20 A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). General usage is to use the slowest preset that you have patience for. Current presets in descending order of speed are: `ultrafast`, `superfast`, `veryfast`, `faster`, `fast`, `medium`, `slow`, `slower`, `veryslow`, `placebo`. Ignore `placebo` as it is a joke and a waste of time (see [#faq FAQ]). You can see a list of current presets with `-preset help`, and what settings they apply with `x264 --fullhelp`. 21 21 22 You can optionally use `-tune` to change settings based upon the specifics of your input. Current tunings include: `film`, `animation`, `grain`, `stillimage`, `psnr`, `ssim`, `fastdecode`, `zerolatency`. For example, if your input is animation then use the `animation` tuning, or if you want to preserve grain then use the `grain` tuning. If you are unsure of what to use or your input does not match any of tunings then omit the `-tune` option. You can see a list of current `-tune` valuesand what settings they apply with `x264 --fullhelp`.22 You can optionally use `-tune` to change settings based upon the specifics of your input. Current tunings include: `film`, `animation`, `grain`, `stillimage`, `psnr`, `ssim`, `fastdecode`, `zerolatency`. For example, if your input is animation then use the `animation` tuning, or if you want to preserve grain then use the `grain` tuning. If you are unsure of what to use or your input does not match any of tunings then omit the `-tune` option. You can see a list of current tunings with `-tune help`, and what settings they apply with `x264 --fullhelp`. 23 23 24 24 Another optional setting is `-profile:v` which will limit the output to a specific H.264 profile. This can generally be omitted unless the target device only supports a certain profile. Current profiles include: `baseline`, `main`, `high`, `high10`, `high422`, `high444`. Note that usage of `-profile:v` is incompatible with lossless encoding. 25 26 You can list all possible internal presets/tunes for your ffmpeg like27 28 `$ ffmpeg -i some_file -vcodec libx264 -preset help -tune help dummy.avi`29 30 There are some more external, file based presets that you can also use, as well, see https://github.com/FFmpeg/FFmpeg/tree/master/presets for a list.31 32 You may also find other presets out there in the wild, for instance [http://rodrigopolo.com/ffmpeg/cheats.html#X264_Presets here].33 25 34 26 === 3. Use your settings ===
