Skip to content

Instantly share code, notes, and snippets.

View anthonybaldwin's full-sized avatar
:fishsticks:

Anthony Baldwin anthonybaldwin

:fishsticks:
View GitHub Profile
@anthonybaldwin
anthonybaldwin / autovsr.lua
Last active September 5, 2026 21:14 — forked from natyusha/autovsr.lua
AutoVSR + RTX HDR for MPV
local mp = require 'mp'
local options = require 'mp.options'
-- Configuration (override via script-opts, e.g. in mpv.conf:
-- script-opts-append=autovsr-rtx_hdr_peak=700
-- script-opts-append=autovsr-hdr_default=no
--
-- rtx_hdr_peak: match "Peak brightness (nits)" in the NVIDIA Control
-- Panel's RTX Video HDR settings; mpv guesses 1000 otherwise.
-- vsr_default / hdr_default: whether each feature starts enabled.
@anthonybaldwin
anthonybaldwin / convert-video.sh
Last active July 13, 2019 04:58 — forked from kus/convert-video.sh
Convert any video (i.e.: AVI, MOV, MP4) to MP4 or WEBM with FFmpeg. Has option to export MP4 with YUV planar color space so it works with QuickTime and Safari.
#!/bin/bash
# Version 1.0 2016-06-03 https://gist.github.com/kus/318f21b840df0b7a6377563ce717c184
# MIT license
# Prerequisites:
# Homebrew: http://brew.sh/
# Install FFmpeg via Homebrew: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvpx --with-theora --with-libogg --with-libvorbis --with-opus --with-x265
# Make the script executable: sudo chmod u+x convert-video.sh
# Run: ./convert-video.sh