Dolby Vision Support
Pre-release
Pre-release
patrickenfuego
released this
13 Oct 23:44
·
229 commits
to main
since this release
This pre-release adds Dolby Vision encoding support for Windows, macOS, and Linux. I have tested it enough to know that it works, but not enough to say that it is 100% production-ready. To check out this release, clone the dvtest
branch of the repository.
What's New
The script is now capable of encoding Dolby Vision! There are a few caveats, however:
- x265 is required for encoding, because ffmpeg does not support RPU files (yet). Due to the many varieties of x265 available (as well as the binary size), I chose not to include it with the package. Download your favorite branch of x265 to use, and make sure it is named x265 (not x265-b, for example). Also be sure that it is available via PATH
- Due to some severe memory leaks when piping ffmpeg to x265 in PowerShell,
cmd.exe
/bash
are used to actually run the commands. This doesn't really affect speed or quality, but it does affect what type of logging and reporting options are available - Because x265 encodes as an elementary hevc stream, mkvmerge or similar is required to mux the video stream back into the audio/subtitle container. If you have mkvmerge available on your system, the script will automatically use it; otherwise, it must be done manually. do not use ffmpeg to remux the streams! The DV metadata will be discarded
- Due to timestamping issues from the hevc stream, test encode audio/subs are usually out of sync. I'm looking for ways to fix this
- The script only supports profile 8.1 for now, as it includes an HDR10 base layer. I hope to add new profiles in the future