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 / build-mpv_silicon.sh
Last active May 24, 2024 03:43 — 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

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 3\sublime_text.exe" "%1" Or: "%ProgramFiles%{insert-path-to-fave-editor}" "%1"

@JySzE
JySzE / SoM_MPV_Builder.bat
Last active October 11, 2024 18:55
SoM MPV BUILDER
@echo off
REM Pointing to System32 for broken path mitigation.
set PATH=%SystemRoot%\System32;%PATH%
cd /d "%~dp0"
echo ==========================================================
echo Version 1.7c
@JySzE
JySzE / mpv_conf_updater.bat
Last active April 15, 2024 06:12
JySzE MPV Conf updater
:: Version 1.2
:: 04/14/2024
@echo off
SETLOCAL EnableDelayedExpansion
:: Define configuration files and their corresponding GIST URLs
set "CONFIG_FILES[0]=mpv.conf"
set "GIST_URLS[0]=https://gist.githubusercontent.com/JySzE/db4149cad726b3b6955dca8d47a19721/raw"
@JySzE
JySzE / input.conf
Last active May 2, 2024 16:38
JySzE MPV input.conf for mpv-menu-plugin by tsl0922
# Version 1.3
# 05/02/2024
Ctrl+o script-message-to dialog open #menu: Open > Files...
Ctrl+O script-message-to dialog open-folder #menu: Open > Folder...
_ script-message-to dialog open append #menu: Open > Add To Playlist...
_ ignore #menu: Open > -
_ script-message-to dialog open bd-iso #menu: Open > Bluray ISO...
_ script-message-to dialog open dvd-iso #menu: Open > DVD ISO...
_ ignore #menu: -
@JySzE
JySzE / mpv.conf
Last active August 25, 2024 08:50
JySzE MPV Config
# Version 2.4e
# 05/24/2024
# Adjust as needed.
input-ar-delay = 500
input-ar-rate = 20
keep-open = yes
keep-open-pause = no
osd-duration = 1500