Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| encoding_specifications [2014/07/31 06:58] – [dlna-usb-5: working spec] beandog | encoding_specifications [2018/03/19 19:53] (current) – beandog | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Encoding Specifications ====== | ====== Encoding Specifications ====== | ||
| - | I like to have specifications for encoding content so that I have a snapshot of settings that I used at the time. Doing this, it allows me to verify that everything works across all devices, and expectations and bugs are noted. | + | Here's the specs I use to encode my DVDs: |
| - | ==== dlna-usb-1 (created 2014-07-19) ==== | + | * HandBrake 1.0.2 |
| + | * Matroska | ||
| + | * H.264 | ||
| + | * Level 4.1 (what Blu-rays use) | ||
| + | * High Profile | ||
| + | * x264 | ||
| + | * slow, slower, veryslow, or placebo preset (slow by default) | ||
| + | * animation, film, grayscale tuning | ||
| + | * smpte170m color matrix | ||
| + | * CRF 23 to 14 (as desired) | ||
| + | * Video | ||
| + | * detelecine or decomb as-needed | ||
| + | * 30 or 60 constant frames per second | ||
| + | * Audio | ||
| + | * AC3 re-encode or FDK AAC encode depending on desired quality | ||
| + | * VOBSUB or Closed Captioning as available | ||
| + | * Chapter markers | ||
| - | encoding specifications: dlna-usb-1 (2014-07-19) | + | Or, a sample encode: |
| - | Compatability: | + | < |
| - | * DLNA streamable (both Sony BDPs) | + | |
| - | * USB compatible (both Sony BDPs) | + | |
| - | * keyint 30 for good seeking in files | + | |
| - | * proper H.264 profile | + | |
| - | Software: | + | Latest revision: 2018-03-19 |
| - | + | ||
| - | * Gentoo Linux | + | |
| - | * HandBrake 0.9.9 | + | |
| - | * mkvtoolnix 6.7.0 | + | |
| - | * libebml 1.3.0 | + | |
| - | * libmatroska 1.4.1 | + | |
| - | * x264: 0.138.x | + | |
| - | + | ||
| - | Handbrake: | + | |
| - | + | ||
| - | * chapters | + | |
| - | * decomb | + | |
| - | * detelecine | + | |
| - | * two-pass | + | |
| - | * turbo | + | |
| - | * audio encoder: fdk_aac | + | |
| - | * audio bitrate: 96k | + | |
| - | * video bitrate: 1024k | + | |
| - | * fallback: copy | + | |
| - | + | ||
| - | x264: | + | |
| - | + | ||
| - | * preset: medium | + | |
| - | * tune: animation or film | + | |
| - | * keyint: 30 | + | |
| - | + | ||
| - | H.264: | + | |
| - | + | ||
| - | * profile: high | + | |
| - | * level: 3.1 | + | |
| - | + | ||
| - | mkvtoolnix: | + | |
| - | + | ||
| - | * See [[https:// | + | |
| - | * no_cue_duration, | + | |
| - | + | ||
| - | MPlayer 1.1-4.8 on Ubuntu 14.04 has a bug where the subtitle language code does not display in the OSD. The file is properly tagged, and there are not any issues with the Matroska container metadata. | + | |
| - | + | ||
| - | ==== dlna-usb-2 (created 2014-07-22) ==== | + | |
| - | + | ||
| - | Same as above, but changed libav version to 9.14. Previous version was unspecified. | + | |
| - | + | ||
| - | ==== dlna-usb-3 (created 2014-07-24) ==== | + | |
| - | + | ||
| - | The Gentoo ebuild for HandBrake 0.9.9 has a bug where it does not detect closed caption video on DVD streams. | + | |
| - | + | ||
| - | Decided to move to building HandBrake from upstream' | + | |
| - | + | ||
| - | < | + | |
| - | svn co svn:// | + | |
| - | </ | + | |
| - | + | ||
| - | Here's my configure script: | + | |
| - | + | ||
| - | < | + | |
| - | ./configure \ | + | |
| - | --launch-jobs=0 \ | + | |
| - | --force \ | + | |
| - | --enable-x265 \ | + | |
| - | --enable-fdk-aac \ | + | |
| - | --enable-libav-aac \ | + | |
| - | --enable-avformat \ | + | |
| - | --disable-gtk \ | + | |
| - | --disable-gst | + | |
| - | </ | + | |
| - | + | ||
| - | HandBrake now has the option to use libavformat for the container, in addition to internal libmkv and mp4v2: av_mkv, and av_mp4. | + | |
| - | + | ||
| - | The command-line options also were simplified replacing --h264-* with --encoder-* | + | |
| - | + | ||
| - | All said, here's an example of the changes to the command line: | + | |
| - | + | ||
| - | < | + | |
| - | --encoder-preset medium --encoder-tune animation --encoder-profile high --encoder-level 3.1 --format av_mkv | + | |
| - | </ | + | |
| - | + | ||
| - | Noticed on this build that HandBrake was setting the vbv-maxsize and vbv-maxrate higher than the H.264 level permitted (3.1 caps at 14,000; was set to 17, | + | |
| - | + | ||
| - | < | + | |
| - | --encopts ' | + | |
| - | </ | + | |
| - | + | ||
| - | Comparing the x264 settings between a newer and older file, the only other change made was '' | + | |
| - | + | ||
| - | ==== dlna-usb-4 (created 2014-07-26) ==== | + | |
| - | + | ||
| - | Same settings as above, but reverted HandBrake version back to upstream' | + | |
| - | + | ||
| - | Changed the '' | + | |
| - | + | ||
| - | ==== dlna-usb-5: working spec ==== | + | |
| - | + | ||
| - | Drops the specification requirement for a specific bitrate, but now requires two-pass encoding. | + | |