Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
x264 [2017/02/05 16:40] – beandog | x264 [2017/04/03 04:06] – beandog | ||
---|---|---|---|
Line 6: | Line 6: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
- | === h264 levels === | + | When encoding, if you want to cover all your bases, there are two H.264 settings to use, and two x264 encoding arguments to pass: |
+ | |||
+ | * H.264 profile: high | ||
+ | * H.264 level: 4.1 | ||
+ | * x264 preset: medium | ||
+ | * x264 CRF: 23 | ||
+ | |||
+ | Optionally, you can set the x264 tuning as well. Best choices are film, animation, and grain. | ||
+ | |||
+ | Don't change any other settings than those. If you do, you're going down the rabbit hole. | ||
+ | |||
+ | === H.264 levels === | ||
DVDs max out at high 3.1. You don't need 3.2 on DVDs because that is the first level that accepts 720p. | DVDs max out at high 3.1. You don't need 3.2 on DVDs because that is the first level that accepts 720p. | ||
Line 98: | Line 108: | ||
Using MP4 as the container will encode the audio to AAC by default. If using MKV, it depends on the encoder, so I'm specifying it directly. | Using MP4 as the container will encode the audio to AAC by default. If using MKV, it depends on the encoder, so I'm specifying it directly. | ||
- | libav (whose syntax I find easier to remember), see also their x264 guide: | + | libav also has an [[https:// |
< | < | ||
- | avconv -i source.mpg -vcodec libx264 -profile:v high -level:v 4.1 -preset:v medium -crf 23 -c:a libfdk_aac video.mp4 | + | avconv -i dvd.mpg -vcodec libx264 -profile:v high -level |
- | avconv -i source.mpg -vcodec libx264 -profile:v high -level:v 4.1 -preset:v medium -crf 23 -c:a libfdk_aac video.mkv | + | avconv -i dvd.mpg -vcodec libx264 -profile:v high -level |
</ | </ | ||
- | < | ||
- | ffmpeg -i source.mpg -c:v libx264 -profile:v high -level 4.1 -crf 23 -c:a libfdk_aac video.mp4 | ||
- | ffmpeg -i source.mpg -c:v libx264 -profile:v high -level 4.1 -crf 23 -c:a libfdk_aac video.mkv | ||
- | </ | ||