ubuntu:video:encoding_h.265_hevc_with_ffmpeg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:video:encoding_h.265_hevc_with_ffmpeg [2019/12/10 22:30] – peter | ubuntu:video:encoding_h.265_hevc_with_ffmpeg [2023/06/11 21:45] (current) – [Audio and Dolby Digital Plus] peter | ||
---|---|---|---|
Line 13: | Line 13: | ||
</ | </ | ||
+ | crf 28 in H265 is the equivalent of crf 23 in H264. | ||
---- | ---- | ||
Line 24: | Line 25: | ||
The right compromise is to use libx265 for any videos that you want to keep around, but for videos that you’d prefer encoded quickly and will probably delete (say you want them for a single trip), hevc_videotoolbox is perfectly fine. Output videos are still small enough, and the significantly faster encoding speeds mean that FFmpeg finishes far more quickly. | The right compromise is to use libx265 for any videos that you want to keep around, but for videos that you’d prefer encoded quickly and will probably delete (say you want them for a single trip), hevc_videotoolbox is perfectly fine. Output videos are still small enough, and the significantly faster encoding speeds mean that FFmpeg finishes far more quickly. | ||
+ | |||
+ | If you’re going for quality/ | ||
---- | ---- | ||
Line 29: | Line 32: | ||
===== Audio and Dolby Digital Plus ===== | ===== Audio and Dolby Digital Plus ===== | ||
- | Hhave FFmpeg downmix to stereo AAC. | + | Have FFmpeg downmix to stereo AAC. |
<code bash> | <code bash> | ||
Line 42: | Line 45: | ||
There is generallyt very little file size difference between fast, medium, and slow, but some encoding speed difference, so I just default to **-preset fast** for everything. | There is generallyt very little file size difference between fast, medium, and slow, but some encoding speed difference, so I just default to **-preset fast** for everything. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check ===== | ||
+ | |||
+ | To check to see that the file has been encoded correctly, use the **ffprobe** command like this: | ||
+ | |||
+ | <code bash> | ||
+ | ffprobe video-h265.mp4 | ||
+ | </ | ||
+ | |||
+ | The output will show that the video stream (probably stream#0) is encoded using hvec, i.e. H.265. | ||
---- | ---- |
ubuntu/video/encoding_h.265_hevc_with_ffmpeg.1576017019.txt.gz · Last modified: 2020/07/15 09:30 (external edit)