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

clsid
27th August 2007, 21:02
Can anybody with SVN access please upload a little patch for me? I've done the changes to Casimir's SVN, but I don't know SVN well enough to "upload" something.

http://madshi.net/dtsac3source.zip

Contained is a new version of DTSAC3Source.cpp (together with a new compiled dtsac3source.ax). There are 3 changes in the source code:

(1) m_AvgTimePerFrame calculation was incorrect for AC3.
(2) m_AvgTimePerFrame calculation was incorrect for DTS.
(3) Fix for problems with audio sync with Blu-Ray/HD DVD DTS files.

The problem with (3) is this: Usually 1536kbit/s DTS tracks have 2013 bytes per frame. But DTS tracks taken from HD DVD and Blu-Ray strangely only have 2012 bytes per frame. DTSAC3Source handled this mathematically correctly. But audio sync slowly drifted away from the video. We have to mathematically handle the 2012 frames as if they were 2013 bytes long to keep audio sync while seeking.
I would like to include this patch in my patched MPC build. I have looked at the code changes (compared to guliverkli SVN). Are you sure your patch doesn't break parsing of regular AC3/DTS stuff? Because framesize and bytesperframe values are much bigger now (multiplied by magic numbers).

madshi
27th August 2007, 21:15
I would like to include this patch in my patched MPC build. I have looked at the code changes (compared to guliverkli SVN). Are you sure your patch doesn't break parsing of regular AC3/DTS stuff? Because framesize and bytesperframe values are much bigger now (multiplied by magic numbers).
Some of the changes you're talking about were originally done by orbitlee. The main change I've done is just a special handling for 2012 bytes DTS frames. I'm not sure where the "magic" multipliers are coming from. Maybe we should contact orbitlee and ask him about that. From the source code comments it seems that he did that to satisfy the Sonic audio decoder. Personally, I'm not sure if I like such strange multiplicators just to satisfy one decoder (which isn't even a good one). But I'm a bit afraid to change anything because right now the filter works just perfect for me. I've tested it with AC3, E-AC3, normal DTS files and DTS core streams extracted from DTS-HD.

P.S: Maybe you could try just taking over the 2012 special handling and the E-AC3 parsing and then check if everything works for you. Doing it that way shouldn't break regular stuff.

madshi
29th August 2007, 11:35
I've one little feature wish:

If I load an external audio file (e.g. with the "/dub" command line parameter) and if the external audio file name has "DELAY 100ms" or "DELAY -50ms" or something like that in the name, it would be great if the MPC audio switcher could automatically activate this delay taken from the file name of the external audio file.

Why is this important? Because delaycut doesn't work for E-AC3, TrueHD and DTS-HD tracks. Currently it's not easily possible to modify such tracks to realize a specific delay. Because of that it's important that there's a way to tell MPC to automatically realize a specific audio delay for a specific audio track.

Thanks! :)

Ger
8th September 2007, 14:05
Found a problem with "Remember file position" and some live WM radio streams.

If "Remember file position" is checked, the second time I try to start this (http://utv-talksport.wm.llnwd.net/utv_talksport?MSWMExt=.asf) live stream it doesn't play.

Setsunaaa
9th September 2007, 20:51
Thx for your mpc version Casimir666, I made the switch just a month ago from the original latest gabest version, and I like it a lot.

A thing I once had: I always use the "save to .ini, keep registry clean", + remembering file positions (very nice option).
But the .ini got somewhat mixed up, wrong key binding, wild behaviour at using normal keys. Even when I corrected the bindings it did not work, I restored it from my backup, and was yet unable to reproduce the problem.

One feature request: If I have mutiple files in the playlist, all of the same format (i.e. one Anime series), I have to change the subtitle and language every time the next video gets played, it also resets the zoom I set to 100% (except when fullscreen).
So if the video size of the next file is the same it should keep the set zoom. And if the video file that comes next has the same audio-channels and subtitles and video size it should take the selected subtitle / audio channel and zoom over to the next in the playlist.

Second request: could the number "file to remember the last position" be made configurable, like from 0 to 9?

Set

boyumeow
10th September 2007, 09:22
@Setsunaaa
About the zooming part, maybe U can try set it to auto-fit or un-tick it. Option-->Playback=>Output

Setsunaaa
14th September 2007, 20:43
@Setsunaaa
About the zooming part, maybe U can try set it to auto-fit or un-tick it. Option-->Playback=>Output

Dumb me, I should have found it on my own!
It does keep the size I want over videos in the playlist..

BUT: mplayer starts all videos much too small then since it starts with it's default size!
It should have an option to set the zoom to 100% at start of the player, as I usually want it for videos when I start mplayer. But it should not reset to 100% upon advancing in the playlist. So I am back at the "Auto-zoom 100%" since it is less annoying that way.

A trick I also used: click and move the window while the player advances to the next video, then it keeps the set size.

But the subtitle/audio still have to me set manually after advancing.

Kado
14th September 2007, 21:20
@Setsunaaa

if you use haali splitter you can configure how the subs and audio tracks are loaded. check the splitter settings if you use it.

Casimir666
14th September 2007, 23:31
New version is now available on SourceForge, with thoses changes :

v1.0.10.0 - 15.Sep 2007
======================
CHANGED: Latest Clsid Patches (Bento4 0.9.3, faad2 2.6b, dtsdec 0.0.2, libmad 0.15.1b, zlib 1.2.3, mpeg decoder: progressive frames fix, mpeg decoder: dsutil interlaced fix v2)
CHANGED: libpng 1.2.20
NEW : Command Line Option "/d3dfs" to start MPC in D3D fullscreen mode
NEW : Logitech LCD support (e.g., G15 keyboard)
CHANGED: Remember File and DVD position works only when "Keep history" is active (preserve privacy issue)
CHANGED: Kick off Screen Saver from Power Options only while video is playing (Vista)
NEW : Build for x64 platforms (beta version, see limitations on my website)
NEW : Multilanguage support: english, french and german.
CHANGED: DirectX SDK updated to August 2007 (v35)
FIXED : Wrong Aspect Ratio with EVR-Custom (definitely i hope :-)
FIXED : Internal Mpeg2 Decoder was not working with ECR and ECR-Custom
FIXED : Audio async problems with Blu-Ray/HD DVD DTS files [wrong AvgTimePerFrame calculation for DTS and AC3 (madshi)]
FIXED : OSD was not working when D3DX9_... dll was not present (random pixels shown in top of video)
FIXED : Mouse now working in DVD menu with EVR-Custom (Vista)
FIXED : FLV Splitter when video does not start with keyframe
FIXED : Vulnerability CAL-20070912-1 in AVI Source Filter (arbitrary code execute with users privileges)
FIXED : Vulnerability in FLI internal source filter

JarrettH
14th September 2007, 23:46
what happened to your website casimir :cool:

Leak
14th September 2007, 23:53
what happened to your website casimir :cool:
Eh? It's where it always was and works fine for me - so what exactly do you mean? :confused:

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

lolent
15th September 2007, 00:18
thx Casimir666 for this new version :)

MatMaul
15th September 2007, 01:00
thanks !!!

bug report about the translation :
I can load a different language only if I launch MPC from is directory. If I double-click on a video it seems to do not detect the french resource.
When I use the french translation the submenu Subtitles (Soustitres) don't work at all, no problem in english.

JarrettH
15th September 2007, 01:30
I get a whole page of chinese characters when I open http://tibrium.neuf.fr/

foxyshadis
15th September 2007, 02:46
Check your browser's default character encoding.

Casimir, awesome. =D

raynor
15th September 2007, 02:50
@ casimir
Thank you for fixing the privacy issue I pointed out above.
Great work :)

Uh, and great other fixes and additions, too (amazing to be exact) ;)

JarrettH
15th September 2007, 07:49
thanks that fixed it foxy, which should i be using though? it was set to utf-16 when i checked :thanks:

Casimir666
15th September 2007, 08:49
I get a whole page of chinese characters when I open http://tibrium.neuf.fr/

:eek:
I have added an encoding meta tag, should not be chinese anymore now...

madshi
15th September 2007, 08:51
Thnx for the new version!

JarrettH
15th September 2007, 18:38
:eek:
I have added an encoding meta tag, should not be chinese anymore now...

LOL wonderful :p

Kado
15th September 2007, 22:46
Thanks for the updates casimir. One bug still remains... in the "remember file position", you are not able to replay a file that has reached it's end.
Steps to reproduce: enable the option, insert at least 2 files (like mp3) in the play list and let one of them play until it ends then plays the other one, while the second one is playing try to play the first one... basically it will resume from the end of the first file meaning it will just skip to the next one.

hope this helps

Also, if you enable "keep history" then "remember file position" then disable "keep history" "remember file position" will remain enabled and working and you cannot disable it until you enable "keep history" again.
Is MPC v6.4.9.1 legit or fake or custom made by someone? check here (http://softex.meganet.lt/news.php?readmore=3828).

Leak
15th September 2007, 23:17
Is MPC v6.4.9.1 legit or fake or custom made by someone? check here (http://softex.meganet.lt/news.php?readmore=3828).
Well, going by the "changelog" someone seems to just have relabeled clsid's build (or his changes, at least) as 6.4.9.1...

EDIT: Okay, so it was clsid himself - move along, nothing to see here... :D

np: Luke Vibert - Rotting Flesh Bags (Chicago, Detroit, Redruth)

Kado
15th September 2007, 23:25
Well, going by the "changelog" someone seems to just have relabeled clsid's build (or his changes, at least) as 6.4.9.1...

That has crossed my mind as well. anyway casimir's build is more "tuned"! :)

clsid
16th September 2007, 00:33
I incremented the version number in my latest build to make it more clear that it is newer than the latest version available at the Guliverkli website.

Rash
16th September 2007, 06:11
I am getting 404 on Casimir's page. Will look on sf.net directly.

Thank you very much Casimir! ;)

[EDIT] DAMN! EVR is working now! So now I can get 0-255 with DXVA enabled! Oh thank you, thank you, thank you Casimir! :D

Casimir666
16th September 2007, 07:52
I am getting 404 on Casimir's page. Will look on sf.net directly.

Thank you very much Casimir! ;)

[EDIT] DAMN! EVR is working now! So now I can get 0-255 with DXVA enabled! Oh thank you, thank you, thank you Casimir! :D

:confused: EVR is working?? I haven't made changes on it except using latest SDK...

CiNcH
16th September 2007, 12:58
DXVA 2.0 and EVR Custom at least still isn't.

cyberbeing
16th September 2007, 18:57
When PureVideo Decoder and EVR Custom Presenter is used DVD menu navigation seems to be broken and MPC-HC hangs on seeking.

Ger
16th September 2007, 21:03
Thanks for the updates casimir. One bug still remains... in the "remember file position", you are not able to replay a file that has reached it's end.
Steps to reproduce: enable the option, insert at least 2 files (like mp3) in the play list and let one of them play until it ends then plays the other one, while the second one is playing try to play the first one... basically it will resume from the end of the first file meaning it will just skip to the next one.

hope this helps



A somewhat similar problem i posted with this feature is also still there in v1.0.10.0:

Found a problem with "Remember file position" and some live WM radio streams.

If "Remember file position" is checked, the second time I try to start this (http://utv-talksport.wm.llnwd.net/utv_talksport?MSWMExt=.asf) live stream it doesn't play.

Can be reproduced by opening the URL in MPC and then trying to open the same URL again a second time. It will only play the first time and stall on the second and subsequent attempts.

Anyway, EVR custom is starting to look really good now with the latest fixes. Thanks again for your excellent work Casimir. :thanks:

Rash
16th September 2007, 22:28
:confused: EVR is working?? I haven't made changes on it except using latest SDK...
Yes, well... EVR Custom. :o I missed one word.

EVR normal creates grey bars for me, so I've completely banned it from my players, hehe. Have a look.
http://rash.apanela.com/images/lost_color.png
http://rash.apanela.com/images/wmp11/wmp_grey_back.jpg (black frame)

I can't say whether DXVA is working or not. It is selected but I don't get any confirmation/error messages. The picture quality is awesome anyway, so I'm good with it.

@Cyberbeing, I have PureVideo enabled on PowerDVD Decoder and I'm using EVR Custom and menus are OK. What decoder are you using?

cyberbeing
16th September 2007, 22:49
@Cyberbeing, I have PureVideo enabled on PowerDVD Decoder and I'm using EVR Custom and menus are OK. What decoder are you using?

I am using nVidia's PureVideo decoder (http://www.nvidia.com/object/dvd_decoder.html), not a program like PowerDVD that just uses Purevideo.

Rash
16th September 2007, 22:52
Oh, I see. Well, then, it might be an issue between NV PureVideo and EVR Custom.

Kado
17th September 2007, 09:51
In the powerdvd decoder (h.264) to see if dxva is working or not try to tune something like brightness after the video is playing, if you can you are not using dxva. that was my case in xp with a 6800gs. in vista i can't get dxva with vmr9 and evr.

CiNcH
17th September 2007, 16:42
In the powerdvd decoder (h.264) to see if dxva is working or not try to tune something like brightness after the video is playing,

Press CTRL (STRG for German readers) and together the 'CyberLink H.264/AVC Decoder' (Play -> Filters), the extended properties will show up. The profile tells you about hardware acceleration:

SW = pure software mode
MC = part of the decoding pipeline is sourced out to the GPU (e.g. PureVideo HD)
Bitstream = all decoding steps are performed on the GPU (e.g. PureVideo HD2)

Rash
17th September 2007, 16:44
Cinch, I am sorry, what is STRG?

CiNcH
17th September 2007, 16:46
CTRL key (Control which means 'Steuerung' -> STRG in German) on your keyboard.

iron2000
17th September 2007, 20:11
Is there anyway to get rid of the blue bar with green slider that appears on mouse over?

Kado
17th September 2007, 20:41
@CiNcH

thanks.
has someone got hardware acceleration for h.264 with latest mpc hd and cyberlink in vista with a nvidia graphics like a 6800gs?

Casimir666
17th September 2007, 20:56
@CiNch
Great shortcut! Will be helpfull ;)

SBeaver
18th September 2007, 00:35
x64 version can play dvd mpeg2 with ffdshow as decoder also, i tried it with video title set enabled in internal filters. ac3/dts passthrough with x64 ffdshow also works perfectly.
The only thing missing now is an ffdshow x64 build with eac3 decoding which hopefully isn't far away, and also a 64bit build of haali splitter and renderer.

:thanks:

delude101
18th September 2007, 05:56
@CiNcH

thanks.
has someone got hardware acceleration for h.264 with latest mpc hd and cyberlink in vista with a nvidia graphics like a 6800gs?

7900GTO here, using 162.22 with vista ultimate 32bit. Only SW profile shows up no matter what type of file i play. Using the h.264 decoder from Powerdvd 7.3 ultra.

Shakey_Jake33
18th September 2007, 08:01
7900GTO here, using 162.22 with vista ultimate 32bit. Only SW profile shows up no matter what type of file i play. Using the h.264 decoder from Powerdvd 7.3 ultra.

SW for me too, using Vista X64, Cyberlink H.264 codec from PowerDVD Ultra, and 7900 GTO GPU.
I always assumed it was doing it HW tbh.

delude101
18th September 2007, 08:41
MC Profile shows up when using EVR Mode (Standard). It does improves the playback of 1080i videos significantly, but 720p/1080p videos still the same. CPU usage around 15% lower (C2D@2.8Ghz)

The EVR mode is horrible though. It ALWAYS outputs in 16-235levels and there are ugly grey bars for wide screen instead of black ones.

Shakey_Jake33
18th September 2007, 10:42
MC Profile shows up when using EVR Mode (Standard). It does improves the playback of 1080i videos significantly, but 720p/1080p videos still the same. CPU usage around 15% lower (C2D@2.8Ghz)

The EVR mode is horrible though. It ALWAYS outputs in 16-235levels and there are ugly grey bars for wide screen instead of black ones.
I've read a few posts about the grey bars, but I've not had that problem yet.

CiNcH
18th September 2007, 11:54
For me it is 'Bitstream' with EVR Standard and 'SW' with EVR Custom, just as expected, at least what I expected...

SBeaver
18th September 2007, 13:30
I've read a few posts about the grey bars, but I've not had that problem yet.

I've had the grey bars on all computers I've tried EVR on, and both on Vista and XP x64 too.
I want to know your secret, do you have Nvidia or Ati videocard?

Kado
18th September 2007, 21:23
I get grey bars as well. how are you guys getting hardware acceleration with h264? filters, specs, players and file container etc please.

Casimir666
18th September 2007, 22:43
I've had the grey bars on all computers I've tried EVR on, and both on Vista and XP x64 too.
I want to know your secret, do you have Nvidia or Ati videocard?

For XP you can try to add thoses keys in registry :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{ GUID }\0000

VMRCCCSStatus 3 (dword)
VMRCCStatus 3 (dword)

For GUID, it depend of you machine and it's the GUID with the largest number of keys. Unfortunatly this trick didn't work with vista :(

CiNcH
18th September 2007, 22:50
1. Launch regedit and determine the current primary display card by looking in "HKey_Local_Machine\Hardware\DeviceMap\Video" and note the GUID (global unique identifier assigned by Windows), which is the long string in brackets { } at the end of the entry "\device\video0".

2. Look in "HKey_Local_Machine\SYSTEM\CurrentControlSet\Control\Video\{GUID}000" where {GUID} is the number derived from the previous step.

3. Open the "0000" directory and create a new DWORD called "VMRCCCSStatus" and give it a value of 3

delude101
19th September 2007, 01:03
I get grey bars as well. how are you guys getting hardware acceleration with h264? filters, specs, players and file container etc please.

MPCHC set to output in EVR Mode (standard, NOT custom presenter), Haali Media Splitter, Cyberlink H.264 Decoder. Try apple hd trailers, they all work when set to .hdmov


Just flashed my 7900gto to a gtx, no difference :P