hhirtz / mpv-retro-shaders

mpv ports of some libretro shaders for use with native-resolution encodes of Tool Assisted Speedruns
Other
34 stars 2 forks source link

Retro console shaders for MPV

Port of some libretro shaders for use with mpv. Useful for watching Tool Assisted Speedruns at native resolution from https://tasvideos.org/.

Some of the shaders have been automatically generated using mpv-libretro.

Usage

  1. Clone this repository inside mpv's config folder:

    mkdir -p ~/.config/mpv/shaders
    git clone https://git.sr.ht/~taiite/mpv-retro-shaders ~/.config/mpv/shaders/mpv-retro-shaders
  2. Add this snippet at the top of your mpv.conf configuration file:

    include=~~/shaders/mpv-retro-shaders/all.conf
  3. Start mpv with a shader profile, e.g. crt-lottes:

    mpv --profile=crt-lottes my_video.mp4

Usage with upscaled videos

To use these shaders with upscaled videos, you need to downscale the video with a filter like so:

mpv --vf=format=convert=yes:fmt=yuv444p,lavfi=[scale=$WIDTH:$HEIGHT:flags=neighbor,setsar=1:1] \
    --profile=crt-guest-advanced-ntsc \
    My_upscaled_video.mp4

Change $WIDTH:$HEIGHT to the actual resolution of the game (e.g. 342:224, or 256:224).

See the following for more details on video filters:

Available shaders

License

Each shader is distributed under a different license. See their source for details.