How to Enable FSR Upscaling in MPV Player
Upscaling Low resolution videos using FSR in MPV
What is FSR (FidelityFX Super Resolution)?
FSR, or FidelityFX Super Resolution, is an upscaling technology developed by AMD (Advanced Micro Devices) to improve the visual quality of lower-resolution images or videos in real-time. It is designed to enhance the gaming and multimedia experience by providing a more detailed and sharper image without significantly impacting performance.
Here we are going to apply the same fsr techinque to mpv media player to upscale the lower resolution videos.
Step 1: Install MPV
Windows
Download the installer from the official MPV website and follow the installation instructions.
Linux
Ubuntu/Debian
sudo apt-get install mpv
Fedora
sudo dnf install mpv
Mac
brew install mpv
Step 2: Create a Shaders Directory
Windows
- Navigate to appdata. This is typically located in %APPDATA%. You can quickly navigate there by entering this path into the File Explorer’s address bar.
- Create a Folder “mpv” inside that folder.
- Inside the “mpv” folder, create another folder named “shaders”.
Linux/Mac
mkdir -P ~/.config/mpv/shaders
Step 3: Download the FSR Shader into shaders folder
Windows
- Open your web browser and go to this website https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5
- Click on the Download ZIP button on the top right corner.
- Extract the downloaded file, where you can find
fsr.glsl
. - Copy that
fsr.glsl
into newly created shaders folder.
Linux/Mac
Run this command to download the FSR shaders into shaders folder
curl -Lo ~/.config/mpv/shaders/FSR.glsl https://gist.githubusercontent.com/agyild/82219c545228d70c5604f865ce0b0ce5/raw/2623d743b9c23f500ba086f05b385dcb1557e15d/FSR.glsl
Step 4: Modify MPV Configuration File
Windows
- open the mpv folder and create a text file input.conf
- Paste the following lines and save it.
CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/FSR.glsl"; show-text "FSR"
CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
Linux/Mac
- Run this command to create/open input.conf file
nano ~/.config/mpv/input.conf
- Paste the following lines and save it.
CTRL+1 no-osd change-list glsl-shaders set "~~/shaders/FSR.glsl"; show-text "FSR"
CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
Usage Instructions
Play a video which is lower than your display resolution and press ctrl+1 to enable FSR and ctrl+0 for disable FSR.