Skip to content

Instantly share code, notes, and snippets.

@agyild
agyild / SGSR.glsl
Created July 13, 2025 17:50
Qualcomm Snapdragon Game Super Resolution (GSR) v1 for mpv
//============================================================================================================
//
//
// Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
//
//============================================================================================================
// Snapdragon Game Super Resolution (GSR) v1 by Qualcomm
// ported to mpv by agyild
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: Open > -
Ctrl+v script-message-to dialog open-clipboard #menu: Open > Clipboard
_ ignore #menu: Open > -
Ctrl+R script-binding recentmenu/open #menu: Open > Recently Played #@recent
@zhongfly
zhongfly / set_proxy.lua
Last active November 24, 2025 19:08
Get windows system proxy(only support http proxy) and auto set proxy for mpv and ytdl_hook
local mp = require 'mp'
local block = true
function string:trim()
return (self:gsub("^%s*(.-)%s*$", "%1"))
end
-- safe protocol (copied from mpv ytdl_hook.lua)
------------------------------------------------------------------------
local function Set (t)
//!HOOK NATIVE
//!BIND HOOKED
//!COMPONENTS 4
// RemoveGrain(11,-1) equivalent by -Vit-
#define Src(a,b) HOOKED_texOff(vec2(a,b))
vec4 hook() {
vec4 o = Src(0,0).xyzx;
o.x += o.x;
@jinjier
jinjier / javdb-top250.md
Last active December 4, 2025 05:34
JavDB top 250 movies list. [Updated on 2025/11]
@KCCat
KCCat / mpv-mvtools-blksize64.py
Last active November 21, 2025 01:40
mpv-mvtools.vpy
import vapoursynth as vs
core = vs.core
clip = video_in
vfps = int(container_fps*1e8)
dfps = 60000
#dfps = 0
def ffps(fps):
rfps = int('%.0f' % fps)
if ( abs(fps - (rfps/1.001)) < abs(fps - (rfps/1.000)) ):
@phiresky
phiresky / motioninterpolation.vpy
Last active October 31, 2025 01:50
Realtime motion interpolating 60fps playback in mpv
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()