Skip to content

Instantly share code, notes, and snippets.

View JySzE's full-sized avatar
💭
In Goldenrod City

JySzE JySzE

💭
In Goldenrod City
View GitHub Profile
@JySzE
JySzE / Plex_WEB_Tagger.py
Created September 11, 2026 01:02
Plex_WEB_Tagger.py
import os
import subprocess
import re
import logging
from datetime import datetime
#Made for SoM Plex HTPC MPV, Plex does not send filenames to the client so you must tag
#the video stream with the proper tag so the conditional profile will activate.
TARGET_DIR = r"Z:\Media_Files\Plex\Anime" # will process all subfolders
@JySzE
JySzE / TBO.py
Created September 11, 2026 00:13
import os
import json
import subprocess
import re
MKVMERGE_PATH = r"C:\Program Files\MKVToolNix\mkvmerge.exe"
G_GREEN = "\033[92m"
B_MAGENTA = "\033[95m"
B_CYAN = "\033[96m"

Playback Device Comparison

Apple TV 4K 3rd Gen (Infuse) [GOOD OVERALL – NO DV P7 FEL]

Pros

  • Supports Dolby Vision Profiles 5 and 8
  • Supports HDR10
  • Provides acceptable SD scaling quality
  • Hardware decodes AVC High 10

Parsing Video Metadata with Batch

The metadata is saved in a text file named output.txt.


Prerequisites

  1. FFmpeg
    • FFmpeg includes ffprobe, which is required for this script.

Plex HTPC MPV Guide Nvidia

Prerequisites:

  • Windows 10 LTSC 2021 IoT Enterprise required (Windows 11, 23.976 media playback is bugged)
    • Windows 10 Pro/home will not work, W11 bug backported to these versions
  • HAGS disabled
  • MPO disabled
  • Resizable BAR (ReBAR) disabled
  • Nvidia Studio Drivers
  • GPU set to max performance in NV Control Panel
  • Download and install font: https://www.fontsquirrel.com/fonts/gandhi-sans
@JySzE
JySzE / build-mpv_silicon.sh
Last active March 27, 2025 14:47 — forked from dbrookman/build-mpv_silicon.sh
How to build mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@JySzE
JySzE / mpv.conf
Last active August 14, 2025 09:41
JySzE MacOS MPV Config [ No longer maintained ]
# MacOS Version 1.2
# 08/14/2025
# Requires MPV v0.38.0 or newer
###############################################################################################################################################
# Player GUI Options
###############################################################################################################################################

For Windows 10, change these keys in regedit:

  • Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command
  • Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit\command

From: %SystemRoot%\system32\NOTEPAD.EXE %1 To: "%ProgramFiles%\Sublime Text\sublime_text.exe" "%1" Or: "%ProgramFiles%{insert-path-to-fave-editor}" "%1"

@JySzE
JySzE / SoM_MPV_Builder.bat
Last active June 7, 2026 06:36
SoM MPV BUILDER
@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
title SoM MPV Builder