Last active
October 28, 2025 05:57
-
-
Save JySzE/04ee1964d3a734d7be8f25f08da55f49 to your computer and use it in GitHub Desktop.
Revisions
-
JySzE revised this gist
Sep 21, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ ### **PLEX HTPC MPV Conf Guide for HDR TV Users** #### **Prerequisites:** - Nvidia Studio Drivers if using a NV Card, Last tested known not stuttering Studio Driver: 581.29. - GPU set to max performance in NV Control Panel. - Download and install font: https://www.fontsquirrel.com/fonts/gandhi-sans - **Custom Build:** Download a modified MPV build from this [mpv-winbuild](https://github.com/mitzsch/mpv-winbuild/releases). -
JySzE revised this gist
Sep 11, 2025 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ############################################################################################################################### vo = gpu-next hwdec = d3d11va #d3d11va-copy Do not use this with refreshrate switching as it can cause stuttering after seeking. d3d11-adapter = NVIDIA target-colorspace-hint = yes target-colorspace-hint-mode = source @@ -132,7 +132,7 @@ profile-restore=copy [DV WEBDL] profile-desc = "DV WEBDL" profile-cond = p["video-params/hw-pixelformat"]=="p010" and p["video-params/colorlevels"]=="full" and p["video-params/colormatrix"]=="dolbyvision" target-colorspace-hint = no tone-mapping = bt.2446a # Adjust as needed. target-prim = bt.709 -
JySzE revised this gist
Sep 8, 2025 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ hwdec = d3d11va-copy d3d11-adapter = NVIDIA target-colorspace-hint = yes target-colorspace-hint-mode = source swapchain-depth = 1 # fixes stutters on nvidia cards when using hardware acceleration and refreshrate switching ############################################################################################################################### # Scaling and Etc Options -
JySzE revised this gist
Sep 5, 2025 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,8 @@ #### **Prerequisites:** - Download and install font: https://www.fontsquirrel.com/fonts/gandhi-sans - **Custom Build:** Download a modified MPV build from this [mpv-winbuild](https://github.com/mitzsch/mpv-winbuild/releases). - Use **mpv-dev-x86_64-v3** for modern CPUs or mpv-dev-x86_64 for older CPUs. - Replace `libmpv-2.dll` in: `C:\Program Files\Plex\Plex HTPC` -
JySzE revised this gist
Aug 8, 2025 . 1 changed file with 11 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,8 @@ vo = gpu-next hwdec = d3d11va-copy d3d11-adapter = NVIDIA target-colorspace-hint = yes target-colorspace-hint-mode = source ############################################################################################################################### # Scaling and Etc Options @@ -64,6 +65,7 @@ sub-fix-timing = no [Analog bt.470m] profile-desc = "Analog bt.470m" profile-cond = p["video-params/primaries"]=="bt.470m" target-colorspace-hint = no target-prim = bt.470m gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no @@ -77,17 +79,19 @@ profile-restore=copy [SD NTSC] profile-desc = "SD NTSC" profile-cond = p["video-params/primaries"]=="bt.601-525" target-colorspace-hint = no target-prim = bt.601-525 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore = copy [SD PAL] profile-desc = "SD PAL" profile-cond = p["video-params/primaries"]=="bt.601-625" target-colorspace-hint = no target-prim = bt.601-625 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no @@ -102,6 +106,7 @@ profile-restore=copy [SDR UHD & HD BT.709] profile-desc = "SDR UHD & HD BT.709" profile-cond = p["video-params/primaries"]=="bt.709" target-colorspace-hint = no target-prim = bt.709 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no @@ -112,6 +117,7 @@ profile-restore=copy [SDR UHD BT.2020] profile-desc = "SDR UHD BT.2020" profile-cond = p["video-params/gamma"]~="pq" and p["video-params/primaries"]=="bt.2020" and p["video-params/gamma"]=="bt.1886" target-colorspace-hint = no target-prim = bt.709 target-trc = bt.1886 target-colorspace-hint = no @@ -126,6 +132,7 @@ profile-restore=copy [DV WEBDL] profile-desc = "DV WEBDL" profile-cond = p["video-params/pixelformat"]=="p010" and p["video-params/colorlevels"]=="full" and p["video-params/colormatrix"]=="dolbyvision" target-colorspace-hint = no tone-mapping = bt.2446a # Adjust as needed. target-prim = bt.709 target-trc = bt.1886 -
JySzE revised this gist
Mar 18, 2025 . 2 changed files with 140 additions and 107 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ - **Custom Build:** Download a modified MPV build from this [Plex forum thread](https://forums.plex.tv/t/dolby-truehd-passthrough-modified-mpv-build/802742/225). - Use **v3** for modern CPUs or non-v3 for older CPUs. - Replace `libmpv-2.dll` in: `C:\Program Files\Plex\Plex HTPC` #### **Setup Steps:** @@ -40,109 +40,3 @@ - `C:\Program Files\Plex\Plex HTPC` - `C:\Users\<YOUR USERNAME>\AppData\Local\Plex HTPC` - Config for HDR TVs with metadata passthrough: This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,139 @@ # ONLY IF YOU HAVE HDR META PASSTHROUGH ENABLED AND HDR SWITCHING, HDR TVs ONLY. ############################################################################################################################### # Video Output Options ############################################################################################################################### vo = gpu-next hwdec = d3d11va-copy d3d11-adapter = NVIDIA ############################################################################################################################### # Scaling and Etc Options ############################################################################################################################### scale = ewa_lanczossharp cscale = ewa_lanczossharp dscale = ewa_robidoux dscale-param1 = 0 dscale-param2 = .5 correct-downscaling = yes sigmoid-upscaling = yes scale-antiring = .4 deband = no ############################################################################################################################### # Subtitle Options ############################################################################################################################### # Adjust all as needed. sub-auto = fuzzy sub-font = "Gandhi Sans" sub-font-size = 52 sub-color = 0.95/0.95/0.95/1 sub-blur = 0.2 sub-bold = yes sub-border-size = 3 sub-border-color = 0.05/0.05/0.05/1 sub-spacing = 1.5 sub-shadow-offset = 1 sub-shadow-color = 0/0/0/0.25 sub-use-margins = no sub-margin-y = 50 sub-margin-x = 100 sub-scale-with-window = no sub-ass-override = no demuxer-mkv-subtitle-preroll = yes sub-fix-timing = no ############################################################################################################################### # Auto Profiles. ############################################################################################################################### # Analog Profile RARE [Analog bt.470m] profile-desc = "Analog bt.470m" profile-cond = p["video-params/primaries"]=="bt.470m" target-prim = bt.470m gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore=copy #---------------------------------------------------------------------------------------------------------------------------------------------# # SD Profiles [SD NTSC] profile-desc = "SD NTSC" profile-cond = p["video-params/primaries"]=="bt.601-525" target-prim = bt.601-525 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore=copy [SD PAL] profile-desc = "SD PAL" profile-cond = p["video-params/primaries"]=="bt.601-625" target-prim = bt.601-625 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore=copy #-----------------------------------------------------------------------------------------------------------------------------# # SDR UHD & HD Profiles [SDR UHD & HD BT.709] profile-desc = "SDR UHD & HD BT.709" profile-cond = p["video-params/primaries"]=="bt.709" target-prim = bt.709 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore=copy [SDR UHD BT.2020] profile-desc = "SDR UHD BT.2020" profile-cond = p["video-params/gamma"]~="pq" and p["video-params/primaries"]=="bt.2020" and p["video-params/gamma"]=="bt.1886" target-prim = bt.709 target-trc = bt.1886 target-colorspace-hint = no gamut-mapping-mode = absolute libplacebo-opts = gamut_expansion=no dither-depth = 8 dither = fruit profile-restore=copy #---------------------------------------------------------------------------------------------------------------------------------------------# [DV WEBDL] profile-desc = "DV WEBDL" profile-cond = p["video-params/pixelformat"]=="p010" and p["video-params/colorlevels"]=="full" and p["video-params/colormatrix"]=="dolbyvision" tone-mapping = bt.2446a # Adjust as needed. target-prim = bt.709 target-trc = bt.1886 hdr-compute-peak = yes gamut-mapping-mode = perceptual # Adjust as needed. target-peak = 120 # Adjust as needed. dither-depth = 8 dither = fruit profile-restore=copy ############################################################################################################################################### -
JySzE revised this gist
Mar 5, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -112,13 +112,15 @@ profile-cond = p["video-params/primaries"]=="bt.601-525" target-prim = bt.601-525 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no profile-restore=copy [SD PAL] profile-desc = "SD PAL" profile-cond = p["video-params/primaries"]=="bt.601-625" target-prim = bt.601-625 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no profile-restore=copy #-----------------------------------------------------------------------------------------------------------------------------# -
JySzE revised this gist
Mar 5, 2025 . 1 changed file with 31 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,21 +43,21 @@ ``` # ONLY IF YOU HAVE HDR META PASSTHROUGH ENABLED AND HDR SWITCHING, HDR TVs ONLY. ############################################################################################################################### # Video Output Options ############################################################################################################################### vo = gpu-next hwdec = d3d11va-copy d3d11-adapter = NVIDIA ############################################################################################################################### # Scaling and Etc Options ############################################################################################################################### scale = ewa_lanczossharp cscale = ewa_lanczossharp @@ -67,15 +67,15 @@ dscale-param2 = .5 correct-downscaling = yes sigmoid-upscaling = yes scale-antiring = .4 dither-depth = 10 dither = ordered deband=no ############################################################################################################################### # Subtitle Options ############################################################################################################################### # Adjust all as needed. @@ -98,11 +98,11 @@ sub-ass-override = no demuxer-mkv-subtitle-preroll = yes sub-fix-timing = no ############################################################################################################################### # Auto Profiles. ############################################################################################################################### # SD Profiles @@ -120,6 +120,27 @@ target-prim = bt.601-625 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no #-----------------------------------------------------------------------------------------------------------------------------# # SDR UHD & HD Profiles [SDR UHD & HD BT.709] profile-desc = "SDR UHD & HD BT.709" profile-cond = p["video-params/primaries"]=="bt.709" target-prim = bt.709 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no profile-restore=copy [SDR UHD BT.2020] profile-desc = "SDR UHD BT.2020" profile-cond = p["video-params/gamma"]~="pq" and p["video-params/primaries"]=="bt.2020" and p["video-params/gamma"]=="bt.1886" target-prim = bt.709 target-trc = bt.1886 gamut-mapping-mode = absolute libplacebo-opts = gamut_expansion=no profile-restore=copy ############################################################################################################################### ``` -
JySzE revised this gist
Mar 4, 2025 . 1 changed file with 84 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ ### **PLEX HTPC MPV Conf Guide for HDR TV Users** #### **Prerequisites:** - Download and install font: https://www.fontsquirrel.com/fonts/gandhi-sans - **Custom Build:** Download a modified MPV build from this [Plex forum thread](https://forums.plex.tv/t/dolby-truehd-passthrough-modified-mpv-build/802742/225). - Use **v3** for modern CPUs or non-v3 for older CPUs. @@ -39,29 +40,86 @@ - `C:\Program Files\Plex\Plex HTPC` - `C:\Users\<YOUR USERNAME>\AppData\Local\Plex HTPC` - Config for HDR TVs with metadata passthrough: ``` # ONLY IF YOU HAVE HDR META PASSTHROUGH ENABLED AND HDR SWITCHING, HDR TVs ONLY. ######################################################### # Video Output Options ######################################################### vo = gpu-next hwdec = d3d11va-copy d3d11-adapter = NVIDIA ######################################################### # Scaling and Etc Options ######################################################### scale = ewa_lanczossharp cscale = ewa_lanczossharp dscale = ewa_robidoux dscale-param1 = 0 dscale-param2 = .5 correct-downscaling = yes sigmoid-upscaling = yes scale-antiring = .4 deband=no dither-depth = 10 dither = ordered ######################################################### # Subtitle Options ######################################################### # Adjust all as needed. sub-auto = fuzzy sub-font = "Gandhi Sans" sub-font-size = 52 sub-color = 0.95/0.95/0.95/1 sub-blur = 0.2 sub-bold = yes sub-border-size = 3 sub-border-color = 0.05/0.05/0.05/1 sub-spacing = 1.5 sub-shadow-offset = 1 sub-shadow-color = 0/0/0/0.25 sub-use-margins = no sub-margin-y = 50 sub-margin-x = 100 sub-scale-with-window = no sub-ass-override = no demuxer-mkv-subtitle-preroll = yes sub-fix-timing = no ######################################################### # Auto Profiles. ######################################################### # SD Profiles [SD NTSC] profile-desc = "SD NTSC" profile-cond = p["video-params/primaries"]=="bt.601-525" target-prim = bt.601-525 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no [SD PAL] profile-desc = "SD PAL" profile-cond = p["video-params/primaries"]=="bt.601-625" target-prim = bt.601-625 gamut-mapping-mode = auto libplacebo-opts = gamut_expansion=no #-------------------------------------------------------# ``` -
JySzE created this gist
Jan 1, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,67 @@ ### **PLEX HTPC MPV Conf Guide for HDR TV Users** #### **Prerequisites:** - **Custom Build:** Download a modified MPV build from this [Plex forum thread](https://forums.plex.tv/t/dolby-truehd-passthrough-modified-mpv-build/802742/225). - Use **v3** for modern CPUs or non-v3 for older CPUs. - Replace `mpv-2.dll` in: `C:\Program Files\Plex\Plex HTPC` #### **Setup Steps:** 1. **Configure Plex HTPC Settings:** - **Video Settings:** ``` Local Quality: Original Allow Direct Play: Checked Allow Direct Stream: Checked Force Direct Play: Unchecked Use Hardware Decoding: Checked Enable Refresh Rate Switching: Checked Enable Resolution Switching: Checked Enable HDR Switching: Checked HDR Metadata Passthrough: Enabled Refresh Rate Switching Delay: Any Video Playback Quality: Normal Quality ``` 2. **Edit `plex.ini`:** - Go to: `C:\Users\<YOUR USERNAME>\AppData\Local\Plex HTPC` - Open or create `plex.ini` and add this to the `[debug]` section: ``` [debug] webInspectorPort=0 disableUpdater=true ``` 3. **Create/Edit `mpv.conf`:** - File location: - `C:\Program Files\Plex\Plex HTPC` - `C:\Users\<YOUR USERNAME>\AppData\Local\Plex HTPC` - Config for HDR TVs with metadata passthrough: ``` # HDR META Passthrough Enabled vo = gpu-next hwdec = d3d11va scale = ewa_lanczossharp scale-antiring = 0.4 cscale = ewa_lanczossharp dscale = ewa_robidoux dscale-param1 = 0.0 dscale-param2 = 0.5 correct-downscaling = yes sigmoid-upscaling = yes deband = no dither-depth = 10 dither = ordered # Profiles not needed as HDR/DV stuff is passthrough. gamut-mapping-mode = saturation libplacebo-opts = gamut_expansion=yes ``` 4. **TV Settings:** - Ensure TV is in **10-bit mode**. - If unavailable, switch from RGB to **YCbCr422 (limited)** for 10-bit option. - Set TV to **limited mode**.