Changes between Version 19 and Version 20 of Encode/H.265
- Timestamp:
- Aug 17, 2020, 7:52:15 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Encode/H.265
v19 v20 36 36 Use this mode if you want to retain good visual quality and don't care about the exact bitrate or filesize of the encoded file. The mode works exactly the same as in x264, so please read the [[H.264#crf|H.264]] guide for more info. 37 37 38 As with x264, you need to make twochoices:38 As with x264, you need to make several choices: 39 39 40 * Choose a CRF. The default is 28, and it should visually correspond to libx264 video at CRF 23, but result in about half the file size. Other than that, CRF works just like in x264.40 * Choose a CRF. CRF affects the quality. The default is 28, and it should visually correspond to libx264 video at CRF 23, but result in about half the file size. CRF works just like in x264, so choose the highest value that provides an acceptable quality. 41 41 42 * Choose a preset. The default is `medium`. The preset determines how fast the encoding process will be at the expense of detail. Put differently, if you choose `ultrafast`, the encoding process is going to run fast, and the file size will be smaller when compared to `medium`. The visual quality will not be as good. Slower presets use more memory. Valid presets are `ultrafast`, `superfast`, `veryfast`, `faster`, `fast`, `medium`, `slow`, `slower`, `veryslow` and `placebo`.42 * Choose a preset. The default is `medium`. The preset determines compression efficiency and therefore affects encoding speed. Valid presets are `ultrafast`, `superfast`, `veryfast`, `faster`, `fast`, `medium`, `slow`, `slower`, `veryslow`, and `placebo`. Use the slowest preset you have patience for. Ignore `placebo` as it provides insignificant returns for a significant increase in encoding time. 43 43 44 * Choose a tune . By default, this is disabled, and it is generally not required to set a tune option. x265 supports the following `-tune` options: `psnr`, `ssim`, `grain`, `zerolatency`, `fastdecode`. They are explained in the [[H.264#crf|H.264 guide]].44 * Choose a tune (optional). By default, this is disabled, and it is generally not required to set a tune option. x265 supports the following `-tune` options: `psnr`, `ssim`, `grain`, `zerolatency`, `fastdecode`. They are explained in the [[H.264#crf|H.264 guide]]. 45 45 46 46 For example: 47 47 48 48 {{{ 49 ffmpeg -i input -c:v libx265 -crf 2 8-c:a aac -b:a 128k output.mp449 ffmpeg -i input -c:v libx265 -crf 26 -preset fast -c:a aac -b:a 128k output.mp4 50 50 }}} 51 51 … … 93 93 Use the `-x265-params lossless=1` option. Adding `-crf 0` is not required. 94 94 95 You can verify lossless encoding by looking for `x265 [info]: lossless compression ratio` in the console output from your encoding command, or refer to the [https://ffmpeg.org/ffmpeg-formats.html#hash hash demuxer] .95 You can verify lossless encoding by looking for `x265 [info]: lossless compression ratio` in the console output from your encoding command, or refer to the [https://ffmpeg.org/ffmpeg-formats.html#hash hash demuxer] for verification. 96 96 97 97 = Intra encoding = … … 101 101 = Setting Profiles = 102 102 103 Profiles can be set via the `-profile:v` option, similar to libx264. 103 Profiles can be set via the `-profile:v` option, similar to libx264. See a [https://x265.readthedocs.io/en/default/cli.html#profile-level-tier list of available x265 profiles]. 104 104 105 105 = Further Info =
