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

ooferomen
12th June 2008, 23:51
is there any way to manually modify the dxva caps for my card? or force the mpc video decoder to use a certain mode?

saint-francis
13th June 2008, 00:29
saint-francis, check up my assembling of file Mpcvideodec.ax. (http://www.xvidvideo.ru/files/tmp_files/MPCVideoDec.7z), snv.578

Same thing happens with that one too. I only tried that one on one system but the other one made graphedit crash on two systems so I'm assuming that the issue will persist on the other.
They are both XP SP3 x86.

STaRGaZeR
13th June 2008, 02:11
Have you tried simply unbinding the App Command for Volume Up and Volume Down in MPC's key configuration page? VOLUME_UP and VOLUME_DOWN are the multimedia keys, so if MPC doesn't react to them Windows should handle them normally...

np: Alva Noto + Ryuichi Sakamoto - Morning (Insen)

Yes, and the wheel still controls MPC's volume. In fact, I've unbound everything that has any relationship with volume and tried every combination with no luck :(

Re-tested and working! :confused:

this will not be done, because modify the general volume instead of modify the application-specific volume is a bad behavior.

if you want to modify the main volume with your keyboard, use an other software dedicated to that purpose if you don't have a multimedia keyboard, otherwise do what Leak said, it should work.

It's hard to do it (just curiosity)? All my family/friends are also using MPC because of the great player it is but they were all annoyed with this thing. Thanks anyway :)

EDIT: Forget all of this. I've tried Leak solution again and it's working, WTH. THANKS! :confused: http://www.xtremesystems.org/forums/images/smilies/bow.gif

Can you also take a look at this (http://forum.doom9.org/showthread.php?p=1145933#post1145933) SD samples? Or at least those who play OK with PDVD Decoder (1 & 4). Sample 3 is OK with the lastest builds (because DXVA is disabled with 16 ref frames).

ericab
13th June 2008, 04:57
The Hardware:

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

2 gfx cards & 3 monitors in 1 pc:
8600GT
8800GTS (g92)

&&

2 monitors (viewsonic's) connected to 8800GTS
1 monitor (hdtv, samsung) connected to 8600GT....

=

Monitor 1 (viewsonic, 8800GTS) connected as the "primary" monitor as set in windows display properties.
Monitor 2 (viewsonic, 8800GTS) enabled as "extend windows desktop onto this monitor"
Monitor 3 (samsung, 8600GT) enabled as "extend windows desktop onto this monitor"
--------------------

The Process:

when double clicking on MPC-HC (build 578), MPC-HC opens on monitor 1, aka viewsonic PRIMARY 8800GTS....

...however i want to view my HD mkv's on my samsung (Monitor 3, 8600GT)

so, i drag the MPC-HC window to monitor 3, aka samsug 8800GTS.

then, i drag and drop an HD 720p mkv onto MPC-HC (vmr9 renderless, w/ internal MPC-HC decoder)

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

The Problem:

Right clicking on the movie window; navigating to "Filters"; Then Clicking on "MPC Video Decoder", YIELDS:

DXVA MODE: H.264 bit stream decoder, no FGT

VIDEO CARD: 8800 GTS 512 (4318)



(which looks ok... CPU usage @ 1% ---> 4%... except for ... see "the analysis"
-------------------

The Analysis:

simply put: the movie is not being watched on my "8800 GTS 512 (4318)", it supposed to be watched on mt 8600GT.

during playback; the movie randomly slows down in FPS VERY VERY VERY quickly becoming OUT OF SYNC with the audio, (DTS or AC3) for about 4-5 seconds.... then VERY VERY VERY quickly speeds back up, playing properly once again (if i was to time this occurrence, i would say roughly every 5 MINUTES it happens).

side-note: i didn't think the 8800GTS were able to do H/W decoding of h/x.264 ????
-------------------

The Question:

since MPC-HC's decoder "thinks" the video is being "decoded" by my 8800GTS; is this the problem of playback issues ?? is there a way to launch MPC-HC EXCLUSIVELY onto monitor 3 (samsung 8600) so the decoder ""attaches"" (for lack of a better programming term... :confused: ) to my 8600 from the start ??

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

-eric

mariner
13th June 2008, 05:16
I... when ever I register the .ax graphedit crashes when I try to open up driectshow filters. As soon as I unregister the .ax I can open it up...

BTW, I'm using this (http://forum.doom9.org/showpost.php?p=1148207&postcount=2535)version.

Similar problem here under XP SP3, but works fine using RadScorpion's Open Source GraphEdit.

Joniii
13th June 2008, 07:00
I'm trying to build a graph with MPCVideoDec.ax for decoding .mkv's remuxed from .m2ts files from a BD but when ever I register the .ax graphedit crashes when I try to open up driectshow filters. As soon as I unregister the .ax I can open it up; but of course the decoder isn't there. Any ideas?

BTW, I'm using this (http://forum.doom9.org/showpost.php?p=1148207&postcount=2535)version.

Something related to this problem i'm having?

I think that standalone codecs aren't registered correctly. I registered both mpegsplitter.ax and mpcvideodec.ax (the ones someone compiled few pages back) with dsfmgr, then tried to play .m2ts files and both WMP11 and VMC gave error that I don't have codecs to play this file.

I then unregistered both codecs and then registered v 1.1.0.0 codecs from sourceforge, then replaced those .ax files with the new versions which didn't work before, after that I was able to play all .m2ts files.

lych_necross
13th June 2008, 07:18
Good question, I would like to know that too!

(about procamp) I don't know much about shader programming, but from what I can tell from the code, it is basically a levels function (similar to Didee's Ylevels). In addition to doing 16-235 -> 0-255, it probably makes adjustments to the gamma curve.

Joniii
13th June 2008, 07:40
I'm having some problems.

1)
I think that standalone codecs aren't registered correctly. I registered both mpegsplitter.ax and mpcvideodec.ax (the ones someone compiled awhile ago) with dsfmgr, then tried to play .m2ts files and both WMP11 and VMC gave error that I don't have codecs to play this file.

I then unregistered both codecs and then registered v 1.1.0.0 codecs from sourceforge, then replaced those .ax files with the new versions which didn't work before, after that I was able to play all .m2ts files.

2)
Might also be something wrong with the splitter dealing with H.264 .m2ts files. Some of my H.264 Blu-ray movies won't play with mpegsplitter + any video decoder. They play but the AR is wrong and there is just tiny squished picture with horrible quality. With Haali, every H.264 movies plays fine in every player and decoder combination.

Sample (http:\\www.netikka.net\enclave\Sample.m2ts) (H.264, Widescreen)

MPC-HC (Mpegsplitter + MPCVideoDec)
Tiny picture in windowed mode, seems to open in widescreen when going to full screen mode.

WMP11 (Mpegsplitter + Cyberlink MPEG-2 decoder)
Movie plays in 4:3

WMP11 (Mpegsplitter + FFDSHOW)
Black Screen

3)
If I use mpegsplitter + mpcvideodecoder I get blocks with all VC-1 Blu-rays. Swiching to any other video decoder and I get no blocks (wmvideo decoder dmo, ffdshow, arcsoft) but with all of those there is bad stutter. If I switch to haali splitter, all stutter is gone and no blocks.

I just noticed that when I use Haali splitter and MPCVideodecoder all stutter and those weird colourful blocks are gone. Also, no AR problems with H.264. Everything works 100%, so it seems that it's all because MPEGSplitter.

Mercury_22
13th June 2008, 11:02
I've just tested this video ogg (Theora) (http://rapidshare.com/files/122112854/TEST.ogg.html) on a friend's notebook with an ATI RADEON XPRESS 1100 (latest drivers) (http://support.asus.com/download/download.aspx?model=X51R&SLanguage=en-us), Vista x86 Ultimate and MPC-HC it's crashing with this message Display driver stopped responding and has recovered when I use any spliter but internal ! Although using the internal gives me the old bug : Video it's freezing after1-2 sec !
BUT WMP has no problem playing the same file with Haali's Media Splitter !

On the other hand on my system Intel G35 MPC-HC it's playing the same file OK with Haali's Media Splitter !

Can anyone help me ? :helpful:
If the drivers are the problem can somebody point me to latest ASUS / ATI drivers, because ATI's latest CAN"T be installed on my friend's notebook ! :thanks:

Edit : Problem solved ! I was using VMR9 and switching to EVR / EVR custom solved the problem ! ( I thought VMR9 it's the safest :eek: ) but still only when using Haali's Media Splitter ! Can we hope for an improvement to the internal OGG spliter ? Please !

johnsonlam
13th June 2008, 11:53
Dear developers,

I've tried the subtitle delay interval, it's working but not accept a negative value, can you change it to accept negative value so it can be used when the external subtitle file starting too late (work like VirtualDub audio skew correction)?

Thank you very much!

*Sorry for not starting a new thread, it's too late for me to move it.


Rgds,
Johnson.

clsid
13th June 2008, 12:35
A negative interval makes no sense. An interval is per definition positive.

Enter a positive interval and press F1. The result will be a negative delay.

saint-francis
13th June 2008, 15:25
Registering the decoder from SourceForge and then replacing it with the new one worked for me also. It's a messy solution but it will do until this issue is taken care of.

EDIT: I still can't make a working graph with it for encoding though. Haali media splitter -> MPCVideoDec times out every time.

gngn
13th June 2008, 16:37
Registering the decoder from SourceForge and then replacing it with the new one worked for me also. It's a messy solution but it will do until this issue is taken care of.

EDIT: I still can't make a working graph with it for encoding though. Haali media splitter -> MPCVideoDec times out every time.

it doesnt work for me. the moment i overwrite the decoder i got from SourceForge (tried with 3 newer variants: 541, 551, 578) the decoder wont be loaded by the system anymore i think. not even DXVAChecker will load it when testing a movie.

Phaser
13th June 2008, 17:14
gngn, I had a similar problem... You should check in the decoder properties (Coedecs Tab) and make sure H264/AVC, VC1 are enabled.

gngn
13th June 2008, 17:30
gngn, I had a similar problem... You should check in the decoder properties (Coedecs Tab) and make sure H264/AVC, VC1 are enabled.

it works now! :thanks:
it's the first time i see this codecs tab :stupid:

johnsonlam
13th June 2008, 17:45
A negative interval makes no sense. An interval is per definition positive.

Enter a positive interval and press F1. The result will be a negative delay.

Sorry, maybe I misunderstand it's meaning, I think it's exact the same as the "audio skew correction" of VirtualDub.

Isn't it a delay of the subtitle time?

ranpha
13th June 2008, 18:37
Sorry, maybe I misunderstand it's meaning, I think it's exact the same as the "audio skew correction" of VirtualDub.

Isn't it a delay of the subtitle time?

If you put 100ms at the Delay Interval field, pressing F1 will delay the appearance of the sub by 100ms, F2 will make the sub appear 100ms faster.

sfortier
13th June 2008, 18:51
Hi!

The MPEG-TS files in the following site can be played on MPlayer with Video an Audio. MPC-HC plays ok the video but recognizes the audio stream as MPEG1payload with no sound...

Until r512 I get video with no sound. Starting with r513 I lost the video and with no sound!!!

The files has h264 and he-aac streams.

http://www.cbclip.com.br/Manhattan
Username: Manhattan
Password: M4nh4tt4n

Thanks.

johnsonlam
13th June 2008, 19:08
If you put 100ms at the Delay Interval field, pressing F1 will delay the appearance of the sub by 100ms, F2 will make the sub appear 100ms faster.

Thanks.

_xxl
13th June 2008, 19:12
MPEG-TS splitter problem
You have posted it 4 times.

majax79
14th June 2008, 02:41
I love MPC Home Cinema.

Is it possible to dictate the starting point of a contact sheet? I want the first image on the CS to be the 1st frame of the video (00:00).

Carandiru
14th June 2008, 03:17
I developed this post process shader for Media Player HC - it improves the quality of video without sacrificing quality.
I find it removes "noise" or the "blocking" side effects of mpeg compression. Good for divx/xvid compressed videos and improving the quality of the video to be that of closer to the dvd.

I hope you all find it useful, I use it all the time.


sampler s0 : register(s0);
float4 p0 : register(c0);
float4 p1 : register(c1);

#define width (p0[0])
#define height (p0[1])
#define counter (p0[2])
#define clock (p0[3])
#define one_over_width (p1[0])
#define one_over_height (p1[1])

#define val0 (1.0)
#define val1 (0.125)

#define effect_width (0.1)

#define PI acos(-1)

float4 main(float2 tex : TEXCOORD0) : COLOR
{
float dx = 0.0f;
float dy = 0.0f;
float fTap = effect_width;

float4 cAccum = tex2D(s0, tex) * val0;

for ( int iDx = 0 ; iDx < 16; ++iDx )
{
dx = fTap /width;
dy = fTap /height;

cAccum += tex2D(s0, tex + float2(-dx,-dy)) * val1;
cAccum += tex2D(s0, tex + float2(0,-dy)) * val1;
cAccum += tex2D(s0, tex + float2(-dx,0)) * val1;
cAccum += tex2D(s0, tex + float2(dx,0)) * val1;
cAccum += tex2D(s0, tex + float2(0,dy)) * val1;
cAccum += tex2D(s0, tex + float2(dx,dy)) * val1;
cAccum += tex2D(s0, tex + float2(-dx,+dy)) * val1;
cAccum += tex2D(s0, tex + float2(+dx,-dy)) * val1;

fTap += 0.1f;
}

return(cAccum/16.0f);
}


http://www.tommorowland.net/

alexins
14th June 2008, 03:21
MPC-Homecinema.1.1.580.0 (x64) (http://www.xvidvideo.ru/component/option,com_docman/task,doc_download/gid,28/Itemid,11/) (2,22 Mb) - Without installer (x64)
MPC-Homecinema.1.1.580.0 (x64) (http://www.xvidvideo.ru/component/option,com_docman/task,doc_download/gid,29/Itemid,11/) (2,74 Mb) - With installer (x64)
Supported languages: CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA
Microsoft Visual C++ 2008, DirectX SDK v.9.23.1350

ericab
14th June 2008, 04:42
MPC-Homecinema.1.1.580.0 (x64) (http://xvidvideo.ru/files/MPC-Homecinema.580_(x64).7z) (2,22 Mb) - (x64)
Supported languages: CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA
Microsoft Visual C++ 2008, DirectX SDK v.9.23.1350

thanks alexins for you constant compiles. its much appreciated.

cca
14th June 2008, 07:31
I'll test this x86-64 compile when I get home, the most outstanding bug I found last time was the OSD/black screen one.

Mercury_22
14th June 2008, 10:07
MPC-Homecinema.1.1.580.0 (x64) (http://xvidvideo.ru/files/MPC-Homecinema.580_(x64).7z) (2,22 Mb) - (x64)
Supported languages: CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA
Microsoft Visual C++ 2008, DirectX SDK v.9.23.1350

Tested ! It's OK ! :thanks:
Thanks for using C++ 2008 & DirectX SDK v.9.23.1350 !

cca
14th June 2008, 13:12
MPC-Homecinema.1.1.580.0 (x64) (http://xvidvideo.ru/files/MPC-Homecinema.580_(x64).7z) (2,22 Mb) - (x64)
Supported languages: CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA
Microsoft Visual C++ 2008, DirectX SDK v.9.23.1350

Just tested it, the OSD/black screen bug is still not fixed. To reproduce: Use EVR Custom, and just try to increase the Volume pressing the Up Arrow key. Entire video area goes black when the OSD appears. Video returns when the OSD disappears.

sfortier
14th June 2008, 13:23
You have posted it 4 times.

You are right!
Sorry. This is a capture of the SBTVD ts-stream. Here on brazil we are with problems to play these streams.
No one answered me. I´m still with the problem.
Thanks.

ghostonline
14th June 2008, 14:36
odd problem

i have a mkv file

generated by mediainfo 0.7.7.2
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec profile : High@L5.1
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 5
PlayTime : 23mn 11s
Nominal bit rate : 3800 Kbps
Width : 1920 pixels
Height : 1080 pixels
Display Aspect ratio : 16/9
Frame rate : 23.976 fps
Chroma : 4:2:0
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.076
Writing library : x264 - core 58 svn-736M
Encoding settings : cabac=1 / ref=5 /
deblock=1:0:0 / analyse=0x3:0x133 / me=esa / subme=7 /
me-prepass=0 / brdo=1 / mixed_ref=1 / me_range=16 /
chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 /
deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0
/ decimate=1 / mbaff=0 / bframes=5 / b_pyramid=1 /
b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 /
keyint=480 / keyint_min=24 / scenecut=40(pre) / rc=abr
/ bitrate=3800 / ratetol=1.0 /
rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=1 /
qpmax=20 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 /
aq=1:0.5:13.0
Language : Japanese

under xp32bit (NV video card), MPC-HC with powerdvd h264 decoder will play this file in dxva under vmr9 renderless mode

mpc internal decoder was not able to use dxva.


under vista 32bit sp1, (ati video card),pdvd 264 decoder will give black screen under evr/evr custom pres.

mpc internal decoder will play without dxva.

under vista 64bit sp1 (nv video card), black screen for pdvd 264 decoder.

mpc internal decoder will play without dxva.

conclusion: pdvd h264 decoder works in dxva under xp32bit(vmr9), but not under vista32/64bit (evr):confused:

mpc internal decoder never worked in dxva at all.:confused:


I know it is High@L5.1 ref5, but it plays fine under xp32bit.:confused:

Rayce
14th June 2008, 22:36
Hi guys!
I just got hold of the MPC-HC a week ago and have eagerly followed the progress of this thread since then.
I just finished setting up my main PC for HD playback, but I'm running into various problems getting DXVA mode activated.
Here are my specs: A64 3700+ (Clawhammer, S754), GF 8600GTS 256mb, 2GB DDR400, Vista Ultimate x64 SP1. All newest drivers and updates installed.
I'm using the newest MPC-HC build with the internal filters in EVR mode, but i can't get any mkv/x264 or wmv/vc1 HD movies playing over DXVA. Neither 720p nor 1080p.
I know this is pretty vague, but maybe someone can give me some heads up on what I'm need to look into.

Thanks :)

majax79
14th June 2008, 22:58
Ok, so I still haven't found a way to dictate this. Anyone have any ideas? Is there a code I can tweak?

Original Message:

Is it possible to dictate the starting point of a contact sheet? I want the first image on the CS to be the 1st frame of the video (00:00).

ericab
15th June 2008, 01:40
Hi guys!
I just got hold of the MPC-HC a week ago and have eagerly followed the progress of this thread since then.
I just finished setting up my main PC for HD playback, but I'm running into various problems getting DXVA mode activated.
Here are my specs: A64 3700+ (Clawhammer, S754), GF 8600GTS 256mb, 2GB DDR400, Vista Ultimate x64 SP1. All newest drivers and updates installed.
I'm using the newest MPC-HC build with the internal filters in EVR mode, but i can't get any mkv/x264 or wmv/vc1 HD movies playing over DXVA. Neither 720p nor 1080p.
I know this is pretty vague, but maybe someone can give me some heads up on what I'm need to look into.

Thanks :)

rayce;

what is the "newest MPC-HC build" you are using ?
do you have ffdshow installed? if so, you must disable ffdshow from decoding h.264

ADude
15th June 2008, 04:59
#2588

Wow - I can't believe I've read 2,588 MPC-HC posts ! :eek:

pcm1ke
15th June 2008, 08:30
Does anyone have any idea why I would be getting out of sync audio when I playback x264 content using MPHC with all the internal filters except for coreavc when I set my refresh rate (onboard GPU, ATI 3200 HD) to 24hz? If the refresh rate is 60hz, there is no problem, but the minute I switch it to 24hz there is a huge problem. I'm using EVR Custom. If I switch to VM9 renderless the audio gets a little better but is still out of sync. Just an FYI, the problem doesn't occur when I playback blu-ray content in PowerDVD.

Any ideas?

Mercury_22
15th June 2008, 17:30
Does anyone have any idea why I would be getting out of sync audio when I playback x264 content using MPHC with all the internal filters except for coreavc when I set my refresh rate (onboard GPU, ATI 3200 HD) to 24hz? If the refresh rate is 60hz, there is no problem, but the minute I switch it to 24hz there is a huge problem. I'm using EVR Custom. If I switch to VM9 renderless the audio gets a little better but is still out of sync. Just an FYI, the problem doesn't occur when I playback blu-ray content in PowerDVD.

Any ideas?

Same here ! but Intel G35 HDMI and when using ffdshow or any other decoder than internal no more "out of sync audio when I playback" H264 / AVC tested on x64 and x86 with VMR9 / EVR / EVR custom ... same results ! :helpful:

P.S. Doesn't MPC-HC using the same H264 / AVC decoder ( libavcodec ) ? Maybe just different versions ?

Rayce
15th June 2008, 22:44
rayce;

what is the "newest MPC-HC build" you are using ?
do you have ffdshow installed? if so, you must disable ffdshow from decoding h.264Thanks for the reply :)
I'm using the 1.1.576.0 build and have no ffdshow installed.

Here's the info of an x264/mkv 720p video, for example:
Filter : MPC Video Decoder - CLSID : {008BAC12-FBAF-497B-9670-BC6F6FBAE2C4}

- Connected to:

CLSID: {0A68C3B5-9164-4A54-AFAF-995B2FF0E0D4}
Pin: English (Video 1)

- Connection media type:

Video: MPEG4 Video (H264) 1280x720 23.98fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31435641-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 164


And here of a x264 1080p movie:
Filter : MPC Video Decoder - CLSID : {008BAC12-FBAF-497B-9670-BC6F6FBAE2C4}

- Connected to:

CLSID: {0A68C3B5-9164-4A54-AFAF-995B2FF0E0D4}
Pin: English (Video 1)

- Connection media type:

Video: MPEG4 Video (H264) 1920x1080 23.98fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31435641-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 165


Weirdly, here's a single 1080p movie that does work with DXVA:
Filter : MPC Video Decoder - CLSID : {008BAC12-FBAF-497B-9670-BC6F6FBAE2C4}

- Connected to:

CLSID: {0A68C3B5-9164-4A54-AFAF-995B2FF0E0D4}
Pin: Undetermined, Video (Video 1)

- Connection media type:

Video: MPEG4 Video (H264) 1920x800 23.98fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31435641-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 164



I don't see any difference in the codec, it's like the filter randomly chooses what movie to use DXVA with and which not. And these are only the mkv/x264 movies. All of my wmv/vc1 movies don't work in DXVA :(


EDIT: Using 1.1.580.0 x86 now, still no different results :(

MatMaul
16th June 2008, 00:14
I don't see any difference in the codec, it's like the filter randomly chooses what movie to use DXVA with and which not. And these are only the mkv/x264 movies. All of my wmv/vc1 movies don't work in DXVA :(
:angry: PLEASE use search before posting ! :search::search:
this is explained all over this thread and this one (http://forum.doom9.org/showthread.php?t=137974), we will not explain it again...

Rayce
16th June 2008, 00:54
:angry: PLEASE use search before posting ! :search::search:
this is explained all over this thread and this one (http://forum.doom9.org/showthread.php?t=137974), we will not explain it again...Actually, I have read the thread before posting any of this. I have not a lot of clue about the technical stuff, hence me not understanding all of it and why a lot of it doesn't work for me.

One movie is x264/mkv with AVC video in 1080p has 5 ref-frames (whatever that means). It uses DXVA with the internal decoder. A same movie with the same properties doesn't run in DXVA.
Using the Cyberlink x264 filter, most 720p movies run, but 1080p's give me a green screen.
As stated before I have never gotten VC1 to run hardware accelerated. I have no large bothers with it though, since my 3700+ seems to be fast enough to play even 1080p movies fluently with that codec. So I am mainly concerned about the x264 movies, and why two different movies with the exact same codec options run differently.

If I have aggravated anyone in here, I beg for apology. I am just "another noob" trying to get things to run, like everyone else in here too. :(

ericab
16th June 2008, 01:58
Actually, I have read the thread before posting any of this. I have not a lot of clue about the technical stuff, hence me not understanding all of it and why a lot of it doesn't work for me.

One movie is x264/mkv with AVC video in 1080p has 5 ref-frames (whatever that means). It uses DXVA with the internal decoder. A same movie with the same properties doesn't run in DXVA.
Using the Cyberlink x264 filter, most 720p movies run, but 1080p's give me a green screen.
As stated before I have never gotten VC1 to run hardware accelerated. I have no large bothers with it though, since my 3700+ seems to be fast enough to play even 1080p movies fluently with that codec. So I am mainly concerned about the x264 movies, and why two different movies with the exact same codec options run differently.

If I have aggravated anyone in here, I beg for apology. I am just "another noob" trying to get things to run, like everyone else in here too. :(


i agree with rayce.
lets not flame the 'n00bs'.
were all n00bs at some time or another.

"questions incur wisdom" -ericab, 2008

:thanks:

MatMaul
16th June 2008, 02:47
sorry but the fact that vc1 can't currently be decoded in MPC with DXVA with Nvidia cards had been said a million time and I am sometimes tired to read over and over the same things...
and this is write on the "DXVA Support" page of the mpc-hc website (http://mpc-hc.sourceforge.net/DXVASupport.html)...
about h264 the 1920x1080 clip has too many refs regarding its resolution, the 1920x800 don't...

Rayce
16th June 2008, 03:19
Thanks for the heads-up guys.
I did notice that every 720p x264 movie with more than 10 ref-keys won't work with DXVA, 1080p movies need to be under 8 ref's. I switched back to the Cyberlink Codec, and funnily enough exactly those are the ones that give me the green screen. Anything below that will run accelerated. Thanks for helping me find this out :)

I'm just hoping that someday this issue with the ref's can be figured out :)

gngn
16th June 2008, 03:51
at this moment Cyberlinks Decoder isnt better than MPC-HC's internal H264 decoder. it will try to play in hardware accelerated mode even files that are not DXVA compatible, but the result will be black screen or stuttering. MPC-HC's decoder will recognize those not compatible files and will play them in software mode.
real 720p (1280x720) needs to have max 9 ReFrames, 1080p (1920x1080) max 4 ReFrames. anything beyond is not DXVA compatible, or it will need a new generation of video cards. to bad that there are still video files made that are not compatible.

frequenzy
16th June 2008, 08:30
Just tested it, the OSD/black screen bug is still not fixed. To reproduce: Use EVR Custom, and just try to increase the Volume pressing the Up Arrow key. Entire video area goes black when the OSD appears. Video returns when the OSD disappears.

just tried it and i also got a blackscreen :-)

clsid
16th June 2008, 11:33
Maybe the DXVA status message in the decoding filter can be extended (with a second line) to additionally show the reason for the failure, e.g.:
* Incompatible graphics card
* Incompatible level (5.1)
* Too many reference frames
* Unsupported video resolution

That may reduce the amount of questions about "why doesn't DXVA work for file XXXX".

Mercury_22
16th June 2008, 11:38
Maybe the DXVA status message in the decoding filter can be extended (with a second line) to additionally show the reason for the failure, e.g.:
* Incompatible graphics card
* Incompatible level (5.1)
* Too many reference frames
* Unsupported video resolution

That may reduce the amount of questions about "why doesn't DXVA work for file XXXX".

That's a good idea !

tetsuo55
16th June 2008, 11:50
Maybe the DXVA status message in the decoding filter can be extended (with a second line) to additionally show the reason for the failure, e.g.:
* Incompatible graphics card
* Incompatible level (5.1)
* Too many reference frames
* Unsupported video resolution

That may reduce the amount of questions about "why doesn't DXVA work for file XXXX".

I agree, i was going to suggest this but i am still working on a better detection formula for DXVA compatibility.

The new formula will work for all levels and will take into account the usage of b-refs

MatMaul
16th June 2008, 12:05
I agree, i was going to suggest this but i am still working on a better detection formula for DXVA compatibility.

The new formula will work for all levels and will take into account the usage of b-refs
don't understand.
the actual formula seems to be ok, except in one case : samples without b-frames can be decoded properly up to 15 refs (currently it is 11 in the formula, which is the max reported for samples with b-frames). and 99% of the streams use b-frames so...

krbo
16th June 2008, 13:48
among all these h264 posts maybe one silly question:

Is MPC HC supposed to play mpeg2 video in a mkv container ??
(it certainly plays it OK muxed as mpeg2 PS)

Recently I tried to mux mpeg2 video (classic PAL 720x576) , mp2 audio (2ch 192kbit) and one srt subtitle into a mkv.
MPC was not able to play video (says something like "unknown video") - audio only.

It looks for me problem is in internal splitter as BSPlayer I tried later activated Haali splitter and plays that mkv without a problem.

Just an info to developers...

lexor
16th June 2008, 14:58
don't understand.
the actual formula seems to be ok, except in one case : samples without b-frames can be decoded properly up to 15 refs (currently it is 11 in the formula, which is the max reported for samples with b-frames). and 99% of the streams use b-frames so...

I agree, the only way that the formula could be improved (though it may not be possible) is to identify the reason the problem samples I and some others posted a while back produce blockiness in DXVA mode (both mpc and pdvd) on ATI cards but not NVIDIA. I think at the time it was chucked to hardware incompatibility, but if the actual reason could be tracked and MPC's decision process updated, it would eliminate the need to manually flip DXVA on and off.

tetsuo55
16th June 2008, 16:24
The current formula is too simplistic and does not take into account the difference between levels.

Basically all it does is make sure that the file will work on a L4.1 device like your videocard. and even then the check does not account for a couple of variables, like for example b-frames.

We basically have 2 options at this point:

Option one, adjust the formula assuming all content is encoded for playback on a 4.1 device, and make sure all limits are met for this level.

Option two, adjust the formula assuming content will be played back any device capable of playing the file.

The first option just plays back anything that won't crash the videocard, however the file's might not work on other devices or cause macroblocking or other strange issues.

imho defining the level restrictions better is the best way to go forward.

This approach also allows us to define level 5 (standalone players and TV's already exist for L5), any non-compatible file should give an error and default to software mode.

An accurate calculation would look something like this:
-Check if the height and width are mod16
-Check h264 header and define Profile.
-Check h264 header for b-frames
Split path b-frames/no b-frames
-Use height, Width and FPS to determine LEVEL
-calculate if ref frames are equal or lower to the max DPB for the determined level (MAX DBP / (w*h*12) <= MAX REF)
-finally check if bitrate does not exceed the maximum for the LEVEL (this last one could be overriden for levels lower than 4.1, needs testing )

If all is okay play back file with DXVA

Every failed check should error out and show that error, then default to software mode.