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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#4521 | Link | |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
|
|
![]() |
![]() |
![]() |
#4522 | Link | |
Registered User
Join Date: Apr 2008
Posts: 58
|
Quote:
You mentioned that it would be easy to remedy this inconvenience with a player extension. Is it possible for someone with basic, but inexperienced understanding of scripting such as myself be able to create an extension that enables automatic window focus upon loading a video file? |
|
![]() |
![]() |
![]() |
#4523 | Link | |
Registered User
Join Date: Jun 2015
Posts: 10
|
Quote:
|
|
![]() |
![]() |
![]() |
#4525 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,373
|
No, MPDN can only use its own renderer.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#4526 | Link | |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
The only thing I haven't been able to open source is the core player itself, mainly due to the strict copyright laws here where I live. That said, it's unlikely madshi would ever make NGU compatible with open source licensing, even if we somehow know how it's done. |
|
![]() |
![]() |
![]() |
#4527 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
I really like MPDN and especially the open render scripts, so please don't stone me to death.
![]() However, there's also mpv, which is 100% open source, cross platform and constantly developing at a fast pace. Sure MPDN still has its unique features, but I think it would be more helpful for more users to directly offer shaders, knowledge etc. to the mpv project in one or the other way (even though open source scene atmosphere might be a bit difficult, but dunno). |
![]() |
![]() |
![]() |
#4529 | Link | ||
Registered User
Join Date: Dec 2013
Posts: 753
|
Quote:
Anyway, here's a rough guid to what you'd need to do. If you're unsure about anything you can probably google the answer, or if not come back and ask in this thread. To start I'd recommend basically copying the GoTo script. Just copy that file somewhere and open it up in your favorite text editor. That extension already checks when a new file opens in order to enable / disable its item in the menu (try to figure out how it does this), so we can just reuse that to do something else (like bring the window to the front). The rest we don't need, you can remove everything but the "Descriptor" and the "Initialize", "Destroy" and "PlayerStateChanged" methods. Then you need to fill out the descriptor with new information (most of this is optional, but you do need to change the GUID to another one, otherwise MPDN can't tell it apart from the GoTo extension). And be sure to rename the GoTO class and anything else that says "GoTo" to something more sensible. After that bit of bookkeeping is over you can change the PlayerStateChanged method to actually bring the window into focus. You'll probably need to start with checking if the player started playing, using something like "if (e.NewState == PlayerState.Playing)". And then bring the window to the front. Some quick googling suggests calling "Activate()" on the window form (which is "Player.ActiveForm"), but not everyone got this to work apparently. There are a lot of other suggestions on google or stackoverflow on how to get window to the front in C# so you should probably try one of those if the simple method doesn't work. After that you can copy the file containing your extension to MPDN / Extensions and it should work (although don't be too disheartened if it doesn't, try the debugging dialog and see if you can figure out what's wrong). Best of luck! Quote:
It's possible there's a more advanced API somewhere that I'm not aware of. |
||
![]() |
![]() |
![]() |
#4530 | Link |
_
Join Date: May 2008
Location: France
Posts: 701
|
Exactly: split/fork as soon as possible, in order to lose potential users, instead of trying to have one unique project, easier for newcomers. Total Linux Fork users < 1%. Sorry for this grievance.
I don't know why you're still mad at Madshi. Sometimes you don't want someone to tell you what to do, you want to do it your way, so closed source is an option. Or another example, imagine some company wanna buy his NGU algorithm. You have billion reasons to want closed-source project, the same as open-source. As good as your player is, whatever the reasons, it is still closed-source, and nobody will blame you for that. Ahah it's fun, it was a long time since we had a discussion about Open/Closed Source. ![]() I hope I didn't piss you off. I let you have the final word in the end. @Shiandow: maybe you could ask a request on MPV tracker. I'm sure they would be interested in a "shader coder" (sorry if it's an approximate description). |
![]() |
![]() |
![]() |
#4531 | Link |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
I'm not sure if Zachs is mad at me. FWIW, there was a time when I wasn't very friendly to him, and I kinda regret that. Sadly, in forums one often writes things without really thinking it through, and then it's hard to take it back, because it's all "written in stone", so to say.
|
![]() |
![]() |
![]() |
#4532 | Link |
Registered User
Join Date: Oct 2012
Location: Akron, OH
Posts: 491
|
There are pluses and minuses to both open and closed source applications (Richard Stallman notwithstanding). Microsoft, for example, recently has been open sourcing a lot of their work, but you're not going to get the source code for Windows or Office anytime soon. Too many salaried people working on those products.
madshi, bless him, has been sharing the fruits of his labor for many years now for free--and in fact won't take donations. For my part, I wouldn't want madVR to be a community project. It's nice to have one person in charge, especially one who takes as much user feedback as madshi does. I look forward to the day when I can give him my money. There's plenty of room for madVR with its large base of supported media players, MPDN, mpv, and any other innovative video solution that comes along. The real shame is that most people still use Windows Media Player or VLC because they don't know or care that there are superior alternatives. |
![]() |
![]() |
![]() |
#4533 | Link | |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Quote:
But there also is e.g. NNEDI3 available as a usershader, doesn't seem like GLSL is a showstopper (I gues there is nothing with OGL without annoyance ![]() Like I said, MPDN still has its very own unique features, which is totally fine and great. It's just that, afterall, it's only about watching videos. Refining scaling quality etc. is cool, but it's just annoying how hard it is to use MPDN or madVR (+ players) for e.g. online streaming. It just doesn't meet my media habits anymore. With mpv + youtube-dl I basically can watch anything which is available for free by just pointing the URL to the player (YouTube, YouTube live, YouTube HDR, general HLS, files located online...). |
|
![]() |
![]() |
![]() |
#4534 | Link |
Troubleshooter
Join Date: Feb 2014
Posts: 339
|
Specified argument was out of the range of valid values.
After updating to the most recent version I'm getting the following error message:
=================================== Specified argument was out of the range of valid values. (MediaPlayerDotNet) ------------------------------ Error Type = System.ArgumentOutOfRangeException Error Message = Specified argument was out of the range of valid values. Error Source = MediaPlayerDotNet Error Site = Mpdn.IScaler C(Mpdn.IScaler) Error occurred = at a.C.C(IScaler ) at a.C.b(IScaler ) at Mpdn.D3D9VideoRenderer.VideoRenderer.ag() at Mpdn.D3D9VideoRenderer.VideoRenderer.aG() at Mpdn.D3D9VideoRenderer.VideoRenderer.e(Boolean ) at Mpdn.D3D9VideoRenderer.VideoRenderer.A(String , FrameBufferInputFormat , Int32 , Int32 , Int32 , Int32 , InterlaceFlags , Double ) at B.M.A(String , FrameBufferInputFormat , Int32 , Int32 , YuvColorimetric , InterlaceFlags , PointF ) at B.M.A(IMedia ) at MediaPlayerDotNet.MainForm.A(IMedia , Boolean , Boolean , Boolean ) at MediaPlayerDotNet.MainForm.OpenMedia(IMedia , Boolean , Boolean , Boolean , Boolean ) at MediaPlayerDotNet.MainForm.OpenMedia(String , Boolean , Boolean , Boolean , Boolean ) at MediaPlayerDotNet.MainForm.P(Object , EventArgs ) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) OS Version = Microsoft Windows NT 6.3.9600.0 Total Physical Memory = 15.9 GB Available Physical Memory = 11.2 GB Date Time = 9/30/2017 11:50:13 AM I've checked and applied the one Windows Update I didn't have, but even after applying that and restarting the computer I still get the error.
__________________
System specs: Sager NP9150 SE with i7-3630QM 2.40GHz, 16 GB RAM, 64-bit Windows 10 Pro, NVidia GTX 680M/Intel 4000 HD optimus dual GPU system. Video viewed on LG notebook screen and LG 3D passive TV. |
![]() |
![]() |
![]() |
#4535 | Link | ||
Registered User
Join Date: Dec 2013
Posts: 753
|
Quote:
The only reason it's unfortunate that they use GLSL (although portability kind of forced that decision on them) is that this means you can't just automatically convert MPDN's renderchains into usershaders. Quote:
For what it's worth, I have my old player extension that downloads a stream using youtube-dl and loads it into MPDN. I didn't work on it much because I didn't think it was too useful when there's a nice DirectShow filter for youtube urls. But if there's a demand for it I could see if I could polish it up a bit. |
||
![]() |
![]() |
![]() |
#4536 | Link | |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
It doesn't work reliably for me with 4k 60fps video, playback often stalls after some time because it's not streaming fast enough.
So far I can only achieve stable playback with mpv + youtube-dl (and browsers, of course). Quote:
![]() It has several advantages like expanding general HSL functionality, special media site functionality or allowing streaming of YouTube live. I'd think if more users knew about this, they'd find it quite useful. Though I'm not sure if some basic youtube-dl integration alone is the holy grail. I also tried piping youtube-dl's output to MPC HC and it's still limited in terms of e.g. seeking compared to mpv. |
|
![]() |
![]() |
![]() |
#4538 | Link |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
You drop its executable into mpv's folder (or install it as a dependency on Linux) and it's automatically used when opening URLs with mpv.
It's not used for the actual streaming but for source discovery. At least that's my conclusion from seeing its process closing after playback start. |
![]() |
![]() |
![]() |
#4539 | Link | |
Registered User
Join Date: Mar 2016
Posts: 3
|
Quote:
After downgrading the player from 2.49 to 2.48 (still using 1.31 renderscripts) the error goes away and everything is working as before. So even if this error / bug is somehow occuring due to Windows malfunctioning, some code change inbetween 2.48 and 2.49 seems to trigger it. Regards |
|
![]() |
![]() |
![]() |
#4540 | Link | |
Registered User
Join Date: Sep 2017
Location: Indonesia
Posts: 3
|
Quote:
![]() I'm on win 7 64. go back to 2.48 for now Last edited by mringis; 5th October 2017 at 14:27. |
|
![]() |
![]() |
![]() |
Tags |
direct3d, mpdn, nnedi3, opencl, reclock |
Thread Tools | Search this Thread |
Display Modes | |
|
|