Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
x264 [2017/02/05 09:48] beandog |
x264 [2017/02/05 09:55] beandog |
||
---|---|---|---|
Line 20: | Line 20: | ||
Optionally, you can set the x264 tuning as well. Best choices are film, animation, and grain. | 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 === | === H.264 levels === | ||
Line 107: | Line 109: | ||
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://wiki.libav.org/Encoding/h264|their x264 guide]]): |
<code> | <code> | ||
- | avconv -i source.mpg -vcodec libx264 -profile:v high -level 41 -preset medium -crf 23 -c:a 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.mp4 |
- | avconv -i source.mpg -vcodec libx264 -profile:v high -level 41 -preset medium -crf 23 -c:a libfdk_aac video.mkv | + | avconv -i dvd.mpg -vcodec libx264 -profile:v high -level 41 -preset medium -crf 23 -tune film -acodec libfdk_aac video.mkv |
</code> | </code> | ||
- | <code> | ||
- | 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 | ||
- | </code> | ||