{"id":39445737,"url":"https://github.com/bjin/mpv-prescalers","last_synced_at":"2026-01-18T04:24:41.992Z","repository":{"id":47079040,"uuid":"61000537","full_name":"bjin/mpv-prescalers","owner":"bjin","description":"prescalers for mpv, as user shaders","archived":false,"fork":false,"pushed_at":"2024-01-24T13:17:22.000Z","size":213601,"stargazers_count":340,"open_issues_count":3,"forks_count":34,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-05-02T01:20:34.879Z","etag":null,"topics":["glsl","mpv","nnedi3","ravu","vulkan"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-06-13T02:12:50.000Z","updated_at":"2024-04-28T22:09:46.000Z","dependencies_parsed_at":"2023-10-20T18:28:03.406Z","dependency_job_id":null,"html_url":"https://github.com/bjin/mpv-prescalers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bjin/mpv-prescalers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjin%2Fmpv-prescalers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjin%2Fmpv-prescalers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjin%2Fmpv-prescalers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjin%2Fmpv-prescalers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjin","download_url":"https://codeload.github.com/bjin/mpv-prescalers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjin%2Fmpv-prescalers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glsl","mpv","nnedi3","ravu","vulkan"],"created_at":"2026-01-18T04:24:41.897Z","updated_at":"2026-01-18T04:24:41.981Z","avatar_url":"https://github.com/bjin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo contains user shaders for prescaling in [mpv](https://mpv.io/).\n\nFor the scripts generating these user shaders, check the [source\nbranch](https://github.com/bjin/mpv-prescalers/tree/source).\n\nShaders in [`gather/` directory](https://github.com/bjin/mpv-prescalers/tree/master/gather)\nand [`compute/` directory](https://github.com/bjin/mpv-prescalers/tree/master/compute)\nare **generally faster**, and are thus recommended to try and use first.\n\n* `gather/` shaders uses `textureGather()` functions, and are usually faster for luma upscalers (`nnedi3`, `ravu`, `ravu-lite` and `ravu-zoom`).\n* `compute/` shaders are compute shaders, and are faster for `-yuv` and `-rgb` upscalers.\n\nIf you are using an old graphics card (or somehow broken GPU driver), and shaders in none of above directories works. Shaders in root folder\nare safe fallback option with minimal requirement for GPU driver or OpenGL version.\n\nIf you are using `--vo=gpu` along with `--gpu-api=d3d11`\nand encountered the following error:\n\n```\n[vo/gpu] Unrecognized/unavailable FORMAT name: 'rgba16f'!\n```\n\nYou can either switch to `--vo=gpu-next` (libplacebo required) or find shaders\nwith `rgba16hf` format [here](https://github.com/bjin/mpv-prescalers/tree/rgba16hf).\n\n# Usage\n\nYou only need to download shaders you actually use. Shaders should be downloaded in raw text format,\njust click the \"Raw\" (or \"Download raw file\") button on the upper right corner for each shader. The following part of this\nsection assumes that they are in `shaders` directory in the `mpv` configure\nfolder (usually `~/.config/mpv/shaders` on Linux).\n\nUse [`--glsl-shader` option](https://mpv.io/manual/master/#options-glsl-shader) to load those shaders.\n\n```\nglsl-shader=\"~~/shaders/ravu-lite-ar-r3.hook\"\n```\n\nFor `nnedi3` prescaler, `neurons` and `window` settings are indicated in the\nfilename.\n\nFor `ravu` prescaler, `radius` setting is indicated in the filename.\n\n# About RAVU\n\nRAVU (Rapid and Accurate Video Upscaling) is a set of prescalers inspired by\n[RAISR (Rapid and Accurate Image Super Resolution)](https://ai.googleblog.com/2016/11/enhance-raisr-sharp-images-with-machine.html).\nIt comes with different variants to fit different scenarios.\n\n`ravu` and `ravu-lite` upscale only luma plane (of a YUV video), which means\nchroma planes will be handled by `--cscale` later. `ravu-lite` is faster and\nsharper. It also introduces no half pixel offset.\n\n`ravu-yuv` and `ravu-rgb` upscale video after all planes are merged. This happens\nafter `--cscale` (or other chroma prescaler) is applied. `ravu-yuv` assumes YUV\nvideo and will fail on others (for example, PNG picture).\n\n`ravu-zoom` is another variant which is able to upscale video to arbitrary ratio\ndirectly (i.e. a drop-in replacement of `--scale`). Its sharpness is close to `ravu-lite`.\nBut it renders at target resolution, so expect it to be much slower than `ravu` and `ravu-lite`\nfor perfect 2x upscaling.\n\n`ravu-lite-ar` and `ravu-zoom-ar` uses [anti-ringing filter (of EWA scalers)](https://github.com/haasn/libplacebo/commit/0581828343ddaafb81d296aa510d4d141e4d9b50) from libplacebo to reduce\n[ringing artifacts](https://en.wikipedia.org/wiki/Ringing_artifacts). The default anti-ringing strength in master branch is set to 0.8.\nThese shaders are the **recommended** ones to use, especially for footages with sharp edge and details.\n\n# License\n\nShaders in this repo are licensed under terms of LGPLv3. Check the header of\neach file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjin%2Fmpv-prescalers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjin%2Fmpv-prescalers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjin%2Fmpv-prescalers/lists"}