Log in

View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 [137] 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410

Kado
12th March 2009, 20:03
@The1n
Yes.
In mpc output put in the audio output direct sound : hdmi or spdif;
in ffdshow audio decoder under output check both ac2 and dts passthrough, and in the multichannel device put hdmi or spdif.

If you want to use your external decoder to receive other formats encoded to ac3 use ac3 spdif encode mode and uncheck the other "bit" possibilities.

I used this to try my audigy 2 zs ac3 hardware decoding capabilities.

littleD
12th March 2009, 20:31
Hmm.. i wonder why nobody noticed it yet but..., can u guys confirm that with catalysts 9.2 agphotfix all h.264 5.1 level videos are playable? Of course with accordingly limited ref frames. Or thats my dreams.

tetsuo55
12th March 2009, 20:54
I only have 1 non l4.1 file and that one did not work, but it could be a ton of reasons

The1n
12th March 2009, 21:00
@The1n
Yes.
In mpc output put in the audio output direct sound : hdmi or spdif;
in ffdshow audio decoder under output check both ac2 and dts passthrough, and in the multichannel device put hdmi or spdif.

If you want to use your external decoder to receive other formats encoded to ac3 use ac3 spdif encode mode and uncheck the other "bit" possibilities.

I used this to try my audigy 2 zs ac3 hardware decoding capabilities.


Hi Kado

I think i've been following your guidance but i keep getting error (look at picture)

Do you know what i am doing wrong here ?

Thx

Kado
12th March 2009, 21:41
It's like this:
http://pwp.netcabo.pt/kado/hdmi_pt.png
Also in the codecs use liba52 for AC3 and libdts for DTS not libavcodec.

THX-UltraII
13th March 2009, 08:52
Hi Kado,

Is there a reason why you prefer liba52 and libdts over libavcodec? I asked this question on AVS a few times but nobody there seems to know exactly which is the better decoder of those two?

Beliyaal
13th March 2009, 12:11
New version available (link in signature):
* Update to latest SVN.
* Changed: EVR buffers can now be changed to up to 60 buffers.
* Changed: Subtile buffers can now be changed to up to 60 buffers.
* Changed: Make the 32 bit version Large Address aware, allowing it to use 4 GB instead of 2 GB memory on 64 bit OS.
* Fixed: Hang when launching.
* Fixed: Option for output range in EVR CP. Finally we can use the hardware deinterlacer without loosing color resolution!
* Fixed: Corrected position of sync offset graph.

Please see the new options(0 - 255 and 16 - 235) in render settings to choose the color space when doing yuv to RGB conversion with EVR.

Please report any problems and discuss this build in the thread linked in signature.

mark0077
13th March 2009, 12:20
wrong post

darthfrueder
13th March 2009, 15:55
I am back from a long trip, downloaded the latest mpc-hc and here we are: pleasant surprise! My m2ts files from Canon HF100 now can be flawlessly played!

Thanks a lot!!! :thanks::thanks::thanks:
MPC-HC is the best video player ever!

One small problem though... As far as the camera generates multiple files for every scene I have many m2ts files that should be played together. Some of them are only a few seconds long. I have generated a playlist and tried to play it on my tv in d3d mode. So the problem is that at the end of every clip mpc-hc exists the full screen mode and I can see a small window in the centre of the screen for some time before the next file is started to be played. It is a bit annoying. Nothing like this in the windowed mode - there is just a small pause between files.
I have tried different configuration options (unchecking exit full screen mode after playback, etc), but could not find a solution.

7o9
14th March 2009, 06:50
New version available (link in signature):
....
* Fixed: Hang when launching.


I know it is a tiny detail in your impressive set of improvements, but this one really makes me happy.

Thanks to everyone for all the effort.

littleD
14th March 2009, 09:49
I want to note that definitely, since catalysts 9.2 agphotfix, dxva can be used with 5.1 level h.264 streams! Thats nice improvement.:) The only? limitation is number of ref frames. Videos that worked for me: 480p/11ref, 720p/8ref, 1080p/4ref.

Cyber-Mav
14th March 2009, 14:05
I want to note that definitely, since catalysts 9.2 agphotfix, dxva can be used with 5.1 level h.264 streams! Thats nice improvement.:) The only? limitation is number of ref frames. Videos that worked for me: 480p/11ref, 720p/8ref, 1080p/4ref.

those reference frame limitations you have just described seem to be the level 4.1 restriction which is noticed on here:http://en.wikipedia.org/wiki/H.264#Levels

looks like l5.1 is not supported otherwise you would get the full 16 reference frames support at 1080p.

Kado
14th March 2009, 17:13
@Casimir
What's the registry setting to force the h264 decoder to ignore the reference frame rules and use DXVA on all videos?
Microsoft DTV-DVD decoder in windows 7 can play all streams using dxva.

cca
14th March 2009, 17:37
@Casimir
What's the registry setting to force the h264 decoder to ignore the reference frame rules and use DXVA on all videos?
Microsoft DTV-DVD decoder in windows 7 can play all streams using dxva.

Try this http://forum.doom9.org/showthread.php?p=1167905#post1167905

Richardw322
14th March 2009, 18:13
@Casimir
What's the registry setting to force the h264 decoder to ignore the reference frame rules and use DXVA on all videos?
Microsoft DTV-DVD decoder in windows 7 can play all streams using dxva.

Kado, have you tried build 7048 of Windows 7? I tried it yesterday and it seems to block FFDshow from decoding h264 even in third party programs. 7022 works fine.

Anyone: is there a list of which filter does what in the standalone filters? Some are easy, but others not so easy. Just what does MPCVideodec decode? And what the heck is nutsplitter? Could use on walnuts?:confused:

THX-UltraII
14th March 2009, 18:54
Hi Kado,

Is there a reason why you prefer liba52 and libdts over libavcodec? I asked this question on AVS a few times but nobody there seems to know exactly which is the better decoder of those two?

Leak
14th March 2009, 19:22
Is there a reason why you prefer liba52 and libdts over libavcodec? I asked this question on AVS a few times but nobody there seems to know exactly which is the better decoder of those two?
You know, you keep on sounding like a broken record, what with all your repeated posts with the exact same wording...

If it's *THAT* important to you, why don't you just, you know, PM Kado instead of posting the same stuff over and over?

np: Fink - If Only (Distance And Time)

Gamezcdr
14th March 2009, 20:01
How can I resync on the fly subtitle ? In KmPlayer I have [ and ] keys.

Mangix
14th March 2009, 20:08
f1 and f2

Kado
14th March 2009, 21:03
@cca
Damn! I read that post but only the first part of it! Thanks. Now I can use DXVA with ANY h264 stream without seeing any artifacts with my 9800GTX!:D
Tried a 1080p 16 ref frames file and worked flawlessly, with pdvd8 decoder I get artifacts. You just get a warning before playback.
I found a problem though, when the frame rate changes the decoder does not sees it and the playback stalls or becomes slow etc. The microsoft decoder has the same thing but sometimes "gets the message"!
Change the value to 16 and the warnings go away.

@Richardw322
I'm using build 7057 x86. Maybe its the microsoft decoder that has more merit than ffdshow. Add ffdshow to the list in the external filters and set it to prefer, also enable h264 decoding in ffdshow. I will confirm later on.

@THX-UltraII
I think that on previous versions you had to use those decoders to enable passtrough but that may not be true in recent versions. Also if you are passingtrhough the audio is not decoded anyways.

Richardw322
14th March 2009, 21:12
@Richardw322
I'm using build 7057 x86. Maybe its the microsoft decoder that has more merit than ffdshow. Add ffdshow to the list in the external filters and set it to prefer, also enable h264 decoding in ffdshow. I will confirm later on.



Please do. That is another thing I should have tried. I used a third party replacement for Media Center called GBPVR. GBPVR lets you specify what to use for h264 playback. 7022 is fine, 7048 ignored it and used Microsofts buggy decoder. I used MPC-HC with the internal filters and it was fine. The other thing is I should have used Graphedit to see what is going on. Thought of that while 7022 was installing! (Little late then) As for merit, I pumped up the merit using the slider in FFDshow. Audio worked, but not Video.

Snowknight26
14th March 2009, 21:17
WMP and WMC in Windows 7 use WMF decoders first. If it can't decode the content you are tryin to play with those, it will fall back to DirectShow.

Kado
14th March 2009, 21:58
@Richardw322
ffdshow works fine with mpc-hc.

@Snowknight26
I didn't even tried WiMP or WMC, just MPC-HC. Both MPC and Microsoft decoders worked fine.

Inspector.Gadget
14th March 2009, 22:07
I have a weird problem here. I ripped "The Good, The Bad And The Ugly", IVTC'ed it to 23.976 fps, and encoded it with the DXVA-SD-HQ x264 profile from MeGUI, changing only the bitrate. I muxed that to an mkv container with the original audio (mono AC3).

Using the MPC-HC (build 1.2.1009.0) built-in H.264 DXVA decoder, I get corruption on the bottom ~8 lines of the anamorphic 720x368 encode (which is stretched to 875x368 on playback). This persists regardless of which renderer I use. Using CoreAVC or ffmpeg-mt (ffdshow) or libavcodec (ffdshow) doesn't create similar corruption on any renderer. Screenshot attached:

http://img24.imageshack.us/img24/1381/tuco.th.jpg (http://img24.imageshack.us/my.php?image=tuco.jpg)

I'm on Vista x64 using 32-bit MPC-HC, 32bit ffdshow, and 32-bit Haali splitter. I have an 9650M GT w/ 1GB VRAM.

hrr
15th March 2009, 13:24
Activating mixer mode in VMR9 (or YUV mixing, I don't remember exactly now) must solve your problem.

Inspector.Gadget
15th March 2009, 15:43
Yeah, hrr, that fixes it in the VMR9 renderer but (obviously) not in EVR. Can't Microsoft do anything right? ;)

Richardw322
15th March 2009, 16:39
@Richardw322
ffdshow works fine with mpc-hc.

@Snowknight26
I didn't even tried WiMP or WMC, just MPC-HC. Both MPC and Microsoft decoders worked fine.

Now I am starting to think I am crazy. I never tried ffdshow and MPC, but was using a third party program called GBPVR. It has a config setting to choose ffdshow which I set and no go. FFdshow would not load. Maybe something in 7048 that changed in 7052 (or whatever version your using). Do you have any other non microsoft player where you could see if it loads ffdshow video decoder?

Beliyaal
15th March 2009, 19:20
New version (Link in signature):
* Added: Support for high color resolution. When this option is enabled A2R10B10G10 format is used as surface and backbuffer, and as display mode in fullscreen if possible (EVR CP only).
* Added: Option for enabling frame time correction. Press 'C' to enable/disable frame time correction. You will need to enable this manually for VC-1 content in ts/m2ts files (default is off).
* Added: Shader for converting 0-255 to 16-235.
* Changed: Lock back buffer removed in favor of Event Query (always enabled). Check if alternate VSync is working better now (more stable).
* Fixed: Frame time correction could cause video to be perpeptually out of sync.
* Fixed: Aspect ratio is simplified as far as possible.
* Fixed: VMR9 now forces 4 surfaces that are exchanged. Might fix Radeon 2x00 AGP corruption bug. Might cause new bugs, please test.
* Fixed: Refresh rate now detected in VMR9 as well.
* Fixed: Refresh rate detection should now be more accurate.
* Fixed: Number of EVR buffers now displayed correctly in options.

Please report any problems and discuss this build in the thread linked in the signature.

The1n
15th March 2009, 22:11
For those interested Eric Sardella @ Intel has set up a blog with info regarding G45 dxva.
link : http://software.intel.com/en-us/blogs/2009/03/15/intel-clear-video-and-h264avc/#comment-20990

Enjoy
The1n

Egh
16th March 2009, 02:32
Bug report for SVN 1010.

First thought that was Beliyaal's build fault however was able to reproduce it with 1010 SVN build as well.

Typically I use Haali so haven't noticed that before. Happens with VMR9 renderless. MPC AVC decoder used, no DXVA (7900GTX) latest WHQL, XP x64 SP2.

Right, so when starting the video (AVC 1080p) on my primary monitor with VMR9 enabled MPCHC corrently creates a video chain MPC => VMR9 Renderless. As no colour conversion is obviously needed.

However when I move the window to another monitor, it rebuilds the chain inserting AVI Decompressor (YUY2) and then Color Space Converter, for no apparent reason. VMR9 Mixer mode setting and other options I've tried appear not to be relevant to this bug.

If I use Haali renderer (MPC output is YUY2) on both occasions the chain remains same.

THX-UltraII
16th March 2009, 09:16
I use EVR custom and cannot use dvd controls, not even the mouse control to PLAY the movie :(

littleD
16th March 2009, 09:36
I use EVR custom and cannot use dvd controls, not even the mouse control to PLAY the movie :(

http://forum.doom9.org/showthread.php?t=145042

alexins
16th March 2009, 11:06
Media Player Classic HomeCinema (x86/x64), svn 1011 (http://www.xvidvideo.ru/content/view/669/1/)

Supported languages: BY, CN, CZ, DE, EN, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA

Changes log (http://www.xvidvideo.ru/content/view/7/17/)

ADD MpcApi command : CMD_TOGGLEFULLSCREEN, CMD_JUMPFORWARDMED, CMD_JUMPBACKWARDMED, CMD_INCREASEVOLUME, CMD_DECREASEVOLUME, CMD_SHADER_TOGGLE, CMD_CLOSEAPP.

Casshern
16th March 2009, 11:42
Just to let you guys in this thread know:

The DXVA problems with VMR9 Renderless and the 2x00 AGP ATI boards are FIXED in the newest beliyaal build ver 18! Everything works now as it should (no tearing/subtitles/full hardware acceleration).

thanks again beliyaal and i hope the changes make their way into the main MPC HC quickly!

mikegun
16th March 2009, 14:23
Just to let you guys in this thread know:

The DXVA problems with VMR9 Renderless and the 2x00 AGP ATI boards are FIXED in the newest beliyaal build ver 18! Everything works now as it should (no tearing/subtitles/full hardware acceleration).

thanks again beliyaal and i hope the changes make their way into the main MPC HC quickly!

great news, will test this build asap

Steveo08
16th March 2009, 17:43
ADD MpcApi command : CMD_TOGGLEFULLSCREEN, CMD_JUMPFORWARDMED, CMD_JUMPBACKWARDMED, CMD_INCREASEVOLUME, CMD_DECREASEVOLUME, CMD_SHADER_TOGGLE, CMD_CLOSEAPP.[/QUOTE]




what does it mean?

Leak
16th March 2009, 17:46
ADD MpcApi command : CMD_TOGGLEFULLSCREEN, CMD_JUMPFORWARDMED, CMD_JUMPBACKWARDMED, CMD_INCREASEVOLUME, CMD_DECREASEVOLUME, CMD_SHADER_TOGGLE, CMD_CLOSEAPP.
what does it mean?
If I had to guess probably that you can now send Windows messages to MPC from other applications to invoke the above actions, just like you could with a whole lot of other actions (but not these) before.

np: Apollo 440 - Christiane (Dude Descending A Staircase (Disc 2))

Egh
16th March 2009, 19:05
Media Player Classic HomeCinema (x86/x64), svn 1011 (http://www.xvidvideo.ru/content/view/669/1/)


Confirmed chain rebuild bug with 1011 as well. Interestingly it happens only with 1080p videos but not with 720p :rolleyes:

mikegun
16th March 2009, 19:22
great news, will test this build asap

it works indeed. but on some files the internal decoder is not used, but cyberlink and the picture is pixelated. if I block cyberlink there is no picture at all. with older versions cyberlink worked.

tetsuo55
17th March 2009, 10:49
Hmm.. i wonder why nobody noticed it yet but..., can u guys confirm that with catalysts 9.2 agphotfix all h.264 5.1 level videos are playable? Of course with accordingly limited ref frames. Or thats my dreams.

Using the Windows 7 beta driver (this is not 9.2 but older)

I played a 1920x1080 file with 5 ref frames:
The file plays! but with a lot of random macroblocking

JohnLai
17th March 2009, 12:12
Using the Windows 7 beta driver (this is not 9.2 but older)

I played a 1920x1080 file with 5 ref frames:
The file plays! but with a lot of random macroblocking

I dont think ATI will support L5.1 judging from their responds at the AMD Game Forum(Less market demand,waste of resource, etc)

Anyone know why mpc keep crashing when I select EVR Custom Presenter as output? I'm using windows xp with the net 3.5 framework installed. MPC version 1010

G_M_C
17th March 2009, 12:51
I dont think ATI will support L5.1 judging from their responds at the AMD Game Forum(Less market demand,waste of resource, etc)

Anyone know why mpc keep crashing when I select EVR Custom Presenter as output? I'm using windows xp with the net 3.5 framework installed. MPC version 1010

From what i read around these parts of the internet, and judging by the support Neuron2 gets from Nvidia ... I think Ati in NOT the way to go right now. Their support seems much less involved than Nvidia's.

I've got a 1950Pro right now, and i'm seriously considering going to Nvidia in the near future, mainly because of these issues. The other issue being, that i'm starting to get fed up bij the CCC (Catalyst Contol Panel). I seriously slows down boot-time on my machine,'and its usage is not very user friendly imho.

So all-in-all, ending my bit-of-a-rant here, Ive got the feeling that Nv is the way to go for us video-lovers and/or encoders.

tetsuo55
17th March 2009, 13:16
I'm going to get a new videocard soon.

An ATI VS Nvidia (intel is no competition yet imho) for HTPC(using MPC-HC as the main player) discussion is a good idea imho.

The winner used to clearly be ATI, but i have the feeling the tables have turned

Probably best to start a new thread for that though

hoborg
17th March 2009, 13:25
I am starting to hate ATI, they are not able to make DXVA working drivers for XP.

Last 100% working drivers was 8.5 (at last for IGP HD3200).

Now i have HD 4550 - this card is not supported by Cat.8.5.

8.12 - DXVA for HD - OK, MPEG2 - HW deinterlacing broken (PDVD decoder)
9.02 - DXVA for HD - broken (black screen), MPEG2 working

littleD
17th March 2009, 13:28
Then what you guys think about OpenCL? It is similar to CUDA but works on any videocard supporting it. And it will be probably better on the whole. I think it is the way ati goes. But wonder how long we have to wait for first applications.

hoborg
17th March 2009, 13:29
Then what you guys think about OpenCL? It is similar to CUDA but works on any videocard supporting it. And it will be probably better on the whole. I think it is the way ati goes. But wonder how long we have to wait for first applications.

I agree.

Jong
17th March 2009, 13:31
I am starting to hate ATI, they are not able to make DXVA working drivers for XP.

8.12 - DXVA for HD - OK, MPEG2 - HW deinterlacing broken (PDVD decoder)
9.02 - DXVA for HD - broken (black screen), MPEG2 workingIt is not as simple as that. I don't deny some have had problems on moving to 9.2, but DXVA works fine in all modes here (even DXVA2 with EVR for MPEG2 and VC-1) with my PCI-E 3850.

hoborg
17th March 2009, 13:34
It is not as simple as that. I don't deny some have had problems on moving to 9.2, but DXVA works fine in all modes here (even DXVA2 with EVR for MPEG2 and VC-1) with my PCI-E 3850.

I bet you are on Vista.

I was talking about XP...

JohnLai
17th March 2009, 13:43
So, no one know what is the cause of the mpc on my computer keep crashing when EVR Custom is selected?

tetsuo55
17th March 2009, 13:45
OpenCL is interesting.

It is multi-platform.
Some things we need to think of though:
1. Have ATI/NVIDIA/INTEL added OpenCL support to their drivers
2. How far back does OpenCL compatibility go(or does it require new hardware)
3. Does OpenCL use the built in decoders or does it compute completely in shaders?
4. Does it push the decoding limits to L5.1 with 16ref frames?