Skip to content

Instantly share code, notes, and snippets.

@mmthomas
mmthomas / Convert-DoviProfile5To8.ps1
Last active March 20, 2026 09:30
PowerShell script to convert Dolby Vision Profile 5 to Profile 8.1 (fixes Plex color issues)
#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
@mmthomas
mmthomas / ServiceKernel.Tests.js
Created December 12, 2012 18:56
QUnit unit tests for ServiceKernel.js (https://gist.github.com/4089076)
// 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();
@mmthomas
mmthomas / ServiceKernel.js
Created November 16, 2012 17:12
A simple JavaScript dependency injection container
/*
*
* 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