This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi there,
Been tinkering with this some time (a long time really) now and get it working at a state i feel is pretty damn nice. This is a complete package with interpolation (frame smoothness), scripts, browser integration to play youtube videos really smooth (not my work, see https://github.com/ytdl-org/youtube-dl and https://github.com/Thann/play-with-mpv), imdb lookup of movies (again not my work, see https://github.com/alberanid/imdbpy) , a custom gui (not made by me, see https://github.com/darsain/uosc for info about that, it's really nice! ) and a lot more. I have merely put it all in one place and got it working with everything i wanted.
SVP fixes the fram interpolation and the latests .dll files for it requires that you pay for it. But older .dll files are free (witch am using in this package). I am also paying for SVP and if you are interested for more about SVP head over to https://www.svp-team.com/.
Download: https://drive.google.com/drive/folders/1OFsx7La0YksNUGo4VNUoWKybkbdK9jwd
The read-me file included:
- Unpack folder some place nice (pref on main SSD)
- Make an Environment Variable PATH in Control Panel > System > Advanced System Settings > Environment Variables for:
- The Folder you have unpacked Mpv_x64_SVPflowEdition, make sure to move the PATH up in the list, make it the first one. (Make a PATH both for the USER and SYSTEM). (see https://ibb.co/jyLQSBX)
- Edit the line: table.args = {"C:\\Program Files\\Mpv_x64_SVPflowEdition\\python.exe", "C:\\Program Files\\Mpv_x64_SVPflowEdition\\portable_config\\scripts\\open-imdb-page.py", mp.get_property("filename")} in the file \portable_config\scripts\open-imdb-page.lua to reflect your path.
- Associate mpv.exe in Mpv_x64_SVPflowEdition with mkv, wmv, m2ts and mp4 files.
- Change your resolution in Windows Nvidia control panel, make a custom resolution for 59Hz, set it to 59.940 Hz exact. (see https://ibb.co/3h2hhZn) I don't know how to do this in a Radeon system, but you can figure it out.
- Good test clips are at: http://jell.yfish.us/ my system can run the jellyfish-250-mbps-4k-uhd-h264.mkv and i have a pretty average system.
- Feel free to run this through any anti-virus you want, the .exe files are for python scripts, browser integration and imdb lookup.
I have made profiles for these different source files:
- [4K_MKV_HEVC]
- [4K_MKV]
- [4K_WMV]
- [4K_M2TS]
- [4K_MP4]
- [1080/720p_MKV_HEVC]
- [1080/720p_MKV]
- [1080/720p_WMV]
- [1080/720p_M2TS]
- [1080/720p_MP4]
- [protocol.https] (For youtube, install chrome plugin play with mpv to be able to run youtube with smoothness also, it's really nice!).
The one thing that enables the smoothness with SVP is this row in mpv.conf:
vf=@SVP:vapoursynth="~~/vs_svp_full_smooth.py":buffered-frames=4:concurrent-frames=64,format=colorlevels=full:colormatrix=auto:gamma=gamma2.2:primaries=bt.709
I use buffered-frames=4:concurrent-frames=64 for 1080p sources and less than that for 4k sources. Try 2:32 or 2:16.
The line in mpv.conf: glsl-shaders = "~~/shaders/noise_static_luma.hook;~~/shaders/noise_static_chroma.hook;~~/shaders/Anime4K_Denoise_Heavy_CNN_L_040.glsl;~~/shaders/FSRCNNX_x2_8-0-4-1.glsl;~~/shaders/KrigBilateral.glsl;~~/shaders/SSimSuperRes.glsl;~~/shaders/adaptive-sharpen_x0.2.glsl;~~/shaders/cas_rgb_x0.8.glsl"
Is the default shaders i have running, edit this if you like. KrigBilateral.glsl uses a lot of resources.
I run all the sources with no hardware decoding (hwdec=no). This was always causing problems. Under each profile in mpv.conf you can test for yourself. With an Nvidia card you can try:
[1080/720p_MKV]
profile-desc=cond:(get("video-params/h", -math.huge)>100 and get("video-params/h", math.huge)<1081 and string.find(get("filename", ""), "hevc")==nil and string.find(get("filename", ""), "mkv")~=nil and get("videoarams/pixelformat")~="yuv420p10" and get("video-params/pixelformat")~="yuv420p10le")
osd-playing-msg = 'AutoProfile: 1080/720p_MKV: ${media-title}'
log-file="1080_720p_MKV.txt"
hwdec=nvdec-copy
hwdec-codecs=all
gpu-api=auto
vf=@SVP:vapoursynth="~~/vs_svp_full_smooth.py":buffered-frames=4:concurrent-frames=64,format=colorlevels=full:colormatrix=auto:gamma=gamma2.2:primaries=bt.709
Have had some success with this on mp4 encodes:
[1080/720p_MP4]
profile-desc=cond:(get("video-params/h", -math.huge)>100 and get("video-params/h", math.huge)<1081 and string.find(get("filename", ""), "mp4")~=nil)
osd-playing-msg = 'AutoProfile: 1080/720p_MP4: ${media-title}'
log-file="1080_720p_MP4.txt"
hwdec=d3d11va-copy
hwdec-codecs=all
gpu-api=auto
vf=@SVP:vapoursynth="~~/vs_svp_full_smooth.py":buffered-frames=2:concurrent-frames=32,format=colorlevels=full:colormatrix=auto:gamma=gamma2.2:primaries=bt.709
Change the color, brightness and gamma in the mpv.conf to your preferences.This pack comes with a right click hud gui, just right click the movie when it's playing. You can also lookup moves and episoden on youtube just by right clicking.
read the input.conf for all the keybinds and to customize the hud gui. The vs_svp_full_smooth.py and vs_svp_full_less_halo.py files sorts out the svp interpolation. Don't change anything unless you have a good understanding and a need to do changes.
RTFM = https://www.svp-team.com/wiki/Manual:SVPflow and the forum on the same address for anything SVP related.
Hopefully this works for you, if not you at least if you go through all the files you can get tips on how to make it work with your setup. Not possible to make one pack that works for everyone :)The pack comes with the latest mpv.exe and most scripts really recent, should be no need to update in a long while.
Some troubleshooting tips:
1) Try running without shaders, they do take some resources that you might have:In mpv.conf you can start by testing to comment out the line for the shaders also, its line 132 starting with glsl-shaders = "~~/shaders/noise_static_luma.hook;~~/Just put a # in front of it.
2) Check in the log file that's created in the folder from where you are playing you'r movie, it should be a 2 .txt files there with a general logfile for everything up down to just before the profile is selected, and the log file for that profile. So if you are playing a normal 1080p mkv movie they are called: "mpv.log.txt (just realised that's a typo, would be quite enough just with mpv.txt haha) and "1080_720p_MKV.txt"
3) Don't use python.exe version higher than 3.8.6 (the one included in the folder). If you run cmd.exe and then type: where python the first line after should be the folder where you have mpv.exe. Otherwise check again for your environment variables under PATH. The highest prio in the list should be the folder where mpv.exe is.
Cheers!
Do you have any updated version of this config?
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/mpv/comment...