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.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st May 2023, 10:00   #121  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 238
(custom) windowed zoom: 150%

Quote:
Originally Posted by butterw2 View Post
In mpc-hc and mpc-be, only 200% and 50% zoom can be easily and directly applied in windowed mode. But often the desirable scaling would be 150% or 75%...
To be more complete:
- You can go back to 100% zoom using View > Zoom > 100% or the corresponding hotkey.
- mpc-hc and mpc-be do allow to set a fixed window size or remember last window size. But random videos will have different resolutions so this isn't typically practical.
- mpc-hc has added a "zoom window +", "zoom window -" hotkey, which would allow to adjust window size manually (! the step is small though).
- in fullscreen mode, you could create a custom zoom factor with View>Pan&scan> Edit... preset, with the option to further adjust manually with numpad 9,1, 5 (PnS reset) hotkeys.

However Vlc does have the setting I was looking for (custom default windowed zoom):
Tools > Preferences > Show Settings: All (at the bottom) to access Advanced Settings.
Video > zoom Video: 150%. Restart the player.

In mpv:
> mpv.exe --no-hidpi-window-scale --window-scale=1.5 "b:\Videos\day_480p.mp4"


- mpc-hc Changes from 1.9.1 to 1.9.2: Added a 25% zoom shortcut and menu entry
I don't know what the use case for a 25% zoom is, but I would suggest having a user customizable zoom would be more useful. The default value could remain 25%.

Last edited by butterw2; 31st May 2023 at 14:03. Reason: +mpv, 25% zoom ?
butterw2 is offline   Reply With Quote
Old 1st June 2023, 10:58   #122  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 238
bShaders color filter pack (dx9, dx11, mpv)

Some mobile apps have great shaders for video adjustment. Corresponding shaders may not exist or be hard to find for video players, so I'm thinking of releasing a small updated pack of essential lightweight filters. The shaders would be available for hlsl evr-cp, hlsl dx11 and mpv hook.

example: 16-235 to 0-255.hlsl from mpc-hc (1 texture, 1 arithmetic) can be used to stretch the histogram. While it's not its initial purpose, I've found the shader to be useful to boost the contrast of some lackluster internet videos (when activated the haze lifts !).

Last edited by butterw2; 1st June 2023 at 15:37.
butterw2 is offline   Reply With Quote
Old 1st June 2023, 15:51   #123  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 238
bShadows shader

To darken shadows only, I'm using the following formula (1 texture, 5 arithmetic):

#define Shadows 0.15
pixel.rgb = pixel.rgb -Shadows*(1-luma)**4

Last edited by butterw2; 1st June 2023 at 17:43.
butterw2 is offline   Reply With Quote
Old 2nd June 2023, 10:36   #124  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 238
Converting from dx9 to dx11 hlsl shaders

with mpc-hc, you need put your custom hlsl shaders in the .\shaders (for dx9) and .\shaders11 (for dx11). The shaders need to be have the same filename (ex: bShadows.hlsl) to be applied correctly when switching between dx9 and dx11 renderers.

It's easier to develop the shaders in dx9 Evr-CP, with the debug shader compiler output available.
You can then port the shader to dx11. For this, I was able to use BingChat (I specified that the language is similar to C and gave an input/output example from mpc-hc shaders).
butterw2 is offline   Reply With Quote
Old 5th June 2023, 07:51   #125  |  Link
toniash
Registered User
 
Join Date: Oct 2010
Posts: 129
Quote:
Originally Posted by butterw2 View Post
Some mobile apps have great shaders for video adjustment. Corresponding shaders may not exist or be hard to find for video players, so I'm thinking of releasing a small updated pack of essential lightweight filters. The shaders would be available for hlsl evr-cp, hlsl dx11 and mpv hook.

example: 16-235 to 0-255.hlsl from mpc-hc (1 texture, 1 arithmetic) can be used to stretch the histogram. While it's not its initial purpose, I've found the shader to be useful to boost the contrast of some lackluster internet videos (when activated the haze lifts !).
not for potplayer?
toniash is offline   Reply With Quote
Old 6th June 2023, 05:39   #126  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 238
My understanding is that potplayer does support hlsl pixel shaders, but I don't know the specifics as I don't use this player.
Some players require the the shaders to have a .txt extension instead of .hlsl.
Video players often come with different shader bundles (ex: mpc-hc vs mpc-be) , some shaders will simply have been renamed. If he has the required folder permissions, the user can delete these shaders and copy whatever shaders he likes to the shader folder
butterw2 is offline   Reply With Quote
Reply

Tags
hlsl, mpc-be, mpc-hc, mpv, pixel shaders

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.