This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Version 7.4 | |
| <# | |
| .SYNOPSIS | |
| Converts Dolby Vision Profile 5 to Profile 8.1 for correct Plex playback. | |
| .DESCRIPTION | |
| DV Profile 5 uses the IPTPQc2 color space, which the Plex Windows app can't | |
| decode correctly (shows green/magenta/purple color shifts). This script | |
| re-encodes the video from IPTPQc2 to BT.2020+PQ (HDR10) using ffmpeg with | |
| libplacebo (Vulkan GPU acceleration) and NVIDIA NVENC, then injects a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // unit tests for ServiceKernel.js (https://gist.github.com/4089076) | |
| // requires QUnit test framework | |
| module("ServiceKernelTests"); | |
| if (typeof throws === "undefined") throws = raises; | |
| test("require unregistered service throws", function () { | |
| var kernel = new ServiceKernel(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * | |
| * A simple JavaScript dependency injection container | |
| * By Monroe Thomas http://blog.coolmuse.com | |
| * | |
| * http://blog.coolmuse.com/2012/11/11/a-simple-javascript-dependency-injection-container/ | |
| * | |
| * MIT Licensed. | |
| * | |
| * Unit tests can be found at https://gist.github.com/4270523 |