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

tetsuo55
21st May 2009, 23:03
DVD menu navigation still does not work in r1117 for me. The menu highlights don't appear under my mouse, and left-clicking on buttons doesn't do anything.

Happens in both EVR and EVR-CP. All other renderers work fine.

Windows XP SP3, DX9 March 2009, MPC-HC r1117

Seems to be working perfectly on windows7 X64 (but there is a tiny lag before the cursor moves to the selected area)

I'm beginning to get the feeling many of these problems are being caused by differences between dvd navigator versions. More problems are to be expected with EVR on XP because the navigator was made before EVR existed, and as far as i know has not been updated.

EDIT: tested with built in Mpeg2 decoder aswell as FFdshow just to be sure, both work fine
kumi which decoder are you using?

mark0077
21st May 2009, 23:06
Beliyaal

Updated your reply to bug about vc-1 decoder outputting yuy2 instead of yv12... mpeg2 decoder outputs yv12 fine as far as I know so I still don't see why vc-1 should be outputting yuy2 by default. ffdshow shows its getting yuy2 input from the vc-1 software decoder also. Outputting yv12 from ffdshow for example has no problems, no errors / crashes. https://sourceforge.net/tracker/?func=detail&aid=2792644&group_id=170561&atid=854651

Also updated bug relating to evr / evr-cp dvd menu freezing. Freezing is now gone, BUT I get many many dropped frames and audio / video jumping and popping when moving mouse over menu items. Each time I hover over an item (when a dvd menu is playing behind), evr-cp will drop many frames and the audio will jump for like 0.5 seconds like its having trouble. Uploading sample at the minute to illustrate but I am sure you have dvd's containing moving content in the background that you can use to test frame drops and audio pops when hovering over items. https://sourceforge.net/tracker/?func=detail&aid=2792653&group_id=170561&atid=854651

Thanks.

Beliyaal
21st May 2009, 23:08
*The framerate is stuck at 25fps when playing a DVD(opening the video_ts.ifo) using FFdshow, however the framerate is
displayed correctly when played from the .vob
*The framerate is not displayed when playing a DVD(opening the video_ts.ifo) using the internal MPEG2 decoder, however the framerate is displayed correctly when played from the .vob

This aren't new bugs right?

*All the internal decoders seem to default to YUY2 (Is this intended behaviour?)
They output YV12 just fine. The problem is that the EVR doesn't accept YV12. Just pipe it through ffdshow and it will output YV12 and convert it to NV12 which the EVR accepts.

tetsuo55
21st May 2009, 23:13
Also updated bug relating to evr / evr-cp dvd menu freezing. Freezing is now gone, BUT I get many many dropped frames and audio / video jumping and popping when moving mouse over menu items. Each time I hover over an item (when a dvd menu is playing behind), evr-cp will drop many frames and the audio will jump for like 0.5 seconds like its having trouble. Uploading sample at the minute to illustrate but I am sure you have dvd's containing moving content in the background that you can use to test frame drops and audio pops when hovering over items. https://sourceforge.net/tracker/?func=detail&aid=2792653&group_id=170561&atid=854651

Thanks.
Unable to reproduce using a bunch of DVD's on HD, its working perfectly for me.
Windows7 RC1, e8400 cpu

This aren't new bugs right?I discovered them a few days ago, i have not yet tested older builds to find the regression point or if it has been broken from the beginning

EDIT: reproduced with 582, so its an old bug that has been newly discovered, but since you seem to be knee deep in the DVD navigator code you might be able to spot the bug. It has to be a typo or something in the filter-out settings

mark0077
21st May 2009, 23:16
Unable to reproduce using a bunch of DVD's on HD, its working perfectly for me.
Windows7 RC1, e8400 cpu

I discovered them a few days ago, i have not yet tested older builds to find the regression point or if it has been broken from the beginning

Uploading sample now of star wars episode II menu. Using software mpeg2 decoder, no de-interlacing, Windows 7 RC, Core i7 @ 4ghz.

This config shouldn't drop frames or drop audio when hovering over items. I can reproduce with almost every moving DVD menu I have tried. When I upload sample maybe you can try.

Beliyaal
21st May 2009, 23:23
Beliyaal
Updated your reply to bug about vc-1 decoder outputting yuy2 instead of yv12... mpeg2 decoder outputs yv12 fine as far as I know so I still don't see why vc-1 should be outputting yuy2 by default. ffdshow shows its getting yuy2 input from the vc-1 software decoder also. Outputting yv12 from ffdshow for example has no problems, no errors / crashes. https://sourceforge.net/tracker/?func=detail&aid=2792644&group_id=170561&atid=854651

Ok, the highest priority output format is now YV12 in SVN 1120.

Also updated bug relating to evr / evr-cp dvd menu freezing. Freezing is now gone, BUT I get many many dropped frames and audio / video jumping and popping when moving mouse over menu items. Each time I hover over an item (when a dvd menu is playing behind), evr-cp will drop many frames and the audio will jump for like 0.5 seconds like its having trouble. Uploading sample at the minute to illustrate but I am sure you have dvd's containing moving content in the background that you can use to test frame drops and audio pops when hovering over items. https://sourceforge.net/tracker/?func=detail&aid=2792653&group_id=170561&atid=854651

Thanks.
I don't really have any DVDs, so a sample would be appreciated.

Beliyaal
21st May 2009, 23:26
I discovered them a few days ago, i have not yet tested older builds to find the regression point or if it has been broken from the beginning

EDIT: reproduced with 582, so its an old bug that has been newly discovered, but since you seem to be knee deep in the DVD navigator code you might be able to spot the bug. It has to be a typo or something in the filter-out settings

I think the problem is with the DVD navigator. The error occurs both in ffdshow and internal decoder so it seems reasonable to assume that the problem isn't in our code. ffdshow defaults to 25 fps. Internal decoder doesn't report any fps, and EVR defaults to 23.976 when no FPS is found.

The only thing this adversly effects is subtitles that uses frame numbers for timing, as these will use the wrong FPS to calculate the timing. It shouldn't matter for playback otherwise.

Beliyaal
21st May 2009, 23:30
This config shouldn't drop frames or drop audio when hovering over items. I can reproduce with almost every moving DVD menu I have tried. When I upload sample maybe you can try.

It needs to drop frames, as when you move the mouse over the menus it renders at a very high frame rate. But I will take a look at a menu with a moving background. That probably has issues as I have not tested it.

kumi
21st May 2009, 23:31
EDIT: tested with built in Mpeg2 decoder aswell as FFdshow just to be sure, both work fine
kumi which decoder are you using?I tried the built-in MPEG-2 Decoder, ffdshow (libavcodec), ffdshow (libmpeg2), and Elecard MPEG-2 Video Decoder, all of which exhibit the same problem.

More problems are to be expected with EVR on XP because the navigator was made before EVR existed, and as far as i know has not been updated.
It's interesting you say that, because my previous Windows XP installation had a DVD Navigator filter that behaved differently! I remember the filter property window had 5 buttons arranged in a "plus" shape for manual menu navigation (left/right/up/down/select). My current DVD Navigator filter does not have that feature (qdvd.dll file version 6.5.2600.5512)

Can anyone with working DVD menus in EVR / EVR-CP and Windows XP SP3 tell me their qdvd.dll file version, and if they have manual dvd navigation buttons in their filter properties window?

tetsuo55
21st May 2009, 23:41
I think the problem is with the DVD navigator. The error occurs both in ffdshow and internal decoder so it seems reasonable to assume that the problem isn't in our code. ffdshow defaults to 25 fps. Internal decoder doesn't report any fps, and EVR defaults to 23.976 when no FPS is found.

The only thing this adversly effects is subtitles that uses frame numbers for timing, as these will use the wrong FPS to calculate the timing. It shouldn't matter for playback otherwise.

Which means the external subtitle with DVD problem is unfixable (unless someone writes an open-source dvd navigator that we can use easily)

I tried the built-in MPEG-2 Decoder, ffdshow (libavcodec), ffdshow (libmpeg2), and Elecard MPEG-2 Video Decoder, all of which exhibit the same problem.


It's interesting you say that, because my previous Windows XP installation had a DVD Navigator filter that behaved differently! I remember the filter property window had 5 buttons arranged in a "plus" shape for manual menu navigation (left/right/up/down/select). My current DVD Navigator filter does not have that feature (qdvd.dll file version 6.5.2600.5512)

Can anyone with working DVD menus in EVR / EVR-CP and Windows XP SP3 tell me their qdvd.dll file version, and if they have manual dvd navigation buttons in their filter properties window?That at least anecdotally proves that my theory is correct

MatMaul
21st May 2009, 23:42
I have submitted changes in SVN 1117 that should make all resizers correct without the 0.98 (0.999) hack. Basically all fractions are now derived from the same place in the pixel shader with all texture sampling right square in the middle of all video texture pixels instead of relying on the texture coordinates to be interpolated and interpreted the same as when sampling the texture.
Thanks but it seems to be broken :P
no more line but the quality is now really really bad

rev1120 :
http://img198.imageshack.us/img198/6471/rev1120.th.png (http://img198.imageshack.us/my.php?image=rev1120.png)
rev1116 :
http://img200.imageshack.us/img200/1371/rev1116.th.png (http://img200.imageshack.us/my.php?image=rev1116.png)

mark0077
21st May 2009, 23:48
It needs to drop frames, as when you move the mouse over the menus it renders at a very high frame rate. But I will take a look at a menu with a moving background. That probably has issues as I have not tested it.

Ah I understand. I have uploaded the sample now and updated bug with the link.

Here is a sample taken from star wars episode II.
http://www.megaupload.com/?d=SJNBA3F0

Parts of the intro scenes will appear white as they were replaced with blank frames. You may have to wait for a minute or so for the dvd menu to appear.

To reproduce, make sure nothing like ffdshow or reclock is there to interfere, move the mouse over the highlights, preferably slowly from top to bottom. You will see frame drops and audio drops when the renderer(s) seem to have trouble. I assume the frame drops are required now, but the audio drops and background video stuttering isn't expected behaviour and never happened with some older players I used.

I reproduced with evr and evr-cp. I havn't tried other renderers.

tetsuo55
21st May 2009, 23:48
I've been reading a lot of stuff about audio and audio renderers related to HDMI, if anyone decides to upgrade the audio renderer please keep the following in mind:

The audio render should:
*Support direct audio playback, Spdif streaming(DTS, AC3, DTS-WAV, LPCM stereo), HDMI streaming(All DTS and AC3 flavours including the HD one's and 7.1 LPCM)
*Change the number of audio channels based on the source, so Recievers understand what is going on. This changing should be optional, and the allowed channel configurations should be selectable.
*Support Wasapi Excluse mode (and if possible kernel streaming/Asio for older hardware and XP)
*Support 32bit floating point, 192khz, 7.1 audio(and all its lower variations)

Beliyaal
21st May 2009, 23:51
Thanks but it seems to be broken :P
no more line but the quality is now really really bad

rev1120 :
http://img198.imageshack.us/img198/6471/rev1120.th.png (http://img198.imageshack.us/my.php?image=rev1120.png)
rev1116 :
http://img200.imageshack.us/img200/1371/rev1116.th.png (http://img200.imageshack.us/my.php?image=rev1116.png)

Obviously it doesn't look like that on my computer :)

So I guess you are using NVidia? Could you debug the shader. Is it even able to compile the shader on your card?

EDIT: I think I know what is going on. I don't think you have compiled in the new shader code. Visual studio will not detect that the shader has been changed. Do a rebuild all, or change mplayerc.rc to force a recompile of the resources.

Keiyakusha
21st May 2009, 23:54
Can anyone with working DVD menus in EVR / EVR-CP and Windows XP SP3 tell me their qdvd.dll file version, and if they have manual dvd navigation buttons in their filter properties window?

Maybe try to replace your dll with the one cames with Win7 (ver. 6.6.7100)?

Px
22nd May 2009, 00:13
many of them depend on DXVA2 support which doesn't exists at all on XP SP3
Really? :rolleyes:

MatMaul
22nd May 2009, 00:17
EDIT: I think I know what is going on. I don't think you have compiled in the new shader code. Visual studio will not detect that the shader has been changed. Do a rebuild all, or change mplayerc.rc to force a recompile of the resources.
you were right it works prefectly now, you roxx !

Beliyaal
22nd May 2009, 00:32
Ah I understand. I have uploaded the sample now and updated bug with the link.

Here is a sample taken from star wars episode II.
http://www.megaupload.com/?d=SJNBA3F0

Parts of the intro scenes will appear white as they were replaced with blank frames. You may have to wait for a minute or so for the dvd menu to appear.

To reproduce, make sure nothing like ffdshow or reclock is there to interfere, move the mouse over the highlights, preferably slowly from top to bottom. You will see frame drops and audio drops when the renderer(s) seem to have trouble. I assume the frame drops are required now, but the audio drops and background video stuttering isn't expected behaviour and never happened with some older players I used.

I reproduced with evr and evr-cp. I havn't tried other renderers.

I can't reproduce. No audio dropouts or video stuttering here. I have EVR buffers at 4 to minimize delay.

The only time where I get slight stutter is when the background video repeats.

mark0077
22nd May 2009, 00:50
DVD Menus Stuttering
Yeah thats strange. For me i think evr-cp must detect audio / video desync is too big or something like this and the audio gets reinitialized. I am running my display at 60hz, maybe this is making a difference.

If I move mouse quickly from one to the other I get no problem, its when I move mouse relatively slowly. At this moment I have just moved the mouse from left to right continuously on one of the "Language Selection" items and the audio is jumping like crazy like every second or so, like its reinitializing over and over again.

Here is a screenshot showing my stats when moving the mouse from left to right over a period of a few seconds. You can see the graph going crazzzyyy. :P You can see some strange things in the graph,
http://img195.imageshack.us/img195/2172/problemf.th.jpg (http://img195.imageshack.us/my.php?image=problemf.jpg)

Doing such an action in things like powerdvd doesn't give any audio breakups or video stuttering. Would appreciate if you could investigate.

vc-1 repeating frames bug
Also updated vc-1 bug where it would repeat frames over and over after a couple of seeks with various blu-rays. It repeats 3 frames over and over when using EVR and 5 with EVR-CP so maybe its not vc-1 but rather some "connection?" between evr-cp and the decoder. I can't reproduce with other renders.

https://sourceforge.net/tracker/?func=detail&aid=2793531&group_id=170561&atid=854651

tetsuo or sourceforge mod
Can some of you close these bugs I posted recently, all fixed by beliyaal.

DTS missing center channel
Fixed: Build 1116, thanks Beliyaal.
https://sourceforge.net/tracker/?func=detail&aid=2792649&group_id=170561&atid=854651

vc-1 Software Decoding Outputs yuy2 not yv12
Fixed: Build 1120, thanks Beliyaal.
https://sourceforge.net/tracker/?func=detail&aid=2792644&group_id=170561&atid=854651

More Audio Format Typos
Fixed: Build 1119, thanks Beliyaal (again :P).
https://sourceforge.net/tracker/?func=detail&aid=2795018&group_id=170561&atid=854651

Beliyaal
22nd May 2009, 01:11
DVD Menus Stuttering
Yeah thats strange. For me i think evr-cp must detect audio / video desync is too big or something like this and the audio gets reinitialized. I am running my display at 60hz, maybe this is making a difference.

If I move mouse quickly from one to the other I get no problem, its when I move mouse relatively slowly. At this moment I have just moved the mouse from left to right continuously on one of the "Language Selection" items and the audio is jumping like crazy like every second or so, like its reinitializing over and over again.

Here is a screenshot showing my stats when moving the mouse from left to right over a period of a few seconds. You can see the graph going crazzzyyy. :P You can see some strange things in the graph,
http://img195.imageshack.us/img195/2172/problemf.th.jpg (http://img195.imageshack.us/my.php?image=problemf.jpg)

Doing such an action in things like powerdvd doesn't give any audio breakups or video stuttering. Would appreciate if you could investigate.


I think this has something to do with hardware deinterlacing. If I disable "Set deinterlaced flag in output" in ffdshow I get perfect playback. Doing deinterlacing with yadiff in ffdshow of course.

It seems that the hardware deinterlacer puts some 40 ms frames in there when they should be 0 ms for the extra frames.

alexins
22nd May 2009, 01:11
Media Player Classic HomeCinema (x86/x64), svn 1120 (http://www.xvidvideo.ru/content/view/759/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/)

(1118-1120)
Fixed: All lossless formats has same priority in mpeg splitter audio quality calculation
Fixed: Changing streams in MPEG splitter to a DTS-HD stream mostly didn't report new format to audio decoder
Fixed: Audio format description typos
Fixed: VC-1 decoding defaults to YV12 instead for YUY2

ADude
22nd May 2009, 01:12
DVD menu navigation still does not work in r1117 for me. The menu highlights don't appear under my mouse, and left-clicking on buttons doesn't do anything.

Happens in both EVR and EVR-CP. All other renderers work fine.

Windows XP SP3, DX9 March 2009, MPC-HC r1117

I will check 1117, but note that "menu highlights don't appear" is an old bug with many posts in this thread, perhaps a year or so ago.

For a long time, I have the PC recognize a DVD and then open a separate version of MPC-HC from 2007, when it last worked correctly on DVDs. This is an effective workaround, since all the more recent changes in MPC-HC do not enhance DVD playback, since the standard was set over 10 years ago.

mark0077
22nd May 2009, 01:16
I think this has something to do with hardware deinterlacing. If I disable "Set deinterlaced flag in output" in ffdshow I get perfect playback. Doing deinterlacing with yadiff in ffdshow of course.

It seems that the hardware deinterlacer puts some 40 ms frames in there when they should be 0 ms for the extra frames.

Well in my case I am forcing weave deinterlacing in mpeg2 decoder and not outputting the flag so this isn't whats happening to me unfortunately. Thats why I am getting 25fps and not 50. All I have in the chain at the moment is mpc-hc and not outputting any interlace flag.

Beliyaal
22nd May 2009, 01:36
Well in my case I am forcing weave deinterlacing in mpeg2 decoder and not outputting the flag so this isn't whats happening to me unfortunately. Thats why I am getting 25fps and not 50. All I have in the chain at the moment is mpc-hc and not outputting any interlace flag.

How are you getting NV12 into EVR in that case? Something must be converting it into NV12.

With 25 fps I see something like your screenshot, but I get no audio glitches.

Could you try enabling RAW input in ffdshow and turn on deinterlacing there and the flag in the MPEG2 decoder to see if your problem is fixed. Weave+interlaced flag+yadiff gives me good quality at least.

ADude
22nd May 2009, 01:36
The popup saying "no d3dx9 found" that happens every time you start MPC-HC makes it impossible to use the program.

When I am testing by hand, I click "ok" and then everything works normally.

Please get rid of that popup.

ADude
22nd May 2009, 01:38
Also, we still need definitions of "Accurate Vsync" and "Alternate Vsync". They don't have to be beautiful documentation, just post something, thanks.

STaRGaZeR
22nd May 2009, 01:38
Really? :rolleyes:

Yes. XP has no DXVA2. It has DXVA1 :rolleyes:

mark0077
22nd May 2009, 01:39
How are you getting NV12 into EVR in that case? Something must be converting it into NV12.

With 25 fps I see something like your screenshot, but I get no audio glitches.

Could you try enabling RAW input in ffdshow and turn on deinterlacing there and the flag in the MPEG2 decoder to see if your problem is fixed. Weave+interlaced flag+yadiff gives me good quality at least.

Yes I was about to post that. No matter what decoder I use, even when they all now explicitly say in pin output info they are outputting yv12, your stats always shows nv12....

Baffles me.

I will play with raw output with ffdshow now and see what happens.

Beliyaal
22nd May 2009, 01:42
The popup saying "no d3dx9 found" that happens every time you start MPC-HC makes it impossible to use the program.

When I am testing by hand, I click "ok" and then everything works normally.

Please get rid of that popup.

Except all resizer settings will be bilinear even when you have selected bicubic, and no shaders or stats will work.

I rather you get a message, because otherwise we get a lot of bug reports where we don't know whats wrong.

ADude
22nd May 2009, 01:44
Except all resizer settings will be bilinear even when you have selected bicubic, and no shaders or stats will work.

I rather you get a message, because otherwise we get a lot of bug reports where we don't know whats wrong.

You are assuming that MPC-HC is used for tinkering rather than for watching videos.

The popup should be "run once" or at least have a way to disable it.

PS I have DirectX 10 installed, so why should I need D3DX9.dll ?

mark0077
22nd May 2009, 01:45
How are you getting NV12 into EVR in that case? Something must be converting it into NV12.

With 25 fps I see something like your screenshot, but I get no audio glitches.

Could you try enabling RAW input in ffdshow and turn on deinterlacing there and the flag in the MPEG2 decoder to see if your problem is fixed. Weave+interlaced flag+yadiff gives me good quality at least.

Beliyaal, using ffdshow, even with no de-interlacing at all (this scene shouldn't be de-interlaced anyways) I get perfect output. With ffdshow in the chain, even doing nothing it always handles dvd menu's itself, ie how they look etc. This only further illustrates how mpc-hc is having problems doing this itself.

ffdshow strangely is now better than mpc-hc at navigating through these menus without glitches.... I think both now look equally well as ffdshow had problems with dvd menu quality a few months back but all are resolved now.

I will go back a few builds and see where things may have gone wrong with mpc-hc.

EDIT: Here is a summary of different combinations of mpc-hc 1120 and ffdshow. Basically the conclusion is there must be something wrong with mpc-hc dvd menu handling somewhere. When ffdshow does the handling of it things are almost perfect. I call the highlights (subtitles) "highlight handling". Maybe something is wrong with subtitles in recent builds?

-Rapid Horizontal Mouse Movement Benchmark (RHMMB :P) -

mpc-hc mpeg2 decoder + ffdshow highlight handling
Audio Glitches: Sometimes
Background Stuttering: Slight
evr-cp graph: Slight movement, audio / video seem to go out of sync until movement stops.

mpc-hc mpeg2 decoder + mpc-hc highlight handling
Audio Glitches: Every 1.5 seconds or so
Background Stuttering: Every 1.5 seconds or so
evr-cp graph: All over the place, looks like a 2 year olds talk the pencil for a walk drawing :P

ffdshow mpeg2 decoder + ffdshow highlight handling
Audio Glitches: None
Background Stuttering: None
evr-cp graph: No change at all, perfectly as it should be.

ffdshow mpeg2 decoder + mpc-hc highlight handling
(I don't think this is possible)

Beliyaal
22nd May 2009, 01:56
You are assuming that MPC-HC is used for tinkering rather than for watching videos.

The popup should be "run once" or at least have a way to disable it.

PS I have DirectX 10 installed, so why should I need D3DX9.dll ?

There is a way to disable it. Just go and install the runtime.

You don't need DirectX, you need the DirectX runtime. Also I think the dll should be included in the distribution. If you download recent SVN from www.xvidvideo.ru it will be included.

ADude
22nd May 2009, 02:00
DVD menu navigation still does not work in r1117 for me. The menu highlights don't appear under my mouse, and left-clicking on buttons doesn't do anything.

Happens in both EVR and EVR-CP. All other renderers work fine.

Windows XP SP3, DX9 March 2009, MPC-HC r1117

I checked and this old bug is not fixed in version 1120.

ADude
22nd May 2009, 02:18
There is a way to disable it. Just go and install the runtime.

You don't need DirectX, you need the DirectX runtime. Also I think the dll should be included in the distribution. If you download recent SVN from www.xvidvideo.ru it will be included.

I tried copying the d3dx9.dll from the install package to the MPC-HC directory.

The result was that the MKV video that moments previously had played perfectly with 1120, now plays horribly, with dropped frames, audio dropouts, visual stuttering, and visual tearing.

I left the dxdx9.dll file in the MPC-HC directory and then copied the 1043 build, just the .exe file, into the MPC-HC directory and everything works fine again.

ADude
22nd May 2009, 02:29
One reason I would like to get a definition of Accurate Vsync and Alternate Vsync is that prior to the Beliyaal Branch, MPC-HC has always played back 720p and 1080p video perfectly with no stuttering, no tearing, very little or no jitter, no audio or video dropouts, and no dropped frames.

All of this new code seems to be fixing a problem that seems to not exist (at least for someone who is not using DXVA), so my perception is that it was messing with something that was not broken.

ADude
22nd May 2009, 03:10
There's plenty of Geforce 7 and Radeon X1xxx users here that don't have DXVA support in their GPUs that runs the latest SVN builds just fine with software decoding since partial accelerated decoding(IDCT, Motion Compensation(MC) is not supported in MPC-HC.

It's more likely your system has issues, because if there was serious issues, it would be detected quickly by the testers here.

Are you referring to me?

On my PC, playback is perfect with every build before the Beliyaal branch merge.

My PC is a relatively recent build from scratch for the sole purpose of playing videos.

The additions in the Beliyaal branch seem to be processing to eliminate problems that I do not have.

It would seem odd and ironic that you then say "your system has issues"...

Beliyaal
22nd May 2009, 03:10
One reason I would like to get a definition of Accurate Vsync and Alternate Vsync is that prior to the Beliyaal Branch, MPC-HC has always played back 720p and 1080p video perfectly with no stuttering, no tearing, very little or no jitter, no audio or video dropouts, and no dropped frames.

All of this new code seems to be fixing a problem that seems to not exist (at least for someone who is not using DXVA), so my perception is that it was messing with something that was not broken.

Make sure to select "Bilinear" (not "Bilinear (PS 2.0)") as Resizer in output options to get the same performance as without the D3D9 dll.

Accurate VSync just loops without sleeping to more accurately determine when the screen is refreshing a particular scan line. This takes some extra CPU time. Without this the precision of some calculations are only on the order of 1 ms or more.

Alternative VSync instead of relying on the graphics drivers to do the VSync instead looks at the scanline position of the screen refresh and flips the screen at the correct time instead. This fixes buggy drivers and provides some increased concurrency as more threads can work with D3D surfaces a longer portion of the frame, which leads to the buffering queue in the renderer filling up better, especially if the frame time is the same as the refresh rate. Especially good for software decoding.

ForceX
22nd May 2009, 03:57
I was getting horrible refresh rate detection in EVR CP after I upgraded from Rev. 1093 to 1112 downloaded from Xvidvideo.ru. I was using the optimal setting with "Wait for flushes" enabled, and it used to work great. But Rev. 1112 gave random real time refresh rate detections ranging from 41 to 70-ish in my 60 Hz. display, so frames get stuck, stutter and the vsync line is horrible even with a 30 FPS film, no subtitles. I thought it could be a FFDshow issue, so I blocked it from loading and it was still persistent regardless of using RGB32 or YV12 colorspace. Even after using rev.1120 and seeing the problem there, I decided to go though the changelogs a bit carefully, switch the resizer to Bilinear, and.. smooth playback. Bilinear PS 2 works fine as well. All Bicubic PS resizers give the erroneous refresh rate detection, regardless if I use a custom shader or not. I'm also seeing eschewed media FPS detection from that which is reported by the splitter.

I use a PS 3.0 compatible GF6600 GT, XP SP2 with .Net 3. Yeah, I know it's an old card, but the errors occur even if my CPU is mostly idle in a 640x480 video. I have DirectX March redist and fairly new drivers. Any way you can fix the Bicubic resizer, or at least, include the old resizer as an option?

kumi
22nd May 2009, 04:10
Is anyone aware of any third-party DirectShow DVD navigation filters that might work with MPC-HC's EVR-CP renderer under Windows XP?

ivinav.ax (Intervideo Navigator) is one, but before shelling out the money for WinDVD (or Intervideo XPack?) I'd like to know if anyone's successfully used it in the above scenario.

ikarad
22nd May 2009, 08:10
I tried with VMR9 in 972 and it has exactly the same behavior with regards to subtitles as the newest version.

Although, There is a problem.

I give you a video captured by fraps to show the problem

vmr9renderless with mpc-hc 972
http://www.zshare.net/info.html?60353718-cd20d05bbed07514eed715858a499d96

vmr9renderless with mpc-hc 1117
http://www.zshare.net/info.html?60353398-b045b40ad86adf102458406f5ff12343

We can notice that with 972, subtitle are displayed correctly. With 1117, subtitle disappeared faster.

at 5seconds ofr 1117 and 6 seonds for the video with 972 there is two subtitles displayed :
the first: [month of Sokarh, 7th day : 15:48]
the second: you've always spoken like that.

With 1172 when the first subtitle disappeared, the second also disappeared. Then It appeared anew.

With 972 when the first subtitle disappeared, the second doesn't disappeared and stay until the right end.

Moreover the transition between the subtitles are smoother with 972 than 1117


I give you 1 min of the movie
http://www.zshare.net/info.html?60355511-bd3f52f5ad313a55f2c5941a5fb6a2e9

subtitle file
http://www.zshare.net/info.html?60355230-4f7519cc428c9d3023b00f9fbd7c5e02

Mtz
22nd May 2009, 08:45
This (http://www.sendspace.com/file/a2ep4l) is a TS with 4 audio and 8 DVB Subtitles. When playing in MPCHC, it show a 2.39 min. duration which is not correct. Correct is 1.11 min. Also the sample is starting with no audio but after 1.11 minutes, the audio is fine. When I'm loading the file to TSRemux, the first audio is showed as first stream, not the video stream. Can be this the problem?
The playback is not smooth and compared to VLC, VLC plays better.

enjoy,
Mtz

Mercury_22
22nd May 2009, 09:22
Now that the DTS-HD Master bug has been fixed (:thanks: Beliyaal) it remains one last AUDIO bug AFAIK so PLEASE can someone fix the Dolby TrueHD bug:

Dolby TrueHD it's BROKEN with internal filters, last known working rev is 1106 so it got broken somewhere between 1107 - 1111= first known with broken Dolby TrueHD

Sample http://www.megaupload.com/?d=LL7DF60N

Revision 1111 - Directory Listing
Modified Sun May 17 18:45:47 2009 UTC (4 days, 13 hours ago) by casimir666
Cosmetic changes : remove "todo"

--------------------------------------------------------------------------------
Revision 1110 - Directory Listing
Modified Sun May 17 18:42:35 2009 UTC (4 days, 13 hours ago) by casimir666
Changed : updated french translation

--------------------------------------------------------------------------------
Revision 1109 - Directory Listing
Modified Sun May 17 15:58:39 2009 UTC (4 days, 16 hours ago) by casimir666
Fixed : incorrect aspect ratio with VMR9+YUV Mixing

--------------------------------------------------------------------------------
Revision 1108 - Directory Listing
Modified Sun May 17 15:55:31 2009 UTC (4 days, 16 hours ago) by casimir666
Fixed : broken Theora playback (playing full speed)

--------------------------------------------------------------------------------
Revision 1107 - Directory Listing
Modified Sun May 17 08:54:38 2009 UTC (4 days, 23 hours ago) by casimir666
Fixed : vc-1 Software Decoding Crash (bug #2792643)
Fixed : Some Audio Format Splitter Typos (bug #2792652)
Fixed : incorrect handle in VOBFile

Edit: Bug reported here https://sourceforge.net/tracker/?func=detail&aid=2794828&group_id=170561&atid=854651 by someone else

Beliyaal
22nd May 2009, 10:39
Although, There is a problem.

I give you a video captured by fraps to show the problem

vmr9renderless with mpc-hc 972
http://www.zshare.net/info.html?60353718-cd20d05bbed07514eed715858a499d96

vmr9renderless with mpc-hc 1117
http://www.zshare.net/info.html?60353398-b045b40ad86adf102458406f5ff12343

We can notice that with 972, subtitle are displayed correctly. With 1117, subtitle disappeared faster.

at 5seconds ofr 1117 and 6 seonds for the video with 972 there is two subtitles displayed :
the first: [month of Sokarh, 7th day : 15:48]
the second: you've always spoken like that.

With 1172 when the first subtitle disappeared, the second also disappeared. Then It appeared anew.

With 972 when the first subtitle disappeared, the second doesn't disappeared and stay until the right end.

Moreover the transition between the subtitles are smoother with 972 than 1117


I give you 1 min of the movie
http://www.zshare.net/info.html?60355511-bd3f52f5ad313a55f2c5941a5fb6a2e9

subtitle file
http://www.zshare.net/info.html?60355230-4f7519cc428c9d3023b00f9fbd7c5e02

Although it seems to differ slightly between the versions, none of them are correct. If you play the vob file directly the timing is correct.

When I play in 972 or the newest version the subtitles are much further off than for you. Also I see exactly the same thing in DirectVobSub, where the subtile time grows by 0.5 seconds. Could you post a screenshot with DirectVobSub enabled and its OSD showing?

tetsuo55
22nd May 2009, 11:06
You are assuming that MPC-HC is used for tinkering rather than for watching videos.

The popup should be "run once" or at least have a way to disable it.

PS I have DirectX 10 installed, so why should I need D3DX9.dll ?

All of the more advanced scaling options require shaders.
MPC-HC is a DirectX9 program, it has been compiled with the latest DirectX9 updates.

Most DirectX9 programs need(or will need at some point) these updates.

Because Microsoft does not include redist updates with windows by default we have to install these manually.
Required redist files needed for most applications are:
DX9 redist
VC2005 SP1
VC2008 SP1

Even on windows 7 RC1 these have to be installed manually, DX is updated every 3 months.

You actually have a very old DX9 and DX10 installed, DX9 updates are done manually and you have probably never done so.
Your current file's are probably incompatible with the latest DX9 version causing some/all of the problems you reported.

Installing the full DX9 march 2009 redist could solve all those issues.

I checked and this old bug is not fixed in version 1120.
I did not expect anyone to still see this on vista, it works perfectly on Windows 7 RC1 X64
A full DX9 update might help here too

Could you post exactly which settings and filters you are using?

One reason I would like to get a definition of Accurate Vsync and Alternate Vsync is that prior to the Beliyaal Branch, MPC-HC has always played back 720p and 1080p video perfectly with no stuttering, no tearing, very little or no jitter, no audio or video dropouts, and no dropped frames.

All of this new code seems to be fixing a problem that seems to not exist (at least for someone who is not using DXVA), so my perception is that it was messing with something that was not broken.
Pre beliyaal merge code was very inaccurate, the new code fixed many bug's, one or more of these was actually causing perfect playback for you.
have you installed SP1(or SP2)? pre-SP1 has issues with EVR and Wasapi.
Also besides the beliyaal code merge the compiling environment has been updated too, so MPC-HC now depends on the newest redist DLL's

As beliyaal explained some of the fixed/new code has a higher CPU usage % (which is logical because that stuff wasn't working at all before)
I was getting horrible refresh rate detection in EVR CP after I upgraded from Rev. 1093 to 1112 downloaded from Xvidvideo.ru. I was using the optimal setting with "Wait for flushes" enabled, and it used to work great. But Rev. 1112 gave random real time refresh rate detections ranging from 41 to 70-ish in my 60 Hz. display, so frames get stuck, stutter and the vsync line is horrible even with a 30 FPS film, no subtitles. I thought it could be a FFDshow issue, so I blocked it from loading and it was still persistent regardless of using RGB32 or YV12 colorspace. Even after using rev.1120 and seeing the problem there, I decided to go though the changelogs a bit carefully, switch the resizer to Bilinear, and.. smooth playback. Bilinear PS 2 works fine as well. All Bicubic PS resizers give the erroneous refresh rate detection, regardless if I use a custom shader or not. I'm also seeing eschewed media FPS detection from that which is reported by the splitter.

I use a PS 3.0 compatible GF6600 GT, XP SP2 with .Net 3. Yeah, I know it's an old card, but the errors occur even if my CPU is mostly idle in a 640x480 video. I have DirectX March redist and fairly new drivers. Any way you can fix the Bicubic resizer, or at least, include the old resizer as an option?

I assume VMR9 works as expected right? What CPU do you have?
You might want to try upgrading to XP-SP3 and .net 3.5 SP1

EVR on XP is a hack, but you should at least be getting better results. Could you try the latest whql Nvidia drivers just to check?

ikarad
22nd May 2009, 11:46
Although it seems to differ slightly between the versions, none of them are correct. If you play the vob file directly the timing is correct.

When I play in 972 or the newest version the subtitles are much further off than for you. Also I see exactly the same thing in DirectVobSub, where the subtile time grows by 0.5 seconds. Could you post a screenshot with DirectVobSub enabled and its OSD showing?

screenshot

http://nsa07.casimages.com/img/2009/05/22/mini_090522124804888638.jpg (http://www.casimages.com/img.php?i=090522124804888638.jpg)

I try with directvobsub and it works like 972 and not like 1117


video captured by fraps with 972 and vobsub to display subtitles
http://www.zshare.net/info.html?60360755-771e34c88cafd4462a84002a7a202e12


If not I agree with you that if I play the vob file directly timing is correct (even with 1117) but if I use open dvd function and load sutbtile function with 972 transition between subtitles is smoother than with 1117 and i don't have the problem written above (subtitle that disappeared and then appeared anew)

clsid
22nd May 2009, 13:33
If DXVA is not yet fully supported on the Intel G45 chipset, then imho DXVA should be disabled by default for such chipsets.

The majority of the MPC user base are novice PC users that don't understand how things work. They just want it to play their files. The default settings of MPC should be fool-proof.

So please add an option to enable/disable DXVA for Intel chipsets (with a tooltip that explains the current limitations). That will hopefully further reduce the number of people with DXVA related problems.

ForceX
22nd May 2009, 14:01
I assume VMR9 works as expected right? What CPU do you have?
You might want to try upgrading to XP-SP3 and .net 3.5 SP1

EVR on XP is a hack, but you should at least be getting better results. Could you try the latest whql Nvidia drivers just to check?
Oh, I'm sorry, I have been using .NET runtime 3.5 SP1 all this time. >.> Just to ensure nothing was compromised, I reran the installer and used the "Repair" function which should have set the runtime to default state, as well as reinstalled DX March 2009 redist.

I'm pretty sure the issue is related to the resizer code. The discrepancy only happens when I change the window size of MPC from the default 100% video size. Using the D3D Fullscreen mode give similar errors. I had the copy of the rev 1093 around, so I switched between rev 1093 and 1120 and tested it on some files.

Rev. 1093 EVR CP gives near perfect (starting at 56-60 Hz, then stabilizing to 59.999-60.01ish within a few seconds) refresh rate detection in both 24 and 30 FPS videos using any resizer. The sync graph doesn't show deviated trends from original size to fullscreen switch.

Rev. 1120 EVR CP gives perfect refresh rate detection in original size. After using maximize or Fullscreen, it gets 57-60 Hz refresh rate detection in Bilinear mode and generally stays in the 59s. Using any Bicubic resizer has the renderer reporting from anywhere in 41 Hz to 63-ish with no consistency.

I tried VMR 9 Renderless (and it's generally slower on my PC than EVR CP) and it worked fine in rev.1120 with the Bicubic resizer only in DXVA1 mode, which is basically some rudimentary WMV stream decompression on my card. Using any 24 or 30 FPS non-DXVA media results in chaos in the sync graph.

Using DXVA Checker bechmarker, my system can handle 720P High Profile H.264 stream at 80 FPS in EVR with the Divx H.264 decoder, so I highly doubt an SD stream is taxing my card that much. I'm gonna give the latest driver a try.

Jong
22nd May 2009, 15:08
If DXVA is not yet fully supported on the Intel G45 chipset, then imho DXVA should be disabled by default for such chipsets.

The majority of the MPC user base are novice PC users that don't understand how things work. They just want it to play their files. The default settings of MPC should be fool-proof.

So please add an option to enable/disable DXVA for Intel chipsets (with a tooltip that explains the current limitations). That will hopefully further reduce the number of people with DXVA related problems.But the majority of the MPC user base should not be using svn builds at all. They should stick to the stable release from the official web site. Of course, with all the changes over the last few months that means the main focus should now be (as it is) on bug crushing and getting a new stable release out, so the unwashed (:)) can benefit from the recent improvements!

Luyten
22nd May 2009, 16:16
wrong aspect ratio with some SD video on svn1120 on my pc with radeon x1950pro
http://img32.imageshack.us/img32/8409/20090522163056.th.png (http://img32.imageshack.us/my.php?image=20090522163056.png)

svn1117
http://img190.imageshack.us/img190/276/20090522163255.th.png (http://img190.imageshack.us/my.php?image=20090522163255.png)


no problems on my other pc with geforce 9600GT :confused:

tetsuo55
22nd May 2009, 16:24
wrong aspect ratio with some SD video on svn1120 on my pc with radeon x1950pro
http://img32.imageshack.us/img32/8409/20090522163056.th.png (http://img32.imageshack.us/my.php?image=20090522163056.png)

svn1117
http://img190.imageshack.us/img190/276/20090522163255.th.png (http://img190.imageshack.us/my.php?image=20090522163255.png)


no problems on my other pc with geforce 9600GT :confused:
Looks like you are using FFdshow?
Are you using the latest available version?