From b65fd207466c92a254ce1d035aba55ddcf78ea6c Mon Sep 17 00:00:00 2001 From: abhigit23 <88484339+abhigit23@users.noreply.github.com> Date: Wed, 13 Apr 2022 17:41:34 +0530 Subject: [PATCH 1/4] Update GLSL_Instructions_Linux.md Updated fedora workstation/spins guide : As mpv is not available in main official fedora repos, we've to add RPM-Fusion repos. Added Flatpak guide. Added new version(latest) screenshot in Usage Instructions for Anime4K section Add a note and a tip. --- md/GLSL_Instructions_Linux.md | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/md/GLSL_Instructions_Linux.md b/md/GLSL_Instructions_Linux.md index c3c72241..a879e474 100644 --- a/md/GLSL_Instructions_Linux.md +++ b/md/GLSL_Instructions_Linux.md @@ -4,7 +4,7 @@ 1. Install `mpv` from repositories of your distribution, some of the common ones are mentioned here ### Fedora Silverblue - 1. Install the RPM-Fusion "free" repository, if not already installed, paste in the command below + 1. Install the RPM-Fusion repository, if not installed already, paste the below command in the terminal `sudo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm` @@ -12,9 +12,16 @@ 3. Reboot and continue to step 2 - ### Fedora + ### Fedora Workstation/Spins + 1. Install the RPM-Fusion repository, if not installed already, paste the below command in the terminal + + `sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm` + sudo dnf install mpv - + + - Note: RPM Fusion command for both Fedora Workstation and Fedora Silverblue will add both "free" and "non-free" repository. + To know more about these you can check this [link](https://rpmfusion.org/Configuration) + ### Ubuntu and Derivatives sudo apt install mpv @@ -38,6 +45,21 @@ 5. Create an `input.conf` file in `~/.config/mpv` if not already present and paste one of the following code blocks inside the file: +### Flatpak +On flatpak mpv, all config files, shaders and scripts have different directories:- + + `~/.var/app/io.mpv.Mpv/config/mpv` + `~/.var/app/io.mpv.Mpv/config/mpv/mpv.conf` + `~/.var/app/io.mpv.Mpv/config/mpv/input.conf` + `~/.var/app/io.mpv.Mpv/config/mpv/scripts` + `~/.var/app/io.mpv.Mpv/config/mpv/shaders` + + ![image](https://user-images.githubusercontent.com/88484339/163166658-38c41daa-f543-43b5-a06c-eddf21bcafb7.png) + + Tip:- + Create a `mpv` folder, put all your files and folders(conf, shaders, scripts etc.) in there and copy/paste `mpv` folder to the `~/.var/app/io.mpv.Mpv/config/` + You can also do the same for non-flatpak mpv :-) + ---- #### **Optimized shaders for higher-end GPU:** *(Eg. GTX 1080, RTX 2070, RTX 3060, RX 590, Vega 56, 5700XT, 6600XT)* @@ -74,6 +96,7 @@ ____ 2. Anime4K v4.x has 3 major modes: A, B and C. To enable one of the modes, press CTRL+1 for mode A, CTRL+2 for B and so on. CTRL+0 will clear and disable all the shaders. Each mode is optimized for a different class of anime degradations, explanations are further down (soon in the wiki). For now you can just try each mode (starting from A) and use the one that looks the best. 3. To verify the installation was correctly done, enable one of the Anime4K modes and use the MPV profiler to check if there are a few shaders with the name Anime4K running. To access the profiler, press Shift+I and then 2 on the keyboard's top row. -This is what you should see (this example is from v2.0RC2, but also applies to newer versions): -![Profiler](../results/MPV_Profiler.png?raw=true) +This is what you should see (this example is from the v4.0.1, but also applies to older/newer versions): +![image](https://user-images.githubusercontent.com/88484339/163173769-e6e616ec-b465-4f5f-820e-3abe056637b0.png) + 4. For advanced usage and more customization options, see the [Advanced Usage Instructions](GLSL_Instructions_Advanced.md) page. From fac51671c0db508ab7ff7d4986e9e4de4b534d81 Mon Sep 17 00:00:00 2001 From: abhigit23 <88484339+abhigit23@users.noreply.github.com> Date: Wed, 13 Apr 2022 18:59:49 +0000 Subject: [PATCH 2/4] Update GLSL_Instructions_Linux.md --- md/GLSL_Instructions_Linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md/GLSL_Instructions_Linux.md b/md/GLSL_Instructions_Linux.md index a879e474..867e1fe6 100644 --- a/md/GLSL_Instructions_Linux.md +++ b/md/GLSL_Instructions_Linux.md @@ -96,7 +96,7 @@ ____ 2. Anime4K v4.x has 3 major modes: A, B and C. To enable one of the modes, press CTRL+1 for mode A, CTRL+2 for B and so on. CTRL+0 will clear and disable all the shaders. Each mode is optimized for a different class of anime degradations, explanations are further down (soon in the wiki). For now you can just try each mode (starting from A) and use the one that looks the best. 3. To verify the installation was correctly done, enable one of the Anime4K modes and use the MPV profiler to check if there are a few shaders with the name Anime4K running. To access the profiler, press Shift+I and then 2 on the keyboard's top row. -This is what you should see (this example is from the v4.0.1, but also applies to older/newer versions): +This is what you should see (this example is from the v4.0.1, but also applies to newer versions): ![image](https://user-images.githubusercontent.com/88484339/163173769-e6e616ec-b465-4f5f-820e-3abe056637b0.png) 4. For advanced usage and more customization options, see the [Advanced Usage Instructions](GLSL_Instructions_Advanced.md) page. From 706c4ec0ae2c6edd7650db92f3086464a93aae89 Mon Sep 17 00:00:00 2001 From: abhigit23 <88484339+abhigit23@users.noreply.github.com> Date: Thu, 14 Apr 2022 17:17:55 +0530 Subject: [PATCH 3/4] Update GLSL_Instructions_Linux.md Added a note for Debian/Ubuntu distro. Added flatpak setup guide link. --- md/GLSL_Instructions_Linux.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/md/GLSL_Instructions_Linux.md b/md/GLSL_Instructions_Linux.md index 867e1fe6..95a15be7 100644 --- a/md/GLSL_Instructions_Linux.md +++ b/md/GLSL_Instructions_Linux.md @@ -22,8 +22,10 @@ - Note: RPM Fusion command for both Fedora Workstation and Fedora Silverblue will add both "free" and "non-free" repository. To know more about these you can check this [link](https://rpmfusion.org/Configuration) - ### Ubuntu and Derivatives + ### Debian/Ubuntu and Derivatives sudo apt install mpv + + - Note: Debian and Ubuntu usually ships with the older version of mpv player in their official repositories. It is advised to check flatpak guide below as it stays upto date with the upstream. ### Arch and Derivatives sudo pacman -S mpv @@ -31,7 +33,7 @@ ### Gentoo (Add USE Flags as mentioned [here](https://wiki.gentoo.org/wiki/Mpv#USE_flags)) sudo emerge --ask media-video/mpv` - - Note: make sure to install a version of [**mpv**](https://mpv.io/) that was released after June 2021, older versions [might not work](https://github.com/bloc97/Anime4K/issues/134). + - Note: make sure to install a version of [**mpv**](https://mpv.io/) that was released after June 2021, older versions [might not work](https://github.com/bloc97/Anime4K/issues/134). 2. Clone the repo using `git clone https://github.com/bloc97/Anime4K.git` , or download the archive files in the [Releases](https://github.com/bloc97/Anime4K/releases) @@ -46,6 +48,8 @@ 5. Create an `input.conf` file in `~/.config/mpv` if not already present and paste one of the following code blocks inside the file: ### Flatpak +Setting up flatpak if not already configured, from [here](https://www.flatpak.org/setup/) + On flatpak mpv, all config files, shaders and scripts have different directories:- `~/.var/app/io.mpv.Mpv/config/mpv` From 3885672c19c7f70acb53ca1409f9d8210ced11b3 Mon Sep 17 00:00:00 2001 From: abhigit23 <88484339+abhigit23@users.noreply.github.com> Date: Thu, 12 May 2022 12:45:23 +0530 Subject: [PATCH 4/4] Added OpenSUSE Tumbleweed install command --- md/GLSL_Instructions_Linux.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/md/GLSL_Instructions_Linux.md b/md/GLSL_Instructions_Linux.md index 95a15be7..c294f760 100644 --- a/md/GLSL_Instructions_Linux.md +++ b/md/GLSL_Instructions_Linux.md @@ -29,6 +29,9 @@ ### Arch and Derivatives sudo pacman -S mpv + + ### OpenSUSE Tumbleweed + sudo zypper install mpv ### Gentoo (Add USE Flags as mentioned [here](https://wiki.gentoo.org/wiki/Mpv#USE_flags)) sudo emerge --ask media-video/mpv`