View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
XhmikosR
10th August 2010, 23:31
XhmikosR does MPC-HC crash upon load of a .FLAC file when using ffdshow and not the internal decoder for you?
No it doesn't crash but it doesn't load ffdshow audio decoder; it's using the internal FLAC decoder (low merit). IIRC it crashed if you used madFlac instead of the internal filter.
Nothing was fixed. Nothing.
I have no trouble reproducing the problem on two completely different computers, every time 100% fail with BBC HD content.
And that includes today's r2223 build.
Here is a very short sample that I capped myself (7.5 MB).
http://fono.jp/uploader/src/file_1574.rar
I can only notice one corrupted frame around #50-55 using r2225 and the internal ffmpeg decoder. I cannot test the DXVA decoder though.
DivX H.264 decoder plays it fine though with the wrong AR.
MS decoder produces garbage.
FFmpeg-mt shows a black screen only.
I cannot get ffdshow's libavcodec to play the video at all. (ffdshow r3528)
alexins
11th August 2010, 01:49
Nothing was fixed. Nothing.
I have no trouble reproducing the problem on two completely different computers, every time 100% fail with BBC HD content.
And that includes today's r2223 build.
Here is a very short sample that I capped myself (7.5 MB).
http://fono.jp/uploader/src/file_1574.rar
mpc-hc build 2225, plays the file without problems.
Tsukihime
11th August 2010, 03:04
xvidvideo.ru has updated again
Media Player Classic HomeCinema (x86/x64), svn 2225
compiled with GCC 4.5.2
Momber
11th August 2010, 06:55
mpc-hc build 2225, plays the file without problems.
No it doesn't.
One one of my PCs (XP SP3, Radeon HD2600, latest driver, VMR9 renderless) it freezes at 00:00 with a black screen. Regardless which splitter I use (including Haali).
The other PC I will test tomorrow.
http://img.pixs.ru/storage/4/9/9/samplejpg_3388181_877499.jpg
Aleksoid1978
11th August 2010, 07:05
No it doesn't.
One one of my PCs (XP SP3, Radeon HD2600, latest driver, VMR9 renderless) it freezes at 00:00 with a black screen. Regardless which splitter I use (including Haali).
The other PC I will test tomorrow.
Try disable DXVA decoder - play in software or not ???
Momber
11th August 2010, 07:15
Try disable DXVA decoder - play in software or not ???
I need DXVA.
Octo-puss
11th August 2010, 08:00
Is it so hard to try though?
Mercury_22
11th August 2010, 08:16
I need DXVA.
It's playing fine with DXVA using Microsoft DTV-DVD Video Decoder, (initial with wrong AR but after a quick enter then exit full screen the AR it's OK) and with the internal DXVA decoder too with correct AR from the beginning (a very very very small glitch at some point though = "one corrupted frame around #50-55")
P.S. Try reset MPC-HC's settings and... http://sourceforge.net/apps/trac/mpc-hc/wiki/Troubleshooting_guidelines
Dreamhacker
11th August 2010, 11:34
Would it be possible to add an option in MPC-HC to specify what folder to auto-load subtitles from? Or if I were to do it myself, in what part of the code would I have to look for the auto-load functionality?
namaiki
11th August 2010, 14:02
edit: oops wrong thread
/facepalm
88keyz
11th August 2010, 14:37
@ Momber
On the XP machine have you tried downloading .NET Framework 3 (http://www.microsoft.com/downloads/details.aspx?FamilyID=10cc340b-f857-4a14-83f5-25634c3bf043&displaylang=en) and running MPC-HC with EVR renderer instead?
As alexins said, your sample file plays fine on my machine (W7-x64 w/ GTS 250) with his 2225 build.
I would also make sure that you have all external filters disabled and that that you are using only the internal MPC-HC filters. Filter packs such as CCCP might mess with your playback. And you might also want to try blocking the ffdshow filter if applicable (as seen here (http://imouto.my/watching-h264-videos-using-dxva/#Step6)).
namaiki
11th August 2010, 14:42
Filter packs such as CCCP might mess with your playback.
Don't worry, CCCP will never have DXVA enabled by default, which is what Momber wants to use.
bobdynlan
11th August 2010, 14:51
The MSYS/MINGW part of the guide is not user friendly. I know this is inherited from those projects - lots of distro's, lots of dependencies, lack of all-in-one installers for Windows, silly post install scripts etc. And we need to deal with this because of ffmpeg's incompatibility with MSVS.
Not liking the recommended hard-coded paths, variables and project modifications, I've created a batch file that will help setting up a more dynamic environment. You just need to copy the batch file into MSYS/MINGW installation directory and run it to automate the needed modifications. You may also copy the batch file to the rootdir ?:\ and run it from there to scan the entire drive.
The following environment variables will be added in addition to the standard ones: LIBMINGW32, LIBGCC32, LIBMINGW64, LIBGCC64, GCC32VER, GCC64VER. Projects can be modified to use these, so that no reconfiguration is needed when changing GCC versions.
For MPC-HC, the Compiling MPC-HC guide (http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC) can be modified as:
Part B: Preparing the GCC environment.
2. Edit the "fstab" file in C:\MSYS\etc\ [...]
3. Add the following environment variables [...]
Modify the "Path" environment variable by adding [...]
TO:
- copy gnuenvxx.bat to the dir you've extracted MSYS/MINGW
- run gnuenvxx.bat to setup environment variables
Part C: Downloading and compiling the MPC-HC source.
4. Right click the MPCVideoDec project [...]
TO:
- svn-side (removing this step) or local-side modification to include:
Win32=$(OutDir);$(SolutionDir)lib;$(LIBGCC32);$(LIBMINGW32)
x64=$(OutDir);$(SolutionDir)lib64;$(LIBGCC64);$(LIBMINGW64)
Part E: Building ffmpeg x64 (libavcodec) with GCC
1. - 3. Run MSYS and cd to the trunk\src [...]
TO:
- copy build_mingw_x64libs.bat to MPC-HC trunk /lib64
- run batch instead of manual steps of launching buildmingwlibs.sh shell script
ADDITIONS:
- Specify that it only works with updated GCC (4.4.4 fails)
- Specify that the svn command line client that comes with xhmikosr's MSYS package fails in Windows 7 x64; direct users to replace/rename it and install alternatives like Sliksvn (http://www.sliksvn.com/en/download)
Proposed batch files are zipped in the attachment. Drop.io link here (http://drop.io/bobdynlan/asset/gnuenv-zip)
Mercury_22
11th August 2010, 15:28
The MSYS/MINGW part of the guide is not user friendly. I know this is inherited from those projects - lots of distro's, lots of dependencies, lack of all-in-one installers for Windows, silly post install scripts etc. And we need to deal with this because of ffmpeg's incompatibility with MSVS.
Not liking the recommended hard-coded paths, variables and project modifications, I've created a batch file that will help setting up a more dynamic environment. You just need to copy the batch file into MSYS/MINGW installation directory and run it to automate the needed modifications. You may also copy the batch file to the rootdir ?:\ and run it from there to scan the entire drive.
The following environment variables will be added in addition to the standard ones: LIBMINGW32, LIBGCC32, LIBMINGW64, LIBGCC64, GCC32VER, GCC64VER. Projects can be modified to use these, so that no reconfiguration is needed when changing GCC versions.
For MPC-HC, the Compiling MPC-HC guide (http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC) can be modified as:
Part B: Preparing the GCC environment.
2. Edit the "fstab" file in C:\MSYS\etc\ [...]
3. Add the following environment variables [...]
Modify the "Path" environment variable by adding [...]
TO:
- copy gnuenvxx.bat to the dir you've extracted MSYS/MINGW
- run gnuenvxx.bat to setup environment variables
Part C: Downloading and compiling the MPC-HC source.
4. Right click the MPCVideoDec project [...]
TO:
- svn-side (removing this step) or local-side modification to include:
Win32=$(OutDir);$(SolutionDir)lib;$(LIBGCC32);$(LIBMINGW32)
x64=$(OutDir);$(SolutionDir)lib64;$(LIBGCC64);$(LIBMINGW64)
Part E: Building ffmpeg x64 (libavcodec) with GCC
1. - 3. Run MSYS and cd to the trunk\src [...]
TO:
- copy build_mingw_x64libs.bat to MPC-HC trunk /lib64
- run batch instead of manual steps of launching buildmingwlibs.sh shell script
ADDITIONS:
- Specify that it only works with updated GCC (4.4.4 fails)
- Specify that the svn command line client that comes with xhmikosr's MSYS package fails in Windows 7 x64; direct users to replace/rename it and install alternatives like Sliksvn (http://www.sliksvn.com/en/download)
Proposed batch files are zipped in the attachment. Drop.io link here (http://drop.io/bobdynlan/asset/gnuenv-zip)
This means that now I can successfully compile MPC-HC on a x64 OS (windows 7 x64)?
bobdynlan
11th August 2010, 15:40
This means that now I can successfully compile MPC-HC on a x64 OS (windows 7 x64)? Not, it's not meant for that. You must have issues of your own, but you should know that compiling MPC-HC in 7x64 works fine at least for me - by just using the How to compile guide with MSVC2008 SP1 + GCC version 4.5.1 Pre-Release SVN rev. 161239, 2010.06.23 and my little batch :P . I guess you did not select x64 compilers when installing Windows SDK v7.1? Anyway, try it out - maybe you only have trouble with building mingw libs, because of the svn issue.
XhmikosR
11th August 2010, 16:19
The instructions are pretty clear. Hundreds of people can build mpc-hc since they follow the instructions. If you are not just a simple user and have the knowledge you can do whatever you want. The wiki is going to stay as it is unless you can show me a testcase that the instructions are wrong and compilation fails.
Keep in mind that you should already know how to set up MSYS/mingw, it's not something that's mpc-hc specific. Nevertheless there are instructions on that too.
bobdynlan
11th August 2010, 17:22
The instructions are pretty clear. Hundreds of people can build mpc-hc since they follow the instructions. If you are not just a simple user and have the knowledge you can do whatever you want. The wiki is going to stay as it is unless you can show me a testcase that the instructions are wrong and compilation fails.
Keep in mind that you should already know how to set up MSYS/mingw, it's not something that's mpc-hc specific. Nevertheless there are instructions on that too.
No need to shoot me for adding some friendly tips using only words like can be modified. http://sourceforge.net/apps/trac/mpc-hc/wiki/Manual encourages involvement in this area, guess what does your post... for others. I for one don't mind it, so long and thanks for all the work.
Mercury_22
11th August 2010, 17:30
Not, it's not meant for that. You must have issues of your own, but you should know that compiling MPC-HC in 7x64 works fine at least for me - by just using the How to compile guide with MSVC2008 SP1 + GCC version 4.5.1 Pre-Release SVN rev. 161239, 2010.06.23 and my little batch :P . I guess you did not select x64 compilers when installing Windows SDK v7.1? Anyway, try it out - maybe you only have trouble with building mingw libs, because of the svn issue.
Haven't try it in a long time always had problem with what version of GCC to use and "with building mingw libs"
Maybe I'll try again after compiling with VS2010 it's "fixed"
Momber
11th August 2010, 18:09
On the XP machine have you tried downloading .NET Framework 3 (http://www.microsoft.com/downloads/details.aspx?FamilyID=10cc340b-f857-4a14-83f5-25634c3bf043&displaylang=en) and running MPC-HC with EVR renderer instead?
My dot-net is current up to version 3.5.30729 and EVR works, albeit without DXVA.
I have probably a dozen options at my disposal to play back videos without DXVA but that's not my point.
Momber
11th August 2010, 18:12
(a very very very small glitch at some point though = "one corrupted frame around #50-55")
If you look hard at the computer monitor in the background of the sample vid, you will see more than one small glitch.
Besides, if the sample was longer, there would also be more glitches.
What exactly is it you're trying to say? That one glitch per seven seconds is acceptable?
Momber
11th August 2010, 18:19
you might also want to try blocking the ffdshow filter if applicable
ffdshow is my audio decoder of choice. Why would I want to block it?
And the ffdshow video decoder does not interfere with MPC H.264 playback, since it doesn't even get loaded.
My installation is very clean and only two months old. I don't do codec packs, ever.
http://i8.fastpic.ru/big/2010/0811/d0/5cb506c12c9c002694e1b533b47a76d0.jpg
XhmikosR
11th August 2010, 19:13
No need to shoot me for adding some friendly tips using only words like can be modified. http://sourceforge.net/apps/trac/mpc-hc/wiki/Manual encourages involvement in this area, guess what does your post... for others. I for one don't mind it, so long and thanks for all the work.
I didn't shoot you in the face, you should know that written word can be misinterpreted. :) But my point is still valid. What you suggest is useless for someone who follows the current instructions or at least it doesn't make the process easier.
Momber
12th August 2010, 07:15
OK, I tested r2225 on my other PC with the BBC HD ts, like I said I would.
It's a dedicated HTPC (Vista SP2, HD3650 w/driver 8.723, EVR CP). The result was the same as it was with previous builds, lots of small glitches throughout.
Momber
12th August 2010, 09:08
Oh, and VC-1 decoding with DXVA doesn't work at all under XP (ATI platform, VMR9). Tried 1080p24 (ex BluRay) and 720p60 (ex HD-DVD). Black screen, freezing at 00:00.
And interlaced VC-1 decoding still doesn't work regardless of the OS, it never did.
Enabling subtitles produces infrequent dropped frames (as has been reported a number of times before).
So basically, nothing works as it should with DXVA. LOL.
MPC-HTPC
12th August 2010, 09:36
Sorry Momber, but I have to interrupt here, before you are finally filling this thread with all your "Not-Working-Posts" that never include new information. (At least you have changed your "So basically, nothing works." statement, so thanks for that.)
For interlaced VC-1 material it is known, that this won't work, since FFmpeg does not support it yet. Maybe this will happen in the future, but somebody has to be found to implement it.
For myself I have to say, that DXVA works pretty damn well on my GeForce 9400M and I never ran into any issue yet.
Furthermore I have to make a big compliment to the developers for providing a great experience when using MPC-HC at my HTPC. Without it my HTPC wouldn't be the fun to use as it is now. MPC-HC is highly configurable and its continuous development makes it the best media player out there, IMHO. So again a big thanks to the developers and their continuous effort!
Mercury_22
12th August 2010, 10:56
If you look hard at the computer monitor in the background of the sample vid, you will see more than one small glitch.
Besides, if the sample was longer, there would also be more glitches.
What exactly is it you're trying to say? That one glitch per seven seconds is acceptable?
I have the same "glitch" when I'm using WMP 12 (no other filters) so it's not MPC-HC fault !
jeremy33
12th August 2010, 11:11
Flac with madFlac is broken since between rev. 2116 and 2124.
It will be fixed ? Because mpc doesn't load ffdshow flac decoder and the internal doesn't work properly for me, every 30s the sound cuts.
Gser
12th August 2010, 11:31
Flac with madFlac is broken since between rev. 2116 and 2124.
It will be fixed ? Because mpc doesn't load ffdshow flac decoder and the internal doesn't work properly for me, every 30s the sound cuts.
Works for me, try installing madflac again and forcing it in external filters
littleD
12th August 2010, 12:31
My dot-net is current up to version 3.5.30729 and EVR works, albeit without DXVA.
I have probably a dozen options at my disposal to play back videos without DXVA but that's not my point.
Momber, do you have dxva2.dll file in system32 folder? I had to copy it there even after dot net 3.0 installation.
jeremy33
12th August 2010, 13:02
Works for me, try installing madflac again and forcing it in external filters
It doesn't work. And I'm not alone.
Using ffdshow 3526 msvc 2008 and MPC 2217 and no crash with ffdshow playing flac.
Steveo08
12th August 2010, 13:49
i have a question to the function autochange, it won't work for me on win7 x64 at a nvidia gt220, windows ignores all modes autochange. and i am running mph-hc as a admin.
NiFa
12th August 2010, 17:52
What does cause the choppy playback in win 7 when refresh rate is set 24Hz? When palying using 50Hz & 60Hz everything works just right, 24Hz worked in vista without any problems. I have tried EVR CP & EVR Sync with & without internal decoders, but nothing helps.
My system:
Win 7
HD4200 with cat 10.1
MPC-HC
FFdshow
Puncakes
12th August 2010, 18:11
Flac with madFlac is broken since between rev. 2116 and 2124.
Hasn't worked for me for much longer than that. Works on another computer of mine though. Recently did a fresh install of windows and it still doesn't work for some reason. In any case, it's a userside issue, but I have no idea what causes it.
MadFlac loads fine in GraphEdit and WMP.
oddball
12th August 2010, 19:34
Build 2229 keeps defaulting to French language on start up even though I set it to English.
Momber
12th August 2010, 21:35
For myself I have to say, that DXVA works pretty damn well on my GeForce 9400M
Good for you.
Me, I don't care if it works with GeForce cards, or on Windows-fucking-Seven, or during full moon under an oaktree.
I'm not going to replace perfectly good hardware, nor a working OS, to accommodate faulty code in a software player, thank you very much.
Momber
12th August 2010, 21:37
Momber, do you have dxva2.dll file in system32 folder?
Yes I do.
Momber
12th August 2010, 21:40
I have the same "glitch" when I'm using WMP 12 (no other filters) so it's not MPC-HC fault !
WMP is not a benchmark for anything.
The glitches disappear when I use the Cyberlink H.264 decoder (with DXVA) - so whose fault is it?
[unfortunately the CL decoder has other problems but I'm not going to bore you with them]
oddball
12th August 2010, 23:05
Build 2229 keeps defaulting to French language on start up even though I set it to English.
Anyone else having this issue with this build or am I going to have to uninstal and install clean again (A real pain because I tweak up a lot and sometimes forget all the settings. I could really do with a save settings to file option).
Aleksoid1978
13th August 2010, 00:41
To all - test this build http://aleksoid.tosei.ru/Test/mpc-hc_MP4_MOV_PCM_test.7z on any MOV and MP4.
In this build work play PCM sound, like here https://sourceforge.net/apps/trac/mpc-hc/ticket/242
And compare with the original MPC-HC.
sansnom05
13th August 2010, 03:26
Anyone else having this issue with this build or am I going to have to uninstal and install clean again (A real pain because I tweak up a lot and sometimes forget all the settings. I could really do with a save settings to file option).
Same here. Easy solution: delete all the resource.dll. Still, this is weird.
Aleksoid1978
13th August 2010, 04:40
Build 2229 keeps defaulting to French language on start up even though I set it to English.
What system language UI you have ??? French ???
and can you upload you setting - .reg or .ini - it's need for me to understand what's wrong.
If you select language - it's must store and don't change at startup MPC-HC
arty
13th August 2010, 06:25
I just set subs priority (Options->playback) to ENG and rename extsubs as VidFileName.LANG.ext, e.g. SomeVideoFile.ENG.ass. Of course it doesn't have to be ENG only. You can choose whatever letters you like.
ah, that's an ugly trick :)
thanks anyway!
Kraise
13th August 2010, 07:30
Which setting should I be using here?
http://dl.dropbox.com/u/4289924/images/uhmlol.png
I just found out about color spaces kinda and did a quick test with Haali, and then EVR Custom + Nividia control panel for the color conversion. I think the Haali+16-235 looks best
2 quick other questions:
What is the best way to upscale an SD video in MPC-HC? Would Haali be the best?
for SD sources, should I use the bt.601 in haalis options?
Sorry if this isn't meant to go here, had no idea where else to post this.
Mangix
13th August 2010, 07:43
0-255 looks the best
and with madvr
Aleksoid1978
13th August 2010, 08:13
Flac with madFlac is broken since between rev. 2116 and 2124.
It will be fixed ? Because mpc doesn't load ffdshow flac decoder and the internal doesn't work properly for me, every 30s the sound cuts.
mpc-hc play fine flac with ffdshow decoder.
What's about crash with madFlac - it's happen after rev.2123, add Heap Corruption Detection.
Possible heap error in madFlac decoder ???
jeremy33
13th August 2010, 08:23
How do you make ffdshow to work with mpc ? Because I tried everything and it doesn't work.
No it doesn't crash but it doesn't load ffdshow audio decoder; it's using the internal FLAC decoder (low merit). IIRC it crashed if you used madFlac instead of the internal filter.
hoborg
13th August 2010, 08:30
I just noticed:
Revision 2231:
Fix : MPEGSplitter - could not read some MPEG files.
Should MPEGSplitter support MPEG-1? For example MPEGSplitter doesnot like this MPEG-1 sample (http://hobring.esero.net/saf/samples/mpeg-1.zip) (rev. 2225). MPC-HC will play it but OS splitter/decoder and overlay mixer + wrong renderer is in use:
http://hobring.esero.net/saf/samples/mpeg-1.png
madshi
13th August 2010, 08:38
mpc-hc play fine flac with ffdshow decoder.
What's about crash with madFlac - it's happen after rev.2123, add Heap Corruption Detection.
Possible heap error in madFlac decoder ???
The current madFlac version (1.8) has been unchanged since April 2008 and it has been working in *all* media players without any stability issues for all that time. It still does. The only exception is newer builds of MPC HC. I think these facts give a quite clear lead to where the problem should be searched first... ;)
madshi
13th August 2010, 09:00
Wouldn't be too surprised if old, not updated software starts having bugs that has already been fixed in MPC-HC.
So what if there's a memory leak? That's not optimal, of course, but it shouldn't result in a crash. It never has in the past, with any media player.
patch1
13th August 2010, 10:41
Build 2229 keeps defaulting to French language on start up even though I set it to English.
Same here for build MPC-HomeCinema.1.3.2231.0.x86
Interestingly I can set it to any none English language and it will remember it.
btw I'm using Window 7 32bit.
What system language UI you have ??? French ???
English (Australia)
and can you upload you setting - .reg or .ini - it's need for me to understand what's wrong.
If you select language - it's must store and don't change at startup MPC-HC
Where do I find them?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.