Log in

View Full Version : mpv.net media player


Pages : 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15

stax76
26th May 2020, 21:16
Good to know about this issue.

In VS Code:

Text Editor > Files > EOL

OAKside
22nd June 2020, 00:44
Finally got around to giving MPV.NET a serious try, and... just wow. Thank you, Stax. :thanks:

Not sure why I hesitated; I think I remember some settings issues for me long ago, early on. And I thought MPV was great as-is. Now I regret not moving to MPV.NET earlier. It is amazing, incredibly (infinitely?) customizable, and now with config editor. Brilliant, beautiful work. And very much appreciated, esp. as something used daily.

Have loved StaxRip for years, still the best of its kind. Recently found MediaInfo.NET, super helpful and a massive improvement over vanilla. Now using MPV.NET as main video player, again giant leap over default. You need more donations. Again, thank you for this work, and anyone else helping out or supporting these apps.

stax76
23rd June 2020, 02:06
Thank you OAKside for the fantastic feedback. :thanks:


5.4.8.2 Beta


Changelog:

https://github.com/stax76/mpv.net/blob/master/Changelog.md


Download:

https://github.com/stax76/mpv.net/blob/master/Manual.md#beta

Ejziponken
20th July 2020, 09:41
Is it not possible to change audio device?

pirlouy
20th July 2020, 17:19
https://mpv.io/manual/master/#audio
--audio-device=<name>

-log-
23rd July 2020, 19:10
Is it possible for mpv.net to start on the display that it was called from? For example, if I open a video from a file explorer on display 2, the player should also open on display 2 instead of defaulting to the primary display. Both normal mpv and mpc can do this.

stax76
25th July 2020, 10:44
@-log-

It will be supported in the next beta build.

stax76
25th July 2020, 12:00
5.4.8.3 Beta


Support Wheel_Left and Wheel_Right. (arnesacnussem)
Default screen was changed from primary to OS default to start from the same screen where the File Explorer window is located.
When mpv.net was started maximized and next was invoked then the window state was changed to normal instead of staying maximized.

chros
25th July 2020, 22:00
Thanks for the new beta!

From 5.4.8.2 Beta: "Menu support for BluRay title, audio and subtitle selection"

Sounds really interesting, because now I use VLC (x64 as well) for this on PC.
How does it work?

I tried in 2 ways with a UHD BD in directory (not ISO) but no menu showed up but it plays the main title straight away:
- when I drop the directory all is working fine (name of directory is shown in the title, fast opening)
- when I open the directory via right-click menu:
-- bd:// is shown in the title
-- slow opening
-- right-clicking on mpv.net window makes the player unresponsive, you can only force close the player

Thanks

stax76
26th July 2020, 03:38
Thanks for testing. I've uploaded a new beta addressing some things:

5.4.8.4 Beta


Blu-rays with dozens of titles showed all titles in the menu which was difficult to choose and extremely slow.
Blu-ray folder paths are auto detected when received from drag & drop and command line.
Cycle audio key was not working for Blu-ray.
Message asking if image is BD or DVD in case image is < 10 GB.

chros
26th July 2020, 11:48
Thanks, now it behaves the same with drag-n-drop and opening via menu (e.g. UHD BD, Transporter 3) (I use the x64 version):
- slow opening time (5-8 sec)
- bd:// is shown in the title
- main title is being played right away, no BD menus
- right-clicking on mpv.net window makes the player unresponsive, you can only force close the player

stax76
26th July 2020, 13:14
Thanks for testing. mpv does not support on screen BD menus.

Only thing I probably can do about the unresponsiveness is adding debug trace code and try to test whenever a get the chance. I've bookmarked your post but it will take time before I do anything because I'm still trying to have a coding break.

I've tested everything with about ten HD images, usually directly loading the image but also often mounting. Load times are OK, 2-4 seconds I guess, I've not really compared it with MPC-BE. Context menu shows instantly since the last beta.

GillesH
26th July 2020, 15:17
Hello,
6 years ago, I asked the question about the best Player to play an AVS script in a VB.Net solution.
http://forum.doom9.net/showthread.php?t=171241
At this time, stax76 had proposed the VB.NET Code for a DirectShow player (StaxPlayer.7z).

But, today it seems that this player is replaced by MPV.NET.
Like yesterday, do you have sample code to open an MPV.NET player in a VB.NET solution.
And of course, this is to use an AVS or AVS+ script.

Thank you in advance

stax76
26th July 2020, 16:03
Sorry it's one of those apps I did not keep the code.

GillesH
26th July 2020, 16:56
Thank you stax76.
But, maybe you have the same in C# or C++.
Afterwards, I can possibly convert.
Or if you have a link for an example in one of these languages (VB.net, C# ou C++).

stax76
26th July 2020, 17:17
There is probably enough code available, I suggest creating a dedicated thread in the dev section and describe your goal and requirements, here it's OT.

brad86
30th July 2020, 16:17
Is it possible to set dual audio output ?

VictorLS
2nd August 2020, 09:59
Good day, stax76
Many thanks for your MediaInfo, StaxRip, mpv
Can you read two pages of my HLGtoSDR shader ask thread (http://forum.doom9.org/showthread.php?t=176909) and help us (SAT amateurs) to write such ps_2_0 or ps_3_0 shader there for use in app SmartDVB?
Btw I like colors while playing HLG file in mpv before August 2019 while software decoding (therefore without mpv.conf) - beginning from August 2019 red becomes some rose on my own...

chros
8th August 2020, 18:48
But can you achieve the same tone mapping results ? That's the #1 reason I have to stick with MadVR (beta builds from AVSForum)

Do you have a pointer to initial instructions, settings I could try?

Take a look at this repo (https://github.com/chros73/mpv.net-config): only the basic settings are created (profiles, 3dlut, fps switching, etc are not).
This is "profile=hq" without debanging.
You can switch "fbo-format=rgba32f" to "fbo-format=rgba16hf", that's the default value and is way faster.

For HDR (https://mpv.io/manual/master/#options-target-trc): "--target-trc", "--target-peak", "--tone-mapping*", "--hdr-*" swithes
It's supposed to use HDR switch in the OS via Win10 API.

If you managed to figure it out let us know :)

dbezerra
12th August 2020, 00:15
Take a look at this repo (https://github.com/chros73/mpv.net-config): only the basic settings are created (profiles, 3dlut, fps switching, etc are not).
This is "profile=hq" without debanging.
You can switch "fbo-format=rgba32f" to "fbo-format=rgba16hf", that's the default value and is way faster.

For HDR (https://mpv.io/manual/master/#options-target-trc): "--target-trc", "--target-peak", "--tone-mapping*", "--hdr-*" swithes
It's supposed to use HDR switch in the OS via Win10 API.

If you managed to figure it out let us know :)

Thanks!

sarsaK
14th August 2020, 16:54
dear stax76
I appreciate your work and follow the subject closely. I like the image, especially HDR tone mapping. I think you will go further. request: in info (T) do we have the opportunity to see scala, dscala, cscala and converted resolution information currently used?

sarsaK
21st August 2020, 09:51
Hello friends, can we make arrangements for the automatic program according to the profile configuration in the works I have collected from the internet and can obtain quality images in the appendix. especially for intel, separate for amd, separate for nvidia, can we run 'automatic profiles-functions' for automatic execution in config config and vara profiles in config file. By the way, I apologize for the lack of google language translation.

https://mega.nz/file/xYwxBa5B#v1A8CQS5YdnaHSnHOBbHrHpuxSTzsv-o58Wq8SBQIdM

chros
24th August 2020, 21:41
Hello friends, can we make arrangements for the automatic program according to the profile configuration in the works I have collected from the internet and can obtain quality images in the appendix
Good idea, but can you upload it somewhere else and link it here instead? Thanks

sarsaK
31st August 2020, 10:07
Hi chros, I added the link. I have updated the working profile and shaders files and config now. I want you to test as far as I can. Replace all the files I added in C: \ Users \ xxxxx \ AppData \ Roaming \ mpv.net. It works automatically according to the resolution of the film. Press T then 2 to see the properties on the screen.

https://mega.nz/file/xYwxBa5B#v1A8CQS5YdnaHSnHOBbHrHpuxSTzsv-o58Wq8SBQIdM

chros
31st August 2020, 16:36
Thanks, I'll take a look.

toniash
1st September 2020, 07:25
How to use it?

sarsaK
1st September 2020, 10:25
from the first page https://github.com/stax76/mpv.net Download and install. when running it asks you where to store config files. Select option 1 and copy over the files I added ( C:\ Users\????? \AppData\ Roaming\mpv.net\ ). so

toniash
1st September 2020, 16:59
from the first page https://github.com/stax76/mpv.net Download and install. when running it asks you where to store config files. Select option 1 and copy over the files I added ( C:\ Users\????? \AppData\ Roaming\mpv.net\ ). so

There are some overlapping profiles, I get activated low and SD with a 704 x 392 mkv
Also in some conf lines appears "mitchellcorrected"

I'll keep on testing

the "low" profile is always activated

toniash
2nd September 2020, 12:10
Is it possible to:
1-Autopan to the the top?
2-Autochange the refresh rate to a multiple of fps?

toniash
4th September 2020, 18:14
Is it possible to:
1-Autopan to the the top?
2-Autochange the refresh rate to a multiple of fps?

nobody?

sarsaK
5th September 2020, 10:19
mpv does not need automatic refresh rate because it has its own calculation. I also researched and found this result.
https://gitlab.com/lvml/mpv-plugin-xrandr (This is currently implemented only for Unix systems which provide the
"xrandr" command to control the X server. No Windows/Mac support yet.)

skrowl
18th September 2020, 18:25
I like the look of this player but every time I close it and open a video by double clicking, it loads the window in some kind of default size rather than the last size / position I had. There appear to be settings to remember window position and size, but they don't work (or I'm using them wrong). Can anyone recommend how to do get it to ALWAYS load the window in the last position and size?

sarsaK
19th September 2020, 11:40
full screen when opened, center when double clicked. If you want a different situation, you can edit it by searching this way.
Paste the following commands into the mpv.conf file. C:\Users\xxxxxxxxx\AppData\Roaming\mpv.net\
priority = high # |belownormal|normal|abovenormal|high|realtime kilitlenme olursa normale al
#fullscreen = yes
input-ipc-server = /tmp/mpvsocket # listen for IPC on this socket
load-stats-overlay = yes # use local stats.lua
save-position-on-quit # filmin kaldığı yerden devam etmesi (aktif olursa renkler en son ayarlanan ayarda kalır)
#ontop # Oynatıcı penceresinin diğer pencerelerin üzerinde kalmasını sağlar.
#no-border # pencere başlığı yoktur no-border veya iptal için kare koy
autofit-larger = 100%x95% # resize window in case it's larger than W%xH% of the screen
input-media-keys = no # enable/disable OSX media keys
cursor-autohide = 1000 # autohide the curser after 1s
prefetch-playlist = yes
force-seekable = yes
msg-color = yes # Colors!
# Fit fps to movies
correct-pts = yes

LordX2
29th October 2020, 02:24
Hey all - I like MPV player - great, light, and the default HDR to SDR curve looks great!

I get micro-stutters (or unreported frame drops) while watching 4k .mkv files.

Frame timings are 2000 or less, screen is set to 23.976 (same as video).

I love MPV, but if I cant figure this issue out, I may not be able to use it.

Here is my config (I have tried enabling/disabling some of these, no difference):

--audio-spdif=truehd,dts-hd

--vo=gpu

--gpu-context=d3d11

--hwdec=d3d11va

--opengl-swapinterval=1

--video-sync=display-resample

--cache=yes

fs=yes

pirlouy
29th October 2020, 11:12
Hard to tell, you'll have to do your own tests, since mpv has better performance than madVR in general, if you don't have these stutters with madVR, you shouldn't have them in mpv.
First, remove all your options, to check if it's not one of these options (maybe video-sync=display-resample).

Try to force "max performance" in nVidia drivers (just temporarly, don't let it at max performance in general).
Then you'll have to check the performance of your GPU/CPU (with HWinfo for example).

LordX2
29th October 2020, 16:01
Thank you for the reply!

I only use this system for HTPC, and always have the nvidia card at max power to avoid any playback issues.

I guess I will try to disable the video sync lines and see if that clears things up.

PS - Madvr gets a dropped frame every hour due to the refresh rate of the monitor, but aside from that, plays smoothly.

sarsaK
31st October 2020, 12:57
When playing a 4k movie, add the following parameter mpv.config "vd-lavc-threads = 32"

LordX2
31st October 2020, 18:50
When playing a 4k movie, add the following parameter mpv.config "vd-lavc-threads = 32"

Thank you, I added that line, and will have to do another test.

I removed the display sync as well - so will have to test that. 1 dropped frame in an hour isnt bad if that ends up being the case.

Can MPV player do some of the refinement that madvr can? Like sharpness, or highlight recovery for hdr content being displayed in sdr?

Chroma upscaling and/or luma upscaling as well? Even for 4k content? I see the vdpaupp option in the manual for sharpness. How is this used? No --? just vdpaupp sharpen=1 in the config?

I also see options like: --scale=ewa_lanczossharp - and then there is cscale... can I use that in conjunction with scale? Just add: --cscale=ewa_lanczossharp ??

sarsaK
7th November 2020, 14:30
You can use both scale, dscale, cscale at the same time. You can add these commands to input config ( "g add sharpen 1" "G add sharpen -1") and increase or decrease them from the keyboard. If you want, you can fix it in mpv.config. "sharpen = 1.50"

Tadanobu
15th November 2020, 17:56
Is there a way to manually update mpv.net to use the lastest dav1d build ?

stax76
11th December 2020, 18:26
Is there a way to manually update mpv.net to use the lastest dav1d build ?

I'm not doing my own libmpv builds but rather use shinshiros builds, now updated to 2020-12-06, it's not a problem for users to update libmpv on their own, usually there are no breaking changes or serious bugs. I cannot tell you which dav1d version is used, you can try asking on the issue tracker of shinchiro or mpv.


libmpv builds/binaries by shinchiro:

https://sourceforge.net/projects/mpv-player-windows/files/


libmpv support:

https://github.com/mpv-player/mpv/issues


Support for shinchiros builds:

https://github.com/shinchiro/mpv-winbuild-cmake/issues


New mpv.net build:


5.4.8.5 Beta
============

- Load AviSynth DLL from environment variable AviSynthDLL
in order to support AviSynth portable mode.
- New option global-media-keys (next, previous, play/pause, stop).
- Redesigned PowerShell based setup and setup dialog, it was done
because of a bug and upcoming chocolately and winget integration.
- Redesigned auto update using different file name, using zip instead
of 7zip format now, 7zip distribution will shortly get dropped.
- Whenever there is a new startup location, the setup dialog is shown.
- libmpv updated to shinshiro 2020-12-06
- youtube-dl is no longer included, users have to install it
on their own (put it in the startup or a PATH folder).


https://1drv.ms/u/s!ArwKS_ZUR01g1ldoLA90tX9DzKTj?e=xITXbC

https://www.dropbox.com/sh/t54p9igdwvllbpl/AADKyWpaFnIhdyosxyP5d3_xa?dl=0

Greenhorn
11th December 2020, 23:53
I'm pretty sure the default mpv build system just clones the git master branch for everything it needs, so unless shinchiro is using something different (that isn't MABS, because MABS does the same thing) his libmpv is using dav1d from 2020-12-06 as well.

stax76
13th December 2020, 23:26
Maybe somebody has image drawing skills or can point me to a good tutorial.

I've paint.net installed but don't have many skills in it.

I want to get a Santa hat on top of my logo, just as mpv:

We might have Corona Christmas, but maybe we can get at least that Santa hat, right?

https://www.google.com/search?q=mpv+santa+hat

https://i.postimg.cc/Vsjj2LBr/mpv-santa.png

https://raw.githubusercontent.com/stax76/mpv.net/master/img/mpvnet.png

huhn
14th December 2020, 01:01
does the mpv logo licenses allow such a "steal"?

stax76
14th December 2020, 01:16
Next question...

stax76
24th December 2020, 11:47
Merry (and healthy) Christmas everybody!

5.4.8.6 Beta (2020-12-24)

- Santa hat shown in December. (#216)
- Filename not being always shown in title bar. (#214)
- Improved OSD message when cycling audio.
- DVD audio and subtitle track selection.
- Input key list can be shown on the command-line with --input-keylist
- Profiles can be shown on the command-line with --profile=help
- Decoders can be shown on the command-line with --ad=help and --vd=help
- Decoders can be shown in the menu under: View > Show Decoders
- Demuxers can be shown in the menu under: View > Show Demuxers
- Audio devices can be shown in the menu under: View > Show Audio Devices
- Audio devices can be shown on the command-line with --audio-device=help
- Protocols can be shown in the menu under: View > Show Protocols
- Allow mpv.net to start from different startup locations without showing the setup dialog. (#218)
- libmpv updated to shinshiro 2020-12-20

sarsaK
26th December 2020, 21:50
thanks stax (5.4.8.6 Beta (2020-12-24)
Merry Christmas everybody!

therube
6th January 2021, 18:46
MPV.NET 5.4.8, Win7 x64

i consider .srt files as "video" (.srt is included in my Everything video: filter)
(that way, in Everything, i see .srt files along with their actual associated video file. convenient, for me.
i change the video file name [through Everything], i see the associated .srt, i know i need to adjust its'
name also...)
now, i often drag "video" files from Everything into MPV
as .srt are considered as "video", in Everything, .srt also get dragged into MPV
& that breaks things, in MPV, in different ways, depending on how you go about things...


file set:

file1.avi
file2.MPEG
file3.MPEG
file3.srt
file4.MPEG
file4.srt
file5.MPEG
file5.srt
file6.AVI
file7.AVI


open MPV
'S' (Stop)
drag files (including .srt) into MPV

F8: files1..7
- playlist is complete
F9: Video: (1) Audio: (1) Sub (1) Sub: (2) Sub: (3) [Sub: (3) is shown as selected]
PLAY: file1 plays using Sub:3 (file5.srt) .srt
- incorrect


(do NOT 'S')
drag files (including .srt) into MPV (again)

F8: files1..7
- playlist is complete
F9: Video: (1) Audio: (1) Sub (1) Sub: (2) Sub: (3) [Sub: (3) is shown as selected]
- do NOT PLAY, yet -
F12: (next clip, file2, is shown)
F11: (previous clip, file1, is shown)
F9: Video: (1) Audio: (1)
- no longer is the Sub: shown
PLAY: file1 plays, no sub displays
- correct behavior


[another scenario]


(do NOT 'S')
drag ONLY files1..4 (including file3.srt - but NOT file4.srt) into MPV

F8: files1..3
- playlist is TRUNCATED
F9: Video: (1) Audio: (1)
- sub does not show up
PLAY: files1..3 play
- file4, which was truncated from the playlist, (obviously) does not play


'S'
drag ONLY files1..4 (including file3.srt) into MPV

F8: files1..4
- playlist is NOT truncated
F9: Video: (1) Audio: (1) Sub (1) [Sub: (1) is shown as selected]
PLAY: file1 plays using Sub:1 (file3.srt) .srt
- incorrect
F12:
F12:
PLAY: file3 plays using Sub:1 (file3.srt) .srt
- correct


not sure if above only applies to .srt, or if other "random" files dragged into MPV likewise affect things?

if i create a file3.xls & drag that into MPV (along with other video files), file3.xls does get added to
the playlist, but obviously does not play, instead "silently" skipped over

so what is seen can depend on actions taken, like whether an intervening 'S' (Stop) has been thrown
into the mix, or not, & also by the number of .srt that are dragged into MPV...

so is it only .srt that is "special"

.srt dragged into MPV, do not show up in the playlist (F8), but does affect what files do end up in the
playlist & what happens during file playback

therube
6th January 2021, 18:47
if you DRAG a file over MPV.NET, then, without DROPPING, hit ESC to cancel the DRAG,
MPV.NET closed (in addition to the DRAG being cancelled)
- would be nice if ONLY the DRAG were cancelled & MPV.NET left unchanged

stax76
6th January 2021, 20:31
In input.conf the ESC key is associated with the input command quit. I checked mpv, and it behaves same as mpv.net, nothing I'm interested to think about or work on.

About the subtitle issue, that post is difficult to understand, or maybe I'm tired, probably it's not written very well.