clsid2 / mpc-hc

Media Player Classic
GNU General Public License v3.0
11.18k stars 494 forks source link

Takes a while for play a file (mp3 or mp4) after of start the OS #18

Closed hellishvictor closed 6 years ago

hellishvictor commented 6 years ago

Hi

Most of the time, after of start the operative system (Win7 x64) and play a file from explorer (with double-click), it hangs (it doesn't respond) for several seconds, and then it play it. I notice it at least since 1.7.13, and a couple of weeks ago I updated to the last version, but still the bug is there.

Cheers

clsid2 commented 6 years ago

That is not a bug in MPC-HC. It is most likely caused by some security software on your computer (antivirus/antimalware). Those sometimes cause delays when first starting an application. Try disabling such tools as a test, and if that solves it add the MPC-HC folder to the exclusion list of those tools.

hellishvictor commented 6 years ago

I don't have none of those installed, its a laptop which I use wiithout connection to internet, it's only for music/movies, so no viruses or any other threats.

clsid2 commented 6 years ago

This may help: Options > Player > Disable Open Discs menu

Another common cause is bad sound or video drivers. https://griffeltavla.wordpress.com/2014/02/10/resolved-mpc-hc-taking-10-seconds-to-launch-a-clip/

hellishvictor commented 6 years ago

So far none of those worked, I use Realtek drivers btw. I'd recorded the issue with my smartphone, here is the link: https://youtu.be/jQoN-fHjt_8 I think this started to happen since I changed to MPC-HC x86 sometime ago, but not sure now.

clsid2 commented 6 years ago

As a test you can try this: Options > Playback > Output > Audio Renderer > Null (Anything)

If that works (sound will be mute) then it is certainly a sound related issue.

Why are you using x86? The x64 version has better performance. If you are using ReClock, then try without that.

vlakoff commented 6 years ago

Just FYI, I previously had a similar issue: audio player foobar2000 was hanging when opening some web radios, on Windows freshly booted. The issue suddenly disappeared some day (not by updating foobar2000). I don't know what or where the actual fix was.

What's surprising with your case is that it's happening on a local file. These kind of issues often happen because of network. By any chance, is the file loaded over some network share, LAN, NAS?

Otherwise, I highly suspect some bootup eager process, eating your CPU or your disk I/O. Try disabling antivirus, etc. Also, use Task Manager and Process Monitor to check if there is a resource hog.

hellishvictor commented 6 years ago

Sorry, I mean sinceMPC-HC x86

As a test you can try this: Options > Playback > Output > Audio Renderer > Null (Anything)

If that works (sound will be mute) then it is certainly a sound related issue.

Why are you using x86? The x64 version has better performance. If you are using ReClock, then try without that.

I'm using the x64 version, I mean since I changed the x86 for the x64, I typed that wrong. However, I finally solved it! Here is how: using the Codec Tweak Tool, go to "Preferred Splitters". I noticed that by default, most of the associations were to "Use merit", so I change them to "LAV Splitter (recommended)". Awesome see it lauch INSTANTLY! Thanks to clsid2 and vlakoff for your help, you're amazing !

clsid2 commented 6 years ago

In that case you may have unwanted third party filters installed. You can get a list with: Codec Tweak Tool > Generate Log

You should also re-install your codec pack, since those "recommended" settings is what it uses by default. Some other program must have messed things up.

hellishvictor commented 6 years ago

Ok, cheers from Canary Islands (IsPain)!