Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
29th June 2020, 14:34 | #1 | Link |
Registered User
Join Date: Jun 2020
Posts: 303
|
Video player Shaders guide (MPC-HC, mpc-BE, mpv)
Video player Shaders (unofficial guide)
Video Adjustment shaders Pack (dx9, dx11 hlsl and mpv glsl.hook): [A-Pack] v1.50 Released (2023-11) Contrast adaptive Sharpening (AMD CAS) shader (dx9/dx11). Filmgrain Shaders grain.hlsl (dx9/dx11), mpv In addition to video player shaders, this topic covers configuration, user interface and performance of open-source video players available on Windows. MPC-HC MPC-BE, mpv, mpv.net are feature packed video players that offer great features and performance, together with extensive configuration options. Post index: # Comparison of shader features in video players # Shaders Folder, Paths & extensions # New Shader features in Mpc-hc (v1.9.8.65) # Custom hotkeys, Seeking, Chapters, Playlist # Screenshots # Comparison of video player features (Win10) # Mpc Command Line Switches # Video Player installation https://forum.doom9.org/showthread.p...73#post1934473 # Color mapping with Shaders https://forum.doom9.org/showthread.p...82#post1935482 # (custom) windowed zoom: 150% # Time display formats, ex: 01:25 / 53:15 MPC video-renderer, Mpc-vr # Shader support in mpc video renderer (mpc-vr) # Surface/texture format MPV # mpv (windows): my tips New # Mpv shader basics # mpv hotkeys # mpv built-in scalers (2023-10) new Defaults ! # mpv Auto-Profiles # How to change settings/properties at runtime with mpv # default input.conf. --no-input-default-bindings # custom OSD in mpv # mpv script: avg-bitrate.js # more mpv custom OSD scripts # mpv-android # restart-mpv # custom context menu # custom overlay: modern progress bar # mpv scripts: lua or js ? # mpv script: short time format OSD, btime.js # Cartoon Shaders https://forum.doom9.org/showthread.p...55#post1928755 Videohelp: # What shaders should I use in potplayer? # Pixel-shaders for video playback (.hlsl, .glsl) --- Fix Mpc-hc issues with evr-cp (dx9) on intel Xe driver (used by 11th gen and later intel igpu, ex: intel uhd730) Issue: Broken seeking after reaching end of file, repeat doesn't work. Affects all versions of mpc-hc. Fix: rename mpc-hc64.exe to mpc.exe. Mpc-hc + Shaders install (with default dx9 EVR-CP renderer) unofficial guide 32 vs 64 bit program version doesn't matter for shaders. Mpc-hc installs the default shaders in the player directory Shaders subfolder. They are not required to run mpc-hc (they can be modified/deleted as required). It is also possible to download shader files available on the internet or write your own. Files with .hlsl extension in Shaders subfolder are listed in `Option->Shaders` submenu. Install directory does matter. To be able to modify shader parameters you need to have write access to the directory where the shader.hlsl file is located (by default the Shaders subfolder). Also to have the option to use mpc-hc.ini, mpc-hc must have write access to the Install directory (if not the option is greyed out). This will not be the case for a standard user on Win10 by default with a `c:\Program Files\MPC-HC` install. To get around this, you need to either re-install to a user directory or change folder permissions. For testing, the simplest solution is to copy a portable version + mpc.ini in its own directory (no-install required). How to get corresponding Shaders Menu when you install Shaders files ? To be able to apply Effects quickly, they need to be saved as Shader Presets. You can then change Effects through the Shaders right-click Menu Shader presets can be created/saved by using the `Select Shaders...` menu option, but by editing mpc-hc.ini we can get a ready to use Shaders Menu directly. Mpc-hc Shader Menu mod guide: Mpc-hc settings are stored either in the registry or in an .ini file, based on setting `Mpc-hc->Options->Player->Store settings in .ini file.`. This option will be greyed out, if mpc-hc doesn't have write access to the install folder. Editing mpc-hc.ini (Close Mpc-hc before you start. It is advisable to make a backup copy before making any changes) With a text editor, search for the Shaders\Presets section. Here is an example of what you might have: [Shaders\Presets] 0= Disable 1=Sepia 2=Luma+Grain 3=Pixelate PostResize0= PostResize1= PostResize2=.\LumaSharpen.hlsl;.\PS_Noise.hlsl PostResize3= PreResize0= PreResize1=.\Sepia.hlsl PreResize2= PreResize3=.\bPixelate.hlsl You can directly edit preset names, Pre and PostResize shader chain filepaths. Be careful that all numbers must remain available: deleting 1=Sepia would cause issue here ! Shaders Menu display order: Preset names are sorted alphabetically. To control the display order, preset names could be numbered (00, 01, etc.). For more advanced users, Shader Presets can be used to setup Multi-Pass shaders. Modifying shader files .hlsl files contain the Shader function and parameter values. In most cases, the effect has parameter values that can be modified. This can be done with any text editor (I use Notepad++, a multitabbed editor which offers c-syntaxic coloring). After saving the changes, they are applied instantly to the video playing. In the case of LumaSharpen.hlsl which was developed for SweetFX game shaders pack, the default parameter values are not those recommended in this forum for video content playback. If you want to switch between different parameter values for the same shader without editing, you can create a new shader with the desired parameter values, ex: LumaSharpen_3-1.20-0.015.hlsl. With this approach the Shaders subfolder (and the shader list) can quickly become overcrowded, so it is important to know which shaders you want to use, together with the associated parameter values.
__________________
bShaders: realtime Effects/filters for video players Last edited by butterw2; 20th January 2024 at 12:07. Reason: +mpc-hc/evr-cp fix on modern intel, +btime.js,+grain +CAS |
Tags |
hlsl, mpc-be, mpc-hc, mpv, pixel shaders |
Thread Tools | Search this Thread |
Display Modes | |
|
|