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

Parsing Video Metadata with Batch

Note: This script can be easily adapted or reduced to extract different metadata entries by modifying the findstr lines to match the desired fields.

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


Prerequisites

  1. FFmpeg: Ensure you have FFmpeg installed on your system.

PLEX HTPC MPV Conf Guide for HDR TV Users

Prerequisites:

  • Nvidia Studio Drivers if using a NV Card, Last tested known not stuttering Studio Driver: 581.29.
  • GPU set to max performance in NV Control Panel.
  • Download and install font: https://www.fontsquirrel.com/fonts/gandhi-sans
  • Custom Build:
    Download a modified MPV build from this mpv-winbuild.
    • Use mpv-dev-x86_64-v3 for modern CPUs or mpv-dev-x86_64 for older CPUs.
    • Replace libmpv-2.dll in:
@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 October 7, 2025 09:46
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
@JySzE
JySzE / mpv.conf
Last active October 10, 2025 10:08
JySzE MPV Config
Moved to https://github.com/JySzE/SoM-MPV-Config