Jump to content

Inconsistent resume with MPC-HC


zombieagain

Recommended Posts

zombieagain

Hi,

 

sorry if this has already been discussed, but I've been trying to use MPC-HC as external player in the past couple of days, and it looks awesome, but I found that the resume function works inconsistently for me.

 

For some files it seems to work most of the time and for some other files it rarely works.

 

This is an example log file of when the issue happens:

2014-02-06 11:44:21.4140,Info,,Starting command line C:\Program Files (x86)\MPC-HC\mpc-hc.exe "H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi" /play /close /fullscreen /start 576018,57,Worker thread for Play Action
2014-02-06 11:44:21.4280,Debug,,Minimizing Windows Media Center,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:21.9136,Info,,Received web socket message: UserDataChanged,69,
2014-02-06 11:44:23.4361,Error,,Error connecting to MPC-HC web interface at: http://localhost:13579/status.html ( Exception.  Type=System.NotSupportedException Msg=WebClient does not support concurrent I/O operations. Src=System Method=ClearWebClientState Line=0 Col=0 [n] StackTrace= [n]    at System.Net.WebClient.ClearWebClientState() [n]    at System.Net.WebClient.DownloadStringAsync(Uri address,, Object userToken) [n]    at MediaBrowser.Library.Playables.MpcHc.MpcHcPlaybackController.MonitorStatus() ),62,
2014-02-06 11:44:23.4421,Debug,,Response received from MPC-HC web interface: OnStatus("Il ladro di merendine-S01E01-SD DVD.avi",, "Playing",, 577185,, "00:09:37",, 6319040,, "01:45:19",, 0,, 100,, "H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi"),76,
2014-02-06 11:44:23.4421,Debug,,File: H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi Position 5771850000 Status playing,76,
2014-02-06 11:44:23.4421,Debug,,Sending Http Post to http://192.168.1.144:8096/mediabrowser/Users/57cfb42f-2e60-ccd7-e20e-216cc9565011/PlayingItems/288a93cb-c2d4-6155-3676-ab0628e764da/Progress?positionTicks=5771850000&isPaused=False&isMuted=False&format=Json,63,Worker thread for BasePlaybackController OnProgress
2014-02-06 11:44:28.4451,Debug,,Response received from MPC-HC web interface: OnStatus("Il ladro di merendine-S01E01-SD DVD.avi",, "Playing",, 582202,, "00:09:42",, 6319040,, "01:45:19",, 0,, 100,, "H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi"),76,
2014-02-06 11:44:28.4456,Debug,,File: H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi Position 5822020000 Status playing,76,
2014-02-06 11:44:28.4456,Debug,,Sending Http Post to http://192.168.1.144:8096/mediabrowser/Users/57cfb42f-2e60-ccd7-e20e-216cc9565011/PlayingItems/288a93cb-c2d4-6155-3676-ab0628e764da/Progress?positionTicks=5822020000&isPaused=False&isMuted=False&format=Json,63,Worker thread for BasePlaybackController OnProgress
2014-02-06 11:44:33.4730,Debug,,Response received from MPC-HC web interface: OnStatus("Il ladro di merendine-S01E01-SD DVD.avi",, "N/A",, 0,, "00:00:00",, 0,, "00:00:00",, 0,, 100,, "H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi"),34,
2014-02-06 11:44:33.4730,Debug,,File: H:\unapproved\Il Commissario Montalbano\Season 01\Il ladro di merendine-S01E01-SD DVD.avi Position 0 Status n/a,34,
2014-02-06 11:44:33.8772,Debug,,Displaying Splash Screen,60,Worker thread for Ext Splash Show
2014-02-06 11:44:33.8782,Debug,,MPC-HC playback finished,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8782,Debug,,Reporting stopped to server for 1 - Il ladro di merendine,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8782,Debug,,Sending Http Delete to http://192.168.1.144:8096/mediabrowser/Users/57cfb42f-2e60-ccd7-e20e-216cc9565011/PlayingItems/288a93cb-c2d4-6155-3676-ab0628e764da?positionTicks=0,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8812,Info,,Sending Http Get to http://192.168.1.144:8096/mediabrowser/Users/57cfb42f-2e60-ccd7-e20e-216cc9565011/Items/288a93cb-c2d4-6155-3676-ab0628e764da?format=Json,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8862,Debug,,Setting new status on 1 - Il ladro di merendine with parent of Season 01,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8872,Debug,,Firing Application.PlaybackFinished for: 1 - Il ladro di merendine,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8872,Debug,,Updating Resume status...,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:33.8872,Debug,,All post-playback actions have completed.,59,Worker thread for Ext Player Mgmt
2014-02-06 11:44:34.3821,Info,,Received web socket message: UserDataChanged,82,
 

Basically it looks like when I exit the application, the mpc web interface reports back position 0 and status N/A. I tried to just stop the video instead of exiting the application directly and the only things that changes is that the status reported by the web interface is "stopped" instead of N/A.

The other thing I observed is that if I resume a video and then immediately press stop (mapped to exit application through the eventghost MPC plugin) a lot of time I lose the resume point and the log looks exactly the same.

 

Is there any setting in MPC that can help the issue? By the way, I did have some issue configuring the external player. I could not have the MBC configurator successfully change the settings of MPC until I checked the option in MPC to save the settings into a INI file.

 

Thanks!

Link to comment
Share on other sites

WWWestern

1st, for saving the settings MPC-HC should be "run as administrator".

2nd, for handling the resuming etc.run MPC-HC with English (US) interface.

Link to comment
Share on other sites

As WWW says, be sure you are running MPC in English, but it sounds like you are based on the statuses you reported.

 

Also, are you sure you are playing to a point that is resumable?  Our logic will only resume if you are within the configured Min and Max Resume % values on the server.

Link to comment
Share on other sites

zombieagain

Hi ebr. Yes, I'm using MPC in English, and I'm playing to a point that should be resumable. For example this morning I started a movie through the server web interface, then I stopped at a resumable point. I went to MBC and I could resume the movie from the same point where I was on the server, but then I stopped the movie and the resume button disappeared. 

Link to comment
Share on other sites

zombieagain

Thanks ebr, I understand. The interesting part is that MPC also reports the playing status as "N/A". I don't have enough experience with MPC to understand what that means, but maybe the plugin could filter out the "N/A" and "stopped" statuses from the web interface.

 

In general, this seems like a MPC web interface issue. I'll try another player version (MPC-BE should work too, I guess) or to reinstall the player.

 

Can MBT be used as an external player instead? My needs are for a player with great picture quality and that can allow me to switch audio streams and subtitle, and allows me to change the subtitles delay with mapped remote control buttons and MPC seemed to fit the bill...

Link to comment
Share on other sites

I believe N/A is what is reported when you close the program without stopping so we need to interpret that as well.

 

MBT cannot be used as an external player at this point.

Link to comment
Share on other sites

mranim8or

I'm using MPC-HC without trouble, and the Resume function works. I'm using the Subdued skin (if that matters) and the latest version of MBC.  If you have specific questions about my configuration (like settings in MPC-HC), let me know. 

 

I did notice that you have to fast forward to a few minutes into the movie and let it play for 20 seconds or so before Resume will be available.
 

 

Also, in my case under "Options" \ Player both Remember DVD position and Remember File Position are unchecked. 

Link to comment
Share on other sites

I did notice that you have to fast forward to a few minutes into the movie and let it play for 20 seconds or so before Resume will be available.

 

This is by design in the whole system and configurable on the server.

 

Also, in my case under "Options" \ Player both Remember DVD position and Remember File Position are unchecked. 

 

That sounds like it could be a good thing to check. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...