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

X-Dron
28th January 2010, 09:53
After changing the refresh rate we need to wait for several seconds before loading the movie and start rendering. MadVR are not good at handling refresh rate change when it is running (EVR handles this much better), so a delay can make sure MadVR uses correct refresh rate.

How to be in case if the movie is already loaded and played in the window?
Switching to fullscreen calls changing refresh rate too.:confused:

somy
28th January 2010, 10:15
How to be in case if the movie is already loaded and played in the window?
Switching to fullscreen calls changing refresh rate too.:confused:

Hi X-Dron, maybe I misunderstood how it works.
We do NOT need refresh rate to be changed when switching to fullscreen because it may crash MadVR. What we really need is when we double click the movie:
1. MPC-HC starts in fullscreen mode (this can be configured in the fullscreen configuration).
2. Refresh rate is changed automatically based on FPS, this can also be configured.
3. After the refresh rate has been changed, wait for 5 seconds before starting to render the movie. If MadVR is started immediately after refresh rate change, it will use the old refresh rate. Sleeping for 5 seconds makes sure that MadVR picks up the new refresh rate.

I don't know if it's feasible to implement, but I do hope this can be implemented so that I don't need to use my batch script anymore :thanks::thanks::thanks::thanks::thanks:

PS: how do you change refresh rate? do you use display changer? If would be nice if it's possible to also configure it to use CCC's profile to change refresh rate. See how mediaportal impl this:
http://forum.team-mediaportal.com/mediaportal-1-talk-45/automatic-refreshrate-changer-44338/

tetsuo55
28th January 2010, 10:31
Hello everyone,

We still haven't got any responces to the technical questions raised on the official mpc-hc forum:

http://sourceforge.net/apps/phpbb/mpc-hc/viewforum.php?f=2&sid=2aef4b34542e8fe8d95d7e214aaf58b7

I would like to ask everyone to look at the two threads and respond if you have anything to add to the discusssion, this is a free open source project after all!

Thanks!

X-Dron
28th January 2010, 10:35
We do NOT need refresh rate to be changed when switching to fullscreen because it may crash MadVR. What we really need is when we double click the movie:
1. MPC-HC starts in fullscreen mode (this can be configured in the fullscreen configuration).
2. Refresh rate is changed automatically based on FPS, this can also be configured.
3. After the refresh rate has been changed, wait for 5 seconds before starting to render the movie. If MadVR is started immediately after refresh rate change, it will use the old refresh rate. Sleeping for 5 seconds makes sure that MadVR picks up the new refresh rate.

How it works now. There are two cases

Case 1
a. MPC-HC starts in fullscreen mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after opening the file. This can also be configured.

Case 2
a. MPC-HC starts in window mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after switching to fullscreen.

The case 2 is the one for what everything intended.
The first is a consequence.
I'm sorry.


PS: how do you change refresh rate? do you use display changer? If would be nice if it's possible to also configure it to use CCC's profile to change refresh rate.
Using available in OS modes and ChangeDisplaySettingsEx from WinAPI

somy
28th January 2010, 10:39
How it works now. There are two cases

Case 1
a. MPC-HC starts in fullscreen mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after opening the file. This can also be configured.

Case 2
a. MPC-HC starts in window mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after switch to fullscreen.

The case 2 is the one for what everything intended.
The first is a consequence.
I'm sorry.

OK, I don't understand why case 2 is intended, I thought most people play in fullscreen mode. Anyway, I'll continue to use my batch script for now:devil::devil::devil:

Peuj
28th January 2010, 11:58
Thus it was written before, I've not changed anything.
It means, "Launch the program with the opening video on fullscreen."
Yes, your wish is feasible. :) But need it realy?


Well this is something I need based on the "opening video on fullscreen" concept. :)
I'll try to explain my user point of view:
For me, If I select this option, it means that every time I open a video, I want it on Fullscreen.
So for example, I watch a video, at the end MPC exits the fullscreen (because I've selected the option). Then I want to watch another video but as MPC is still open it will not be on Fullscreen as expected.
For me it should be the normal/logical behavior.

And what about this?
Also, is it possible to have the option "Exit fullscreen" for Stop and Close the movie. I think it makes sense (at least for me )

Thanks

decapitado
28th January 2010, 12:25
Does anyone can play an entire movie with ZERO dropped frames in the statistics?

I get between 50 a 100 in each movie, maybe itīs a renderer problem.

pirlouy
28th January 2010, 13:00
@X-Dron: I prefered the old behavior: put default refresh rate ONLY when MPC-HC is closed, not when exiting fullscreen.

When you do tests, it's often that you alternate fullscreen/window mode. So I can't use "apply default monitor mode when exiting fullscreen". Please, use radio" buttons where we would have 3 choices:

Revert to default monitor mode:
- never
- when closing MPC-HC
- When exiting Fullscreen.

Thanks in advance.

pirlouy
28th January 2010, 13:02
@decapitado: have you cleared statistics after some seconds in fullscreen ? (with hotkey)

MPC-HTPC
28th January 2010, 13:24
How it works now. There are two cases

Case 1
a. MPC-HC starts in fullscreen mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after opening the file. This can also be configured.

Case 2
a. MPC-HC starts in window mode (this can be configured in the fullscreen configuration).
b. Refresh rate is changed automatically based on FPS after switching to fullscreen.

The case 2 is the one for what everything intended.
The first is a consequence.
I'm sorry.


Using available in OS modes and ChangeDisplaySettingsEx from WinAPI

Hi X-Dron,

thanks for explaining the intended behaviour, since I just start all my movies in full screen (I am double-clicking the movie in explorer and MPC-HC starts the movie in full screen). Assuming this case (responding to your case 1), would there be the possibility to add a delay check box that goes active, when MPC-HC start in fullscreen is checked, together with the possibility to specify a customisable delay?

decapitado
28th January 2010, 13:25
@decapitado: have you cleared statistics after some seconds in fullscreen ? (with hotkey)
Yes, it drops a couple of frames in the beginning. I clear the statistics but along the movie it keeps dropping some frames, not much, but if drops one in a pan scene itīs noticeable and pisses me :devil:
This happens with both EVR and EVR Sync.

With Haali Renderer I get 0 dropped frames but canīt use Shaders :(
Do you have any idea what it could be?

somy
28th January 2010, 13:37
@X-Dron: I prefered the old behavior: put default refresh rate ONLY when MPC-HC is closed, not when exiting fullscreen.

When you do tests, it's often that you alternate fullscreen/window mode. So I can't use "apply default monitor mode when exiting fullscreen". Please, use radio" buttons where we would have 3 choices:

Revert to default monitor mode:
- never
- when closing MPC-HC
- When exiting Fullscreen.

Thanks in advance.

How goes with MadVR test? Does auto refresh rate changer work with MadVR for you?

somy
28th January 2010, 13:38
Hi X-Dron,

thanks for explaining the intended behaviour, since I just start all my movies in full screen (I am double-clicking the movie in explorer and MPC-HC starts the movie in full screen). Assuming this case (responding to your case 1), would there be the possibility to add a delay check box that goes active, when MPC-HC start in fullscreen is checked, together with the possibility to specify a customisable delay?

The delay can be configurable so that people don't use MadVR will not notice any delay. IMO, many people only play movie in full screen mode......

noee
28th January 2010, 14:03
You guys, madVR is not stable with rez changes during playback. Older versions of madVR handled it, but .11 does not. madVR is still in very early testing and it seems that making changes to MPC-HC to overcome issues in madVR is counter-productive.

THX-UltraII
28th January 2010, 14:41
You guys, madVR is not stable with rez changes during playback. Older versions of madVR handled it, but .11 does not. madVR is still in very early testing and it seems that making changes to MPC-HC to overcome issues in madVR is counter-productive.

I EVR Custom and Sync as renderer ok to use with rez.changing?

somy
28th January 2010, 14:50
I EVR Custom and Sync as renderer ok to use with rez.changing?

Yep, EVR CP and EVR sync work fine with auto res change

X-Dron
28th January 2010, 15:02
somy, MPC-HTPC

The more detailed algorithm of case 1.
a. Launch MPC-HC
b. If "Launch in fullscreen" and filename is not empty then switch to fullscreen.
c. Detect the type of media
d. Connect the necessary render.
e. If AutoChangeFullscrRes.bEnabled and fullscreen then extract "AvgTimePerFrame" from RENDER's PinInfo, calculate the media fps and call SetDispMode ()

Any questions??
Render connects BEFOR monitor mode change.

somy
28th January 2010, 15:14
somy, MPC-HTPC

The more detailed algorithm of case 1.
a. Launch MPC-HC
b. If "Launch in fullscreen" and filename is not empty then switch to fullscreen.
c. Detect the type of media
d. Connect the necessary render.
e. If AutoChangeFullscrRes.bEnabled and fullscreen then extract "AvgTimePerFrame" from RENDER's PinInfo, calculate the media fps and call SetDispMode ()

Any questions??
Render connects BEFOR monitor mode change.

OK, I see. Thanks, X-Dron.
For people who wants MadVR with auto refresh change, you need to change refresh rate before launching MPC-HC. I did by a batch script. I'll post my script here tonight when I get home.

tetsuo55
28th January 2010, 16:02
MPC-HC desperately needs a manual.

Lets help eachother by creating one, to start i have created a page on our wiki (please log in to your sourceforge account to edit it)

http://sourceforge.net/apps/trac/mpc-hc/wiki/Manual

I have made some chapters that will be required, other than that its empty.

Lets solve this problem!

chiyuwang
28th January 2010, 16:16
I saw there is some code to change output pin BITMAPINFOHEADER biWidth and biHeight, in order to support DXVA, is there any option or setting to turn off DXVA and keep the original size, thanks in advance.

Peuj
28th January 2010, 17:08
MPC-HC desperately needs a manual.

Lets help eachother by creating one, to start i have created a page on our wiki (please log in to your sourceforge account to edit it)

http://sourceforge.net/apps/trac/mpc-hc/wiki/Manual

I have made some chapters that will be required, other than that its empty.

Lets solve this problem!

Nice idea ! Maybe some functionalities could detailed/explained by dev owner in a first time and then rearranged in the chapters.

Also a short tooltip description for each functionnality/option in MPC-HC itself could be really useful.

decapitado
28th January 2010, 18:02
X-Dron donīt forget the auto resolution change for DVDīs :)
thanks

pirlouy
28th January 2010, 19:14
How goes with MadVR test? Does auto refresh rate changer work with MadVR for you?
No, it does not work (or just one time, by chance, I think, or maybe because I use "open in fullscreen" option).

MPC-HTPC
28th January 2010, 20:04
somy, MPC-HTPC

The more detailed algorithm of case 1.
a. Launch MPC-HC
b. If "Launch in fullscreen" and filename is not empty then switch to fullscreen.
c. Detect the type of media
d. Connect the necessary render.
e. If AutoChangeFullscrRes.bEnabled and fullscreen then extract "AvgTimePerFrame" from RENDER's PinInfo, calculate the media fps and call SetDispMode ()

Any questions??
Render connects BEFOR monitor mode change.

Thanks for explaining X-Dron! Fully understood it. :)

somy
28th January 2010, 20:07
Thanks for explaining X-Dron! Fully understood it. :)

Hi, if you want auto refresh rate change, see my post in pirlouy's thread.

tetsuo55
28th January 2010, 20:53
Nice idea ! Maybe some functionalities could detailed/explained by dev owner in a first time and then rearranged in the chapters.

Also a short tooltip description for each functionnality/option in MPC-HC itself could be really useful.yeah we've been trying to add that, but we could use a lot of help there too.

Mercury_22
29th January 2010, 11:23
Why the "Open Device" function (capture) it's not working in the 64-bit version ? (32-bit it's working ok) Is this a known bug ?

PS In the 64-bit version it's missing "Smart Tee (video)" in the "Filters" section by comparison with the 32-bit version, also the "Windows Media Center" which is 64-bit too it's working OK

zoose
29th January 2010, 13:06
Unable to get the newly introduced MPEG2 DXVA decoder to work, the filter refuses to connect.
Tested builds 1557 and 1568 under XP and 7 using Nvidia drivers 196.21.

The MainConcept MPEG2 decoder works using DXVA

DXVA Checker results at http://i45.tinypic.com/9ks5zc.png

X-Dron
29th January 2010, 13:12
X-Dron donīt forget the auto resolution change for DVDīs :)


Coming soon :D

Gleb Egorych
29th January 2010, 14:00
Unable to get the newly introduced MPEG2 DXVA decoder to work, the filter refuses to connect.
Tested builds 1557 and 1568 under XP and 7 using Nvidia drivers 196.21.

The MainConcept MPEG2 decoder works using DXVA

DXVA Checker results at http://i45.tinypic.com/9ks5zc.png
MPC now has bitstream MPEG-2 DXVA decoder. According to DXVA checker your card does not support bitstream decoding (bitstream=full), only partial (idct and blending can be done in hardware). This is why MPC decoder does not work. MainConcept does support partial hardware decoding.

Polcius
29th January 2010, 14:31
Is it still impossible to get DVDs + DXVA + Subtitles with the new options?

fastplayer
29th January 2010, 14:58
Revision 1569 - Directory Listing
Modified Fri Jan 29 03:41:55 2010 UTC (10 hours, 12 minutes ago) by Aleksoid

Add : Windows 7 custom thumbnail preview - without border, GUI element;
Thanks a bunch for this one!
Any chance that the menu bar can be toggled on/off like all the other UI elements?

XPC
29th January 2010, 16:01
Why the "Open Device" function (capture) it's not working in the 64-bit version ? (32-bit it's working ok) Is this a known bug ?

PS In the 64-bit version it's missing "Smart Tee (video)" in the "Filters" section by comparison with the 32-bit version, also the "Windows Media Center" which is 64-bit too it's working OK

Mine is working ok in the 64-bit version. Is your MPEG-2 Demultiplexer present in your "filters" section?

XPC
29th January 2010, 16:08
Today

06:26 Changeset [1570] by Aleksoid
Fix : bug #237(DVB channels are all saved as number 0 when tunning);

Thanks for adding the two patches. The second one fixes Ticket #241 (DVB: Impossible to select ac3 when channel has several audio languages).

Mercury_22
29th January 2010, 16:19
Mine is working ok in the 64-bit version. Is your MPEG-2 Demultiplexer present in your "filters" section?

Only for DVBT MPEG-2 Demultiplexer it's present (for DVBC it's not present in both versions 32-bit and 64bit)! but I was referring to analog also how do you tune / search channels for DVBC and DVBT ?

XPC
29th January 2010, 17:04
Mercury_22,

For searching DVB-T/C channels, you have to select "File/open device" (be sure that you have Digital as default device), and then press "Shift-T" to get the tunning dialog.

If you use a version before 1570, you will have to edit the ini file to fix the channel numbers (they were all saved as 0).

LigH
29th January 2010, 20:48
1). I'm getting a 'double image' at the top of the screen when playing avi files (mkv is ok). The old version (1249) didn't do this. However, I prefer the extra sync settings in the newer version (currently 1529).

One more report in the german doom9/Gleitz board (http://forum.gleitz.info/showthread.php?t=41805).

cengizhan
29th January 2010, 21:40
I hope that a better transponder/satellite scan will be available and we will have an alternative dvb application

JarrettH
29th January 2010, 21:54
Thanks for adding mpeg2 dxva. How's the quality of it? Do you have options to adjust in the filter?
I've been using PowerDVD 9 within mpc-hc...I miss my ivtc and nice deinterlacing!

edigee
29th January 2010, 23:04
Revision 1570
The avi image bug is still present.
Regarding MPEG2, for me the best option is the MicrosoftMPEG2 decoder(available in Vista) that works properly in DXVA mode and supports files with 60fps. The Cyberlink Video/SP decoder(PDVD9) and Nero Video Decoder are other good options but with a lower image quality.
I can't use the new mpeg2 dxva filter because I don't have the proper card.

JarrettH
29th January 2010, 23:38
Is that the same default one in Windows 7? It's called Microsoft DTV-DVD Video Decoder in Win 7

You're right, the Microsoft one is DXVA too.

Is there a way to tell if it's using ivtc? If I skip 30 frames without one repeating does that mean it's working? o_O

ar-jar
29th January 2010, 23:43
@ar-jar: I direct this report at you as I think that rev 1557 is the cause of this regression. Basically when I use rev1557 32bit available on xvidvideo.ru, when the player loses its direct3d surface and reinitialize, it forgets to do that for the subtitle renderer so I will be unable to see subtitle after a UAC prompt unless I disable then enable the internal sub renderer. I use EVR Sync.

If you need more information, please say so.

Thanks, i'll look into it. I have only recently got my first W7 machine and I hardly knew what a UAC prompt is. What typically triggers your UAC prompt (just so that I can reproduce the problem)? -A

ar-jar
29th January 2010, 23:46
Does anyone can play an entire movie with ZERO dropped frames in the statistics?

I get between 50 a 100 in each movie, maybe itīs a renderer problem.

Yes. With sync renderer and proper settings i get zero drops, zero sync glitches (if i don't do coding at the same time in VS or something). Are you sure you aren't running an antivirus or some other similar cpu hog process in the background? What's your CPU load? (The task manager causes drops by itself though) -A

erikt
30th January 2010, 02:16
I found a similar set of reports at the end of last year, but I didn't see a solution posted. If I choose EVR Custom, I get extremely choppy, or extremely quiet audio out. With vanilla EVR, it works fine. Was this solved? My setup is:

Win7 64-bit
MPC-HC 64-bit 1.3.1249
E7200 on a G45 mobo
ATI 5750 video card
HDMI out from 5750 to Denon receiver

Thanks,
ET

decapitado
30th January 2010, 03:21
Yes. With sync renderer and proper settings i get zero drops, zero sync glitches (if i don't do coding at the same time in VS or something). Are you sure you aren't running an antivirus or some other similar cpu hog process in the background? What's your CPU load? (The task manager causes drops by itself though) -A
What are your setting in the sync renderer?
It was a clean win7 install, I have microsoft security essentials running but it doesnīt take too much cpu to run in background.

The CPU load is between 5 and 15%.

Do you achieve those results with or without subtitles? Or both? What settings can I change in Sync Renderer to perfect playback?

thanks

thuan
30th January 2010, 04:49
Thanks, i'll look into it. I have only recently got my first W7 machine and I hardly knew what a UAC prompt is. What typically triggers your UAC prompt (just so that I can reproduce the problem)? -A

You can trigger a UAC prompt by right clicking on an application icon and choose "run as administrator" or simply press the Windows button on your keyboard, type into the search box an application name or command (like cmd or regedit) then use Ctrl+Shift+Enter, a UAC prompt will appear.

flanger216
30th January 2010, 07:03
I'm getting a D3DERR_NOTAVAILABLE error whenever I try to play a movie in D3D fullscreen mode. This is on a GT220 in Windows 7.

X-Files
30th January 2010, 08:06
Revision 1570
The avi image bug is still present.

Same bug at v1577 , go back to v1489, so far its OK.

kramcd
30th January 2010, 10:02
Same bug at v1577 , go back to v1489, so far its OK.

Is anyone looking into this fault?

sidi0us
30th January 2010, 11:02
Hi, I have this weird glitch that I just can't find a proper way to resolve it.

This is what I'm talking about.

evr-cp (default) (http://i371.photobucket.com/albums/oo154/sidi0us/evr-cpdefault.jpg) // evr-cp (mpc audio renderer) (http://i371.photobucket.com/albums/oo154/sidi0us/evr-cpmpcaudiorenderer.jpg)

evr - present at nearest vsync (default) (http://i371.photobucket.com/albums/oo154/sidi0us/evr-presentatnearestvsyncdefault.jpg) // evr - present at nearest vsync (mpc audio renderer) (http://i371.photobucket.com/albums/oo154/sidi0us/evr-presentatnearestvsyncmpcaudiore.jpg)

As you cand see, the only way to completely remove it is to use MPC renderer, but the sound is crackling and audio gets slightly aut of sync.

Here (http://www.mediafire.com/file/zmjjunnlzzz/sample.mkv) is a sample of the video (mkv 23.97 fps). On my sistem (analog 5.1) the glitch appears twice, first at 00:07 and then at 00:15.

My specs are: Win 7 x86, e2180, Radeon 4670 (Catalyst 10.1), Realtek HD alc888 (2.41).
I've tried every renderer, different versions of mpc-hc (1557, 1489, 1249, 604), different audio and video drivers and nothing.