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

Sirber
23rd May 2007, 13:27
Any plan for subtitles and evr?
How can we control the sharpness with evr? (like with VRM9)

Casimir666
23rd May 2007, 18:25
Any plan for subtitles and evr?
How can we control the sharpness with evr? (like with VRM9)
I'm working on it but not completly ready yet

FFWD
23rd May 2007, 18:32
Sweet. Can you add MPC to Vista's AutoPlay Control Panel lists?

Sirber
23rd May 2007, 21:16
Sweet. Can you add MPC to Vista's AutoPlay Control Panel lists?

run as admin, go in options / formats, click video. should be ok.

FFWD
23rd May 2007, 21:44
run as admin, go in options / formats, click video. should be ok.Thanks!

EnF
24th May 2007, 00:01
Is it possible to also fix the screensaver problem on Vista?
(screensaver kicks in on Vista while playing video)

Thanks,
EnF

ShadowVlican
24th May 2007, 06:31
Casimir666, you might want to double check the builtin vobsub

i can't tell you much technically (since i don't understand programming language) but i can tell you that subtitles will sometimes work and sometimes won't (it's weird.. some files will work fine.. while some will work sometimes... while some won't work at all)

however, with this build, everything works fine (just like the official guliverkli build):
http://ffdshow.faireal.net/mirror/Media%20Player%20Classic/ (the one dated 24-Dec-2006)

of course i've made sure i'm using VMR9 renderless (identical settings, latest dx and drivers, etc....)

so you might want to do some testing of your own by playing MKV files with builtin subtitles/fonts

Dr.Khron
24th May 2007, 12:43
This might be kind of random, but is there a patch availible to make MPC respond to the MS MCE remote control?

Sirber
24th May 2007, 15:04
Is it possible to also fix the screensaver problem on Vista?
(screensaver kicks in on Vista while playing video)

Thanks,
EnFI also get that problem :)

Casimir666
24th May 2007, 19:37
i can't tell you much technically (since i don't understand programming language) but i can tell you that subtitles will sometimes work and sometimes won't (it's weird.. some files will work fine.. while some will work sometimes... while some won't work at all)
You are the second person with this problem :( It's happen only with MKV that's it?
Someone have send me a sample file with this problem i'll look when i have time

ShadowVlican
25th May 2007, 03:45
You are the second person with this problem :( It's happen only with MKV that's it?
Someone have send me a sample file with this problem i'll look when i have time
it's hard to reproduce... it's random

i open and close videos (without touching MPC settings), and sometimes subtitles would show and sometimes they wouldn't

-seems to only happen with MKV files (the randomness)
-external subs (like asdf.avi and asdf.srt) seem to load fine all the time
-haven't tried .OGM

i'm sure it's not a codec/filter issue:
-using the latest haali media splitter
-random sub disappearing only with your MPC build as said before

i'd send you a clip if i knew how... but they can all be found @ www.animesuki.com :)

wozio
26th May 2007, 07:26
Casimir666 do you use custom allocator for evr implementation in mpc? What is the output data? Always d3d surface?

Casimir666
26th May 2007, 08:54
Casimir666 do you use custom allocator for evr implementation in mpc?
Not yet, but i will in next release

What is the output data? Always d3d surface?
Yes EVR work internally with Dx9 surfaces. Custom presenter create the surfaces, and give it to EVR Mixer. Mixer fill the surface with video, the presenter render on screen (mine will add subtitles and pixel shader before render).

Tery
26th May 2007, 09:49
Casimir666, you might want to double check the builtin vobsub

i can't tell you much technically (since i don't understand programming language) but i can tell you that subtitles will sometimes work and sometimes won't (it's weird.. some files will work fine.. while some will work sometimes... while some won't work at all)


I have the same problem but only when I'm playing a game (wow), without it's works great, when playing a game no subtitle at all.

_xxl
26th May 2007, 10:47
Latest dtsac3source:
Index: DTSAC3Source.cpp
===================================================================
--- DTSAC3Source.cpp (revision 113)
+++ DTSAC3Source.cpp (working copy)
@@ -194,11 +194,13 @@
1509750,1920000,2048000,3072000,3840000,0,0,0
};

+#define DTS_MAGIC_NUMBER 6 //magic number to make sonic audio decoder 4.2 happy
+
m_nSamplesPerSec = freqtbl[freq];
m_nAvgBytesPerSec = (bitratetbl[transbitrate] + 4) / 8;
// m_nBytesPerFrame = m_nAvgBytesPerSec*10.656063618290258449304174950298/1000 + 0.5;
- m_nBytesPerFrame = framebytes*6;
- m_AvgTimePerFrame = 10000000i64 * m_nBytesPerFrame * 8 / bitratetbl[transbitrate]*6;
+ m_nBytesPerFrame = framebytes*DTS_MAGIC_NUMBER;
+ m_AvgTimePerFrame = 10000000i64 * m_nBytesPerFrame * 8 / bitratetbl[transbitrate];

m_subtype = MEDIASUBTYPE_DTS;
m_wFormatTag = WAVE_FORMAT_DVD_DTS;
@@ -238,10 +240,12 @@
448000,448000,512000,512000,576000,576000,640000,640000
};

+#define AC3_MAGIC_NUMBER 3 //magic number to make sonic audio decoder 4.2 happy
+
m_nSamplesPerSec = freqtbl[freq];
m_nAvgBytesPerSec = (bitratetbl[bitrate] + 4) / 8;
- m_nBytesPerFrame = m_nAvgBytesPerSec*32/1000*3;
- m_AvgTimePerFrame = 10000000i64 * m_nBytesPerFrame * 8 / bitratetbl[bitrate] *3;
+ m_nBytesPerFrame = m_nAvgBytesPerSec*32/1000*AC3_MAGIC_NUMBER;
+ m_AvgTimePerFrame = 10000000i64 * m_nBytesPerFrame * 8 / bitratetbl[bitrate];

m_subtype = MEDIASUBTYPE_DOLBY_AC3;
m_wFormatTag = WAVE_FORMAT_DOLBY_AC3;

Also I have this issue while checking SVN.
Error: Failed to add directory 'H:\mpc\trunk\src\apps\ShuttlePN31': object of the same name already exists

Do you know why?

Casimir666
26th May 2007, 12:18
Also I have this issue while checking SVN.

Do you know why?

I've made a mistake when adding PN31 project in sourceforge. If you look mpc-hc svn root, you will see
TestD3D
trunk
trunk\src\apps\ShuttlePN31

Last is wrong one, because it also exist in
trunk -> src -> app -> ShuttlePN31


For the first issue i didn't understand what you mean :(

wozio
27th May 2007, 10:44
Yes EVR work internally with Dx9 surfaces. Custom presenter create the surfaces, and give it to EVR Mixer. Mixer fill the surface with video, the presenter render on screen (mine will add subtitles and pixel shader before render).

So basically the same as in VMR9. Only difference I noticed is that custom allocator must implement presentation timings.

Casimir666
27th May 2007, 17:53
Release 1.0.7.0 is now available on SourceForge, with thoses modifications :

- Added : "EVR custom presenter" mode added as output renderer. In this mode EVR support internal MPC subtitles, D3D fullscreen option, tearing test and pixels shader.
- Added : Statistics option, for the moment display the jitter curve (Ctrl + J to activate) for VMR9 renderless and EVR custom pres.
- Modify: Output property page updated, options are now disabled when not supported by selected renderer
- Fixed : mouse cursor invisible in Fullscreen mode
- Fixed : clic to play was not working for some renderers
- Fixed : one pixel width rectangle not displayed around video window (bad refresh problem)
- Fixed : crash when switching from VMR9 renderless to VRM7 renderless with Vista


In VMR9 renderless and EVR custom pres. mode it's possible to display a jitter curve using "Ctrl+J" shortcut. This curve show difference between the moment one frame was expected to be displayed, and the moment it was really displayed.
The longest horizontal blue line (2 pixels width) represent 0. If the red line is display above this line, it mean the timing is perfect. Short blue represent 10ms, and long one represent 40ms.

This show interesting results : on Windows XP without D3D Fullscreen option activated playback is not smooth at all (It show a jawed curve relatively regular). On XP but with D3D option activated the curve is much more better, and stay not far from 0.
With Vista, wether D3D option is activated or not, the curve is flat too and really look like XP+D3D fs. My conclusions about all this are :
- D3D fullscreen option improve playback smoothness on Windows XP
- Under Vista there is almost no differences between VMR9 and EVR about smoothness.
- Vista is better than XP for windowed mode

It will be interesting to compare results with an ATI video card to see differences.

madshi
27th May 2007, 18:03
Thanks very much Casimir, I appreciate that you're working on improving my favourite media player... :)

mariner
27th May 2007, 18:08
You are brilliant, Casimir.

Casimir666
27th May 2007, 19:25
Jitter test screenshots with an nVidia 6600GT :

XP / EVR : windowed mode (without D3D fullscreen option)
http://img292.imageshack.us/img292/6339/evrxpwindowedvu8.th.png (http://img292.imageshack.us/my.php?image=evrxpwindowedvu8.png)

XP / EVR : D3D fullscreen on
http://img529.imageshack.us/img529/977/evrxpfullscreenhu2.th.png (http://img529.imageshack.us/my.php?image=evrxpfullscreenhu2.png)

XP / VMR9 : D3D fullscreen on
http://img529.imageshack.us/img529/8538/vmr9xpfullscreenfj7.th.png (http://img529.imageshack.us/my.php?image=vmr9xpfullscreenfj7.png)

Vista / EVR : windowed mode (D3D fullscreen off)
http://img405.imageshack.us/img405/3383/evrvistawindowedqw0.th.png (http://img405.imageshack.us/my.php?image=evrvistawindowedqw0.png)

Vista / EVR : D3D fullscreen on
http://img292.imageshack.us/img292/2149/evrvistafullscreenif1.th.png (http://img292.imageshack.us/my.php?image=evrvistafullscreenif1.png)

Egh
27th May 2007, 19:51
Casimir666 is superior!!!!

Well just tested new build under gr8 nvidia 160.02 drivers.

Jitter:

1.Noticable under VMR9, both YV12 and RGB32 (from ffdshow). Not much difference in smoothness between those two.

2. EVR Custom presenter. LESS jitter compared to VMR9 for YV12, but MUCH MORE when ffdshow outputs in RGB32.

Colourspaces:
New build DOES WORK with EVR in RGB32!!!! In custom presenter only though it's enough (since i prefer to use internal subtitle renderer). It still crashes on default EVR when fed with RGB32 data.

Subtitles:
Not a bug but suggesting: would be better if you make "position subtitles to frame" as default setting.


Overall wonderful job. Pitty though you can't compare jitter with Haali renderer.

Also, is it possible for EVR custom presenter to make conversion like 601<->709 and especially TV<>PC range?

Casimir666
27th May 2007, 22:04
Subtitles:
Not a bug but suggesting: would be better if you make "position subtitles to frame" as default setting.
:confused: I don't know this option? What is it use for?


Also, is it possible for EVR custom presenter to make conversion like 601<->709 and especially TV<>PC range?
Should be possible with shader i think ...

Casimir666
27th May 2007, 22:41
Colourspaces:
New build DOES WORK with EVR in RGB32!!!! In custom presenter only though it's enough (since i prefer to use internal subtitle renderer). It still crashes on default EVR when fed with RGB32 data.

I have try with latest ffdshow Vista optimized, configure to do just YV12 -> RGB convertion and i have no jitter with EVR custom and no crash with EVR. What kind of video are you reading? You have something else activated on ffdshow?

Pyr0
28th May 2007, 03:53
Thanks for the new build Casimir666, i've been looking forward to the next release :)

I'm not sure if you will have had a chance to look into it (or even if you plan to al all)...
but would you happen to know why media player classic is not recognised by vista as an active application? (monitor screensaver/powersave kicks in while playing)

[edit] there's still a bug with left-clicking to pause starting the movie from the beginning again.
doesn't always happen, but seems to only happen when clicking on or near the lower black border of a video

iron2000
28th May 2007, 08:07
Nice! The new build fixed my problems.
But now after using it I noticed that pictures are sharper in MPCHC, a bit too sharp, reavealing jaggy, pixelish lines.

Casimir666
28th May 2007, 10:32
but would you happen to know why media player classic is not recognised by vista as an active application? (monitor screensaver/powersave kicks in while playing)

Didn't seems to be possible to kick screensaver with Vista if it's password protected :eek: :eek:
http://msdn2.microsoft.com/en-us/library/ms646360.aspx

Power saving was missing i will add it.

CruNcher
28th May 2007, 10:43
@Casimir666
This new Jitter Display is also nice for Debuging Decoders, detecting very small frame drops very efficient visualy :), better then just to look @ the statistics numerical display, i could find this way perfect playback settings with Nvidias PureVideo Decoder and Driver and their Per Pixel Adaptive Deinterlacer but funny is the best for me is the 2d surrface not the 3d surface in terms of less jitter with VMR9 renderless, also the regular offscreen surface is more performant here (in 3D fullscreen mode with DXVA, much smoother playback) then with the 3d surface. Please add more statistics like Frame Number, DXVA mode, Colorspace, Bitrate, Sync, Cpu utilization but only mpcs counter not the whole system, filterchain in 3D fullscreen mode :D, hmm with Cyberlinks H.264 Decoder and 2d surface the jitter display doesn't work only the tearing test in 3d surface it does for Nvidias Mpeg-2 PureVideo it works in both so it seems also to be Decoder dependent if it works or not.

Pyr0
28th May 2007, 11:48
Didn't seems to be possible to kick screensaver with Vista if it's password protected :eek: :eek:
http://msdn2.microsoft.com/en-us/library/ms646360.aspx

Power saving was missing i will add it.

Thanks Casimir666 :thanks:
I don't actually have the screensaver enabled at all at the moment (and definitely not password protected), but I do use the power scheme set to switch off the monitor after being idle for 5 mins.
It's just really annoying to be watching a movie and the screen turns off :rolleyes: :D

Casimir666
28th May 2007, 13:00
Nice! The new build fixed my problems.
But now after using it I noticed that pictures are sharper in MPCHC, a bit too sharp, reavealing jaggy, pixelish lines.
Are you using YUV mixing option? If so try to remove it and leave just VMR9 mixer mode i think there is a bug with this option

Sirber
28th May 2007, 13:32
@Casimir666

Thanks for the new release! :D

Kado
28th May 2007, 14:32
@Casimir666

I have no tearing with the new build using EVR but the subs still don't display properly using any renderer. Did my files reached you?
Looks promising these MPC builds.

Casimir666
28th May 2007, 16:26
@Casimir666

I have no tearing with the new build using EVR but the subs still don't display properly using any renderer. Did my files reached you?
Looks promising these MPC builds.

Yes i received : your sub are working on my XP but i've just discover they are not on my Vista. I'll have a look ;)

Casimir666
28th May 2007, 16:34
it seems also to be Decoder dependent if it works or not.

Yes i've noticed : it's because i was trusting sample duration given by decoders, but they sometimes put crazy value (some even put 0! :mad:) Next version will estimate framerate by itself.

LoRd_MuldeR
28th May 2007, 17:39
Casimir666, I noticed a bug (?) with your MPC mod:

The problem happens with AVI files:
Sometimes MPC doesn't play the AVI from the beginning!
Instead it jumps to some random (?) position, right after I open the AVI file.
When I press "Stop" and then "Play" it plays from the beginning properly...

I tested both: MPC's internal AVI Splitter and Haali's Splitter. No difference!
There is no such problem with drevil_xxl's latest MPC build!


// EDIT

Sorry, forget about it. It was my mistake.

Sirber
28th May 2007, 17:52
Go in:
* Option
* Casimir666
uncheck "remember DVD position" and "remember file position"

sillKotscha
28th May 2007, 18:00
do I need ffdshow's postprocessing option enabled if I use EVR??...

because if I enable postprocessing in ffdshow and set it to automatic postprocessing than the picture is really blurred / to heavily post-processed... so I've disabled it :)

in other words - I don't need ffdshow's postprocessing anymore if I've enabled EVR ?...

http://img2.freeimagehosting.net/uploads/fb52f95a4a.jpg (http://www.freeimagehosting.net/)

thx, sill

LoRd_MuldeR
28th May 2007, 18:05
Go in:
* Option
* Casimir666
uncheck "remember DVD position" and "remember file position"

:thanks: :stupid:


I think this should be disabled by default, as it's rather confusing...

Sirber
28th May 2007, 18:49
:thanks: :stupid:


I think this should be disabled by default, as it's rather confusing...

same goes for D3D output. the player don't work very well with that enabled :)

Avish
28th May 2007, 19:39
On XP, EVR doesn't seem to work with internal mpeg2 decoder... whenever I choose this combo, it automatically falls back to default video renderer. I tried several DVDs, same result.

Egh
28th May 2007, 19:56
:confused: I don't know this option? What is it use for?



Should be possible with shader i think ...

That's a very important option, it's used for positioning subtitles when rendered internally by MPC.

If it's checked, it positions it relatively to the FRAME, if not it positiones them relative to SCREEN (e.g. in FULLscreen mode) and that makes sizes and positions for styled subs completely off. Unfortunately not all people know that option and then start bitching that MPC doesn't render subs properly :P

if you can do that conversion, by all means do try it, might solve probably MAIN problem in video rendering :rofl: ^^


I have try with latest ffdshow Vista optimized, configure to do just YV12 -> RGB convertion and i have no jitter with EVR custom and no crash with EVR. What kind of video are you reading? You have something else activated on ffdshow?

I use casual clsid build, i have XP SP2 with .NET 3.0 installed. I have 7600 nvidia with 160.02 drivers. On some drivers versions (iirc 101.09) i could have played in RGB32 on default EVR, but it was anyway much more CPU consuming (than VMR9 in same mode). Is there any difference between vista optimized and casual ffdshow builds on XP ?

NOTE! I do not use pitiful DVD rezo for tests, all above was tested on 720p video.

Edit
Just for illustration, all rendered via custom presenter:
http://xs.to/xs.php?h=xs215&d=07221&f=gits1rgb32.jpg
http://xs.to/xs.php?h=xs215&d=07221&f=gits1yuv2.jpg

For cross-check, rendered via VMR9 renderless, that's RGB32 too!
http://xs.to/xs.php?h=xs215&d=07221&f=gits1VMR9.jpg

foxyshadis
28th May 2007, 20:13
do I need ffdshow's postprocessing option enabled if I use EVR??...

because if I enable postprocessing in ffdshow and set it to automatic postprocessing than the picture is really blurred / to heavily post-processed... so I've disabled it :)

in other words - I don't need ffdshow's postprocessing anymore if I've enabled EVR ?...


thx, sill
post-processing really doesn't have anything to do with the renderer used. It should look about the same in everything from GDI to Overlay to VMR to EVR.

If it's making it all smeared and blurry then you're just cranking PP up too high; for divx/xvid-type sources it should be around 40%, for avc it should be totally off (newer versions will disable it automatically), and for raw it has to be tweaked very specifically.

JarrettH
28th May 2007, 20:19
I wonder if Gabest will continue delveloping MPC :confused::)

Egh
28th May 2007, 20:22
I wonder if Gabest will continue delveloping MPC :confused::)

Hardly doubtful.

That's why we all so happy one more developer appeared :)
And with new ideas to keep project running, what is really important, since until Casimir
nothing really new was added in MPC for about a year.

clsid
28th May 2007, 20:29
Is there any difference between vista optimized and casual ffdshow builds on XP ?No difference on XP. In Vista the only difference is an additional option for selecting an audio device for multichannel audio. BTW, my builds are also 'Vista optimized'.

JarrettH
28th May 2007, 20:37
Nm...found all the changes in your sig

haha ok answered all my questions after I looked about the new options in this mod

sillKotscha
28th May 2007, 20:46
post-processing really doesn't have anything to do with the renderer used. It should look about the same in everything from GDI to Overlay to VMR to EVR.

first thanks for your answer but are you really sure?... 'cause if I use VMR9 without post-processing in ffdshow it is nearly the same result as with VMR7 (windowed) in conjunction with ffdshow's post-processing...

so, at least visually, I can see a difference using different renderer with/ without post-processing...

Kado
28th May 2007, 21:54
Yes i received : your sub are working on my XP but i've just discover they are not on my Vista. I'll have a look ;)

Actually I'm using XP.... Only the embedded subs don't work though. I'll try to make a proper sample so more people can test it.


Sample file here (http://rapidshare.com/files/33957901/movie.rar.html). Password=> "doom9"

Using Drevil's MPC subs are rendered properly while with Casimir666's MPC I only see subs at 00:02 and at 00:35.
Same settings were used in both MPCs. Used Haali media splitter and renderer, ffdshow for a/v decoding and MPC internal subs renderer.
The main text never shows only the additional one like when 2 subs for 2 different people that are talking at the same time.

The more people test this the better for more accurate feedback.
WinXP SP2
GF 6800GS 158.22
DX 9.0c April 2007

Egh
29th May 2007, 01:34
Using Drevil's MPC subs are rendered properly while with Casimir666's MPC I only see subs at 00:02 and at 00:35.
Same settings were used in both MPCs. Used Haali media splitter and renderer, ffdshow for a/v decoding and MPC internal subs renderer.
The main text never shows only the additional one like when 2 subs for 2 different people that are talking at the same time.

The more people test this the better for more accurate feedback.


I don't see subs on Casimir build at all in this sample. I tried both VMR9 and CustomEVR. Shows as usual on normal MPC build.

Rash
29th May 2007, 02:07
Well, as far as the screensaver / power off problem, I know that WMP disables them and I believe so does KMPlayer. May I suggest then MSDN's official forums?
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=129&SiteID=1

I ran a search on this forum but couldn't find anyone with similar problems. Having the screensaver or the monitor powering down while watching a video is annoying indeed.

Great job, Casimir! Thank you. ;)

----------------------------------------------------------

Oh, by the way, before I forget. I've noticed that the way MPC handles its file associations ruin other applications associations (i.e, MPC directly modifies other applications keys currently associated with the extension, for example WMP11.AssocFile.avi). This is not desired. So, I've created a reg file to use Vista's new File Association mechanism (that is handled by Vista itself, program independent). You can go to your Default Programs -> Set your default programs to see some applications that use this method. Anyway, my reg didn't work on my system but I believe it is related to a specific problem I have. I don't have the reg file here, but if you guys are willing to test or simply have a look at it, I might send it to you when I get home.

I followed all instructions provided by Microsoft here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_new_vista/default_programs.asp
They are actually quite simple, and using Vista's new File Association scheme doesn't seem to be a problem. ;)