New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for MPC-BE as a player #9
Comments
It comes down to the question if it can be controlled remotely well enough to fulfill following tasks:
Now that sourceforge is back up I can take a look at the source code to find out if it is possible. |
Its source code is located at https://sourceforge.net/projects/mpcbe/. |
Any news regarding this suggestion? |
I looked into the source code and found some important stuff and think it is possible. I will try to implement it and will provide a plugin first to see if it works. One minor problem I found so far is the selection of the audio device (MPC-BE seems to use a custom ordering of audio devices). As soon as I have a plugin ready I will upload it here. |
That's good to know. I'm looking forward to trying out the plugin and letting you know if it works or not. |
How is it coming along? |
It's done when it's done. Be patient. |
Okay. I hope that it is going well. |
It sure is taking a while. |
It is not a simple task, and many little problems show up (and I had plenty other stuff to do this week).
What is not working so far:
The next update will contain some necessary changes for the MPC plugin. The plugin will be relased together with the update. |
EDIT: Would adding the /new command line parameter fix the first issue that you're having with the plugin or not? |
I hope to release the update and plugin for testing this weekend. |
Maybe the code shown on the linked page can be compiled into an exe and used by StreamBuffRe to rename the window(s) used by MPC-BE: There's also https://ritchielawrence.github.io/cmdow/ which supports wildcards. So, the command would be cmdow MPC-BE* /ren Player 0 (or whatever you want). |
I do know that this is possible, but manipulating foreign windows is everything but good practice. I will keep it mind though. |
Its the weekend now. I hope that the plugin making is going well. |
I'm aware of that... First ensure you are on version 0.5.8.1 . I uploaded the MPCPlayer.dll there for testing. The readme will tell you how to use the plugin. It has yet many flaws, if you find more add them in this issue only. Only tested with windows 7 so far. Known problems so far:
Happy testing |
I tried it with https://www.twitch.tv/flarerdb at 720p. MPC-BE stated "Failed to render the file". Also, its expecting its file name to be mpc-be.exe. It should also accept its name to be mpc-be64.exe. |
I will allow any .exe file with the next release of the plugin, cause MPC-HC should be fully compatible as well. The problem with the stream might be caused by the 64bit version and/or windows 10. It works fine with windows 7 and the 32bit version 1.5.1.2985 for me. Problems with any other streams or VODs, including youtube and other sites? |
|
12 hours, okay that is quite a big one. I checked it with MPC-BE directly (using the URL to the VODs .m3u8 file) and it crashed two times and one time the rendered failed to initialized. Hence this is a MPC-BE specific problem => can't fix. The reason it loads so slow is the same problem as in #2 , MPC-BE reads the segments too slow, preventing StreamBuffRe from loading faster. The slow loading is the same MPC-BE specific problem as above. The quality change occurs when a quality is not working (caused also by the MPC-BE problem above), hence this behavior is desired (You can change it at Settings -> All settings -> Main settings -> "if stream quality not available, automatically try next one" ). Contact the MPV-BE developers to fix the issue with very, very long streams. |
Here's the errors I am getting in the log when I uncheck the "Automatically try next quality" option: 1:29:58 PM - CommandQueue executing command: AddPlaylistEntries |
Also, https://hooktube.com/watch?v=d_GIhwOvXL4 is freezing/losing audio. |
Hmm, The latest version of MPC-HC (which is available at https://github.com/clsid2/mpc-hc/releases) works better with StreamBuffRe than the latest nightly of MPC-BE. EDIT: The only issue is that Twitch VODs aren't seekable when using the latest version of MPC-HC via the plugin you provided. |
This is not an error but the desired behavior: The quality is not working and no other should be tested, thus the stream can't be played. Always provide the version of the used players. In order to test if the problem is really caused by StreamBuffRe, right clicking on an playlistentry and selecting "show info" and get the direct video URL there. If the player can't handle the videos, it's not StreamBuffRes problem. |
It was my Internet Connection. It was having high ping yesterday. |
One thing I noticed about MPC-HC is that the playback of a Twitch Stream (Calebhart42) was being jerky today. |
Did you figure out how to fix any of the issues that it is having? |
Only post something here if you are sure the problem is on StreamBuffRe and not MPCs side. So far I figured the last one out and fixed it:
The others so far:
Problems on MPC side, can't fix.
This can only be handled if MPCs slave mode is used which I haven't yet get to work.
Will do the hack.
The actual reason is the web control of MPC is not responding (sometimes it works if you wait a bit, but in the end the only real fix is the usage of the slave mode)
Should be easy, just not done yet.
I don't see any way to handle this. The audio device can be changed when using the MPC Audio renderer, but I don't see a way to change it via remote control or starting parameter. |
I don't think the developers of MPC-BE care about supporting a 3rd party program's plugin. You'll need to post on the forum post regarding MPC-BE at https://forum.doom9.org/showthread.php?t=165890&page=258 yourself if you want to see the issues fixed. |
I don't care about 3rd party software either. If the player can't do stuff so it be. The main player is and will be MPV anyway. I won't invest too much time into this, it is a nice feature but nothing necessary. |
Here's what one of the developers recently wrote in its forum post: "Official ways to control the player:
If something of this does not work correctly, then tell me exactly what. |
I tried LAV Splitter Source with MPC-BE. It works every now and then. Sometimes, it plays the stream that I have playing in another player window when I try to play another stream in the second window while the first stream is opening. |
Right now I'm only using the web interface. I guess the MPCAPI_COMMAND interface is the slave mode. I will see if I can get it to work. The problems with MPC not playing some streams correctly has nothing to do with StreamBuffRe itself thus not belong here. As I stated before, ensure the problem is not caused by MPC by using the direct stream address. |
|
Any news? EDIT: I tried loading https://video-weaver.atl01.hls.ttvnw.net/v1/playlist/CtkCJIJRuVBZeuBnLntjJl8x3hyvOZzGbVJ2mmLzZPMIt5DROVVe1I2QQ52WYfBu9Y6ucwJRKkXBTdxNO_5_NebMy5_uJRWglg8hOj0g3bN842G33CfejBBr8tx9uy_ocksXSumPOFjqZeGbrpEP3rUqsvdERL4iNb4cnQak_fJId5UfRy04P3coczHXSWljAhGQ_rdaw6SAzm632XDUsX2MNEfFRciYw0f7R89O-vJjZfyQxIe_emnb3HftQe01Qom7ou9Nu7i8MQlEGETQDg1fXGzI13NCOVWzpz6x6Tv28rrPk6sBfB3DGdS2sKL2tDlxS64dT74PgxDnMg6RLqKgOdzVQhVG72Zkl4knhs0LktiVaq4kiEOw3FdpW_T-r7Gk6zj9C0ql_wCHNOazAHbI4v3ihY-vZ3dQRCY3cKWb0k6xrzxhNCCkO0Tvn3OK1ZF8zyoh-0kcM69REhDROOeTQAOoTcIy8oS87YJ4GgzScyAmz5gmlRodu1I.m3u8 in MPC-BE and it loaded quickly. So, I am thinking that it is an issue with StreamBuffRe. Also, I noticed that when loading TheGreatGQ's stream (http://www.twitch.tv/thegreatgq) with MPC-BE as the player, the connection to the URL I mentioned only lasts 1-4 seconds before stopping. |
I finally figured out the problem with slave mode and can finally use it. I hope this helps solving most of the problems concerning remote controlling. I hope to release a new version of the plugin soon and if it works ok, it will be merged into original StreamBuffRe. The direct link is not working ( send the unresolved link instead ). Test the video and stream with MPV. If MPV handles it correctly this problem is either on MPC side or still #2 . |
|
|
|
An SSD is even better because it will make start the programs on it faster. But HDD or SSD doesn't make the create difference here. |
Have you tested the changes that you made yet? |
Ok, I tested the slave mode in depth with MPC-BE and MPC-HC, the results:
Conclusion: I want to use slave mode and webinterface at the same time to overcome the downsides of each one. The current problem: The webinterface works a short time and then refuses the connection. I'm unsure of the cause, but I guess it's on StreamBuffRes side (Calling 'http://localhost:port/variables.html' every 100 milliseconds might be a bit too much for MPC-HC or StreamBuffRe ). I will test other versions of MPC-HC to see if the problem with the slave modes missing current position and the webinterface also occur. |
I am home from Arizona now. I hope that the new build of the plugin is available for downloading soon. |
Any more news? |
I still hope to make the remote control for MPC-HC more stable and some more testing is necessary, but I will release a new version of StreamBuffRe this weekend with the current MPC plugin included. As far as I can see the problem of having multiple MPC instances running but being unable to correctly switch streams (if the new stream has separate audio and video track) while running can't be fixed due to limitations of MPCs remote control interfaces. |
|
More info will be given here after the update is live. |
Please remove the plugin dll from your plugins folder before updating StreamBuffRe, I will add more info here tomorrow. |
Interesting, MPC-BE is working now. I've just noticed it timing out when watching a stream via MPC-BE when MPC-HC didn't. Maybe that's still an issue with StreamBuffRe itself. |
As stated before I guess it is related to #2. Anyway there won't be any pure MPC-BE related fixes. Due to MPC-HC being supported now, Please create new issues for found bugs concerning MPC-HC. |
It would be nice if it supported MPC-BE (https://www.videohelp.com/software/MPC-BE) as a player. You can add any questions you have regarding it since I'll post a link to this issue in the Doom9 Forums to see if anyone can help get it supported.
The text was updated successfully, but these errors were encountered: