Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
x264 [2017/04/02 22:06]
beandog
x264 [2021/10/17 19:22]
beandog
Line 24: Line 24:
 === H.264 levels === === 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.
  
-Blu-ray at high 4.1.  You can go higher if you want, it's your preference. :)+Blu-ray at high 4.1. You can go higher if you want, it's your preference. :)
  
 The levels (baseline, main, high) are used to determine which hardware you want to target, and influences what quality you can expect and what encoding features will be used. Blu-ray uses high profile. The levels (baseline, main, high) are used to determine which hardware you want to target, and influences what quality you can expect and what encoding features will be used. Blu-ray uses high profile.
Line 46: Line 46:
 === mtune === === mtune ===
  
-Keep it simple (for DVDs): use ''​film''​ or ''​animation''​. ​ For **old** movies or sources that have artifacts already, use ''​grain''​ or you risk making it even worse.+Keep it simple (for DVDs): use ''​film''​ or ''​animation''​. For **old** movies or sources that have artifacts already, use ''​grain''​ or you risk making it even worse.
  
 === Choosing an x264 preset === === Choosing an x264 preset ===
Line 79: Line 79:
   * [[http://​x264dev.multimedia.cx/​archives/​102|Encoding animation]] - good read for overview of challenges.   * [[http://​x264dev.multimedia.cx/​archives/​102|Encoding animation]] - good read for overview of challenges.
  
-"All of this combines to make animation at first glance deceptively easy–but in reality quite difficult–to encode." ​ So true!+"All of this combines to make animation at first glance deceptively easy–but in reality quite difficult–to encode."​ So true!
  
 His tests on x264 His tests on x264
Line 101: Line 101:
   * uneven multi-hexagon (umh): slow, slower, veryslow   * uneven multi-hexagon (umh): slow, slower, veryslow
   * exhaustive (tesa): placebo   * exhaustive (tesa): placebo
- 
-=== Steve'​s Defaults === 
- 
-Here are examples of using H.264 high profile at level 4.1 (Blu-ray settings), with x264 CRF 23 on medium preset. 
- 
-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 also has an [[https://​wiki.libav.org/​Encoding/​h264|their x264 guide]]): 
- 
-<​code>​ 
-avconv -i dvd.mpg -vcodec libx264 -profile:v high -level 41 -preset medium -crf 23 -tune film -acodec libfdk_aac video.mp4 
-avconv -i dvd.mpg -vcodec libx264 -profile:v high -level 41 -preset medium -crf 23 -tune film -acodec libfdk_aac video.mkv 
-</​code>​ 
- 
- 
- 

Navigation