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

Aleksoid1978
7th October 2012, 11:31
But the internal filters seem to contain the most leaks, even before the changes to the PGS parser.

Like that ?

Armada
7th October 2012, 11:50
I tested PGS subs with the internal filters disabled and I don't get any memory leaks. But as soon as I turn the internal filters on I get at least 30 with the DXVA filters, 10 if I only use ffmpeg.
No memory leaks detected.
Visual Leak Detector is now exiting.

Aleksoid1978
7th October 2012, 12:33
I tested PGS subs with the internal filters disabled and I don't get any memory leaks. But as soon as I turn the internal filters on I get at least 30 with the DXVA filters, 10 if I only use ffmpeg.

Memory leak log, that i posted above - it's happened on file when need render multiple PGS at one time;

VLD - it's very paranoid program :) - it see memory leak, as example when see AllocMemory - and do not see delete for this;

P.S. - I could help you with this - if your "commander" asked me :)

Armada
7th October 2012, 13:16
Memory leak log, that i posted above - it's happened on file when need render multiple PGS at one time;
I will also look at that log, but could you add the stack trace? It would help me find the source.

VLD - it's very paranoid program :) - it see memory leak, as example when see AllocMemory - and do not see delete for this;
But despite being paranoid it doesn't report any memory leak to me when not using the internal filters.

P.S. - I could help you with this - if your "commander" asked me :)
Help is always welcome, but you should only do so when you want to yourself. This is a team effort, there is no "commander" pulling the strings.

Aleksoid1978
7th October 2012, 13:29
Help is always welcome, but you should only do so when you want to yourself. This is a team effort, there is no "commander" pulling the strings.

If this is a team - why so one person deprived of access another, simply because he wanted to, а ???

I'm talking about our mutual "friend" XhmikosR :)

Aleksoid1978
7th October 2012, 13:31
But despite being paranoid it doesn't report any memory leak to me when not using the internal filters.


When no internal filter - VLD do not see source for external filter and do not generate his report.

About multiple PGS - see this is sample
http://aleksoid.tosei.ru/Test/Sample/PGS/PGS_StartBroken.m2ts - enable subtitle and see in Debug mode what happened.

vBm
7th October 2012, 13:45
If this is a team - why so one person deprived of access another, simply because he wanted to, а ???

I'm talking about our mutual "friend" XhmikosR :)

What happened in past should stay in the past. All of us have the same goal and that is to have best media player for windows.
Personal crap should stay behind and we all should concentrate on getting things done. That's all.

ryrynz
7th October 2012, 13:53
What happened in past should stay in the past.

I don't see him bringing up the past as much as saying "I want to help why don't I have access to help?"

Personal crap should stay behind and we all should concentrate on getting things done. That's all.

But isn't Aleksoid1978 trying "get things done" but has the issue of not having access?

Armada
7th October 2012, 14:02
Please don't bring this up again, there has already been too much drama around this subject and frankly it's been a big demotivation to the team. If Aleksoid1978 wants to help he is still free to submit patches and we will review them, you don't need write access to the repo to contribute and you don't need to involve XhmikosR.

Aleksoid1978 had a disagreement over how the project was being run and so he started a fork. We are currently satisfied with the situation where we can each manage the project as we see fit. We are hoping we can build a professional relationship between the two projects so both projects will improve.

Aleksoid1978
8th October 2012, 07:34
Please don't bring this up again, there has already been too much drama around this subject and frankly it's been a big demotivation to the team. If Aleksoid1978 wants to help he is still free to submit patches and we will review them, you don't need write access to the repo to contribute and you don't need to involve XhmikosR.

Aleksoid1978 had a disagreement over how the project was being run and so he started a fork. We are currently satisfied with the situation where we can each manage the project as we see fit. We are hoping we can build a professional relationship between the two projects so both projects will improve.

No - i don't have a disagreement over how the project was being run. I just lost access, for what started my own project. And I still do not understand how connected the MPC-HC and my project - MPC-BE. What was I deny access?

Gaius
8th October 2012, 07:42
Hey guys, something fun for you to see. MPC-HC was featured on last night's episode of the Showtime TV series Homeland.

http://i.imgur.com/qGj3A.jpg

kasper93
8th October 2012, 11:28
Product placement :D Oh, well MPC-HC is the best player with simple gui so why they would want to use anything else?

gebla
8th October 2012, 12:37
Dear all,

Recently when trying to play a dvd (from file load dvd and select the Video_ts folder) I get error "failed to query the needed interfaces for DVD playback". I tried different renderer but the issues still occured. I am playing with madvr and LAV (cuvid) filters. I tried the repair fromm the MPC webpage to register a .dll but still this issue occurs. Also updated to the latest MPC HC build.

Any hints and tips what I can try to repair this issue?

roytam1
9th October 2012, 02:49
Dear all,

Recently when trying to play a dvd (from file load dvd and select the Video_ts folder) I get error "failed to query the needed interfaces for DVD playback". I tried different renderer but the issues still occured. I am playing with madvr and LAV (cuvid) filters. I tried the repair fromm the MPC webpage to register a .dll but still this issue occurs. Also updated to the latest MPC HC build.

Any hints and tips what I can try to repair this issue?

what version of windows you're using?

In general, you may run "regsvr32 qdvd.dll" and "regsvr32 quartz.dll" to fix this issue, but I don't know about europe "N" version of windows.

DrNein
12th October 2012, 05:46
Hey guys, something fun for you to see. MPC-HC was featured on last night's episode of the Showtime TV series Homeland.

http://i.imgur.com/qGj3A.jpg

I came to post same. :)

Oddly, Microsoft did pay for Skype placement yet WMP was replaced with MPC-HC. Maybe CBS wanted more monies for that but they declined since not marketable. Or maybe production IT just know MPC-HC is better. ;)

madshi
12th October 2012, 16:05
@developers,

there's an incompatability between MPC-HC and madVR now with the "save thumbnails" MPC-HC feature. Basically MPC-HC asks madVR whether it can do frame stepping. madVR says "yes". Then MPC-HC asks for 1 frame step. madVR replies with E_UNEXPECTED. I'm aware of that this is not standard renderer behaviour, and it's on my list of things to fix. Unfortunately a proper fix will be quite difficult due to madVR's internal queue design, so I can't fix it at the moment. What madVR currently does is a bit weird, but still somewhat "ok", I believe, and it works ok with normal MPC-HC frame stepping during playback. Only the "save thumbnails" feature has a problem with the way madVR behaves.

I've looked into this a bit and from my logs madVR clearly replies with E_UNEXPECTED to the frame step request. In MPC-HC's "MainFrm.cpp" in line 4902 (current revision) there's the line "HRESULT hr = pFS ? pFS->Step(1, NULL) : E_FAIL;". However, it seems that this for whatever reason doesn't come out with E_FAIL, because MPC-HC freezes then a bit later in the source code in line 4913 in the WaitForSingleObject. MPC-HC waits there for madVR to reply with EC_STEP_COMPLETE. But madVR doesn't send that event because it already denied the step request in the first place.

Hope somebody can look into this? It's dead easy to reproduce. And you can get a freeze report which shows you where MPC-HC is stuck by pressing Ctrl+Alt+Shift+Break (freeze report will be saved to desktop). Just make sure you have the correct MPC-HC.pdb file in the MPC-HC folder, so the freeze report contains valid stack traces.

HoP
13th October 2012, 06:17
how i can change the volume 2 unit (default is 5 unit).like potplayer ↓

http://upit.cc/i/76d261b4.gif

Armada
13th October 2012, 11:03
how i can change the volume 2 unit (default is 5 unit).like potplayer ↓
I added the keys Alt+Up/Down to change the volume by 1 unit in the latest stable. If you want to use 1 unit as the default, you can change the keys in the options.

HoP
13th October 2012, 11:45
I added the keys Alt+Up/Down to change the volume by 1 unit in the latest stable. If you want to use 1 unit as the default, you can change the keys in the options.

many thanks :thanks:
now i have more control on sound in the night!! :p
can you make an option for this in Tweaks section?? below "jump distance" :D
thanks again ;)

Armada
13th October 2012, 12:02
many thanks :thanks:
now i have more control on sound in the night!! :p
can you make an option for this in Tweaks section?? below "jump distance" :D
thanks again ;)
I don't think that's necessary, we already have way too many tweak options. Is it that that much trouble to press the same button twice?

HoP
13th October 2012, 12:28
@Armada
Is it that that much trouble to press the same button twice?
nope.thanks anyway :D

dansrfe
15th October 2012, 14:58
What's the best method of viewing MediaInfo readouts for files within MPC-HC? It used to be integrated but not anymore I guess.

vBm
15th October 2012, 16:21
What's the best method of viewing MediaInfo readouts for files within MPC-HC? It used to be integrated but not anymore I guess.

Properties (Shift+F10) -> Media Info

It's still there, unless you are using some unofficial build or lite one.

sneaker_ger
15th October 2012, 21:06
While you're talking about MediaInfo I have a request:
If a file cannot be played by MPC-HC it would be nice if it ran MediaInfo over it anyways, so you could quickly analyze what the problem could be.

hayan
16th October 2012, 12:11
Big bug? :scared:
Open video file(mp4), after drag and drop another video file(mp4) to mpchc, mpc-hc is crash. :(

W7 x64, mpc-hc rev6086

LigH
16th October 2012, 14:12
Using the internal MP4 splitter or an external (e.g. Haali)? Using an internal MPEG4 decoder (DXVA / FFmpeg) or an external?

hayan
16th October 2012, 19:30
no open any file -> drag n drop video file -> no problem
play audio file -> drag n drop audio file -> no problem (mp3)
play video file -> next video file (page down) -> no problem
play video file -> drag n drop video file -> mpchc gui and video freeze

EVRCP
no subtitle
playlist: hide
filetype: no limit (mp4, wmv or avi)
Splitter: internal or LAV
video decoder: internal(DXVA/Soft) or LAV
audio decoder: internal or LAV
MPC-HC: x86 or x64 (XhmikosR's Builds)

PS:rev6081 no problem, rev6086/6087 freeze

HoP
17th October 2012, 10:27
@hayan
i had a problem like that with JanWillem32 builds.this post (http://forum.doom9.org/showpost.php?p=1570488&postcount=936)
and JanWillem32 said:
I'm very familiar with that one. When the renderer's initialization fails (usually because other components are still quitting), the graph builder will just try again. Note that it may revert silently to VMR-7 w. after a renderer failure.

Aleksoid1978
21st October 2012, 03:50
no open any file -> drag n drop video file -> no problem
play audio file -> drag n drop audio file -> no problem (mp3)
play video file -> next video file (page down) -> no problem
play video file -> drag n drop video file -> mpchc gui and video freeze

EVRCP
no subtitle
playlist: hide
filetype: no limit (mp4, wmv or avi)
Splitter: internal or LAV
video decoder: internal(DXVA/Soft) or LAV
audio decoder: internal or LAV
MPC-HC: x86 or x64 (XhmikosR's Builds)

PS:rev6081 no problem, rev6086/6087 freeze

This error is due to the inclusion of subtitle support in UTF-8 without BOM.

MADAJ
21st October 2012, 18:32
hi there

can someone help me with web interface ,can i download files by this method ..

i mean , if there is a someone have mpc-hc web interface and it shared with others , can they download files or at least play it in there own computers.

and thx


-- is there an irc channel for mpc-hc developers ? , to ask him in faster way -- :)

kasper93
22nd October 2012, 00:56
It's not media player task to share files :)

Of course there is IRC channel, even two. #mpc-hc (general) and #mpc-hc-dev (for devs) on freenode :)

MADAJ
22nd October 2012, 09:54
thank you kasper93 for answering me :)

what is benefit from MPC-HC Web interface ?

vBm
22nd October 2012, 16:50
Remote controlling of the player. (there's no way at the moment to stream video, so only to play/pause/load/etc files)

MADAJ
23rd October 2012, 07:15
OK , thanks a lot
:)

Yoshi8765
23rd October 2012, 22:13
what version of windows you're using?

In general, you may run "regsvr32 qdvd.dll" and "regsvr32 quartz.dll" to fix this issue, but I don't know about europe "N" version of windows.

I have the same problem as the guy you replied to: "Failed to query the needed interfaces for DVD playback" error when trying to open DVDs. I tried both regsvr43 qdvd.dll and quartz.dll. Error still comes up. Note: this is only for DVDs.
Win 7, using madVR+LAVFilters and DXVA.

Anyone have a suggestion?

Joniii
24th October 2012, 06:31
Does the settings on VSFilter color tab work? It seems to always output YUY2 to EVR.

cyberbeing
24th October 2012, 06:57
On regular VSFilter, the colors tab has been broken for as long as I remember. Though the reason you are seeing YUY2, is because AMD/ATI GPUs don't support YV12 with EVR, and regular VSFilter doesn't support NV12. What will usually occur, is VSFilter will take YV12 input from the decoder, and then do a color conversion to YUY2.

xy-VSFilter has a fully functional colors tab, and it also supports NV12. Though unlike regular VSFilter, xy-VSFilter will never perform color conversions.
Input format from decoder to xy-VSFilter = Format supported by Video Renderer = Output format from xy-VSFilter to Video Renderer.

Joniii
24th October 2012, 10:28
On regular VSFilter, the colors tab has been broken for as long as I remember. Though the reason you are seeing YUY2, is because AMD/ATI GPUs don't support YV12 with EVR, and regular VSFilter doesn't support NV12. What will usually occur, is VSFilter will take YV12 input from the decoder, and then do a color conversion to YUY2.

xy-VSFilter has a fully functional colors tab, and it also supports NV12. Though unlike regular VSFilter, xy-VSFilter will never perform color conversions.
Input format from decoder to xy-VSFilter = Format supported by Video Renderer = Output format from xy-VSFilter to Video Renderer.

Thanks, that must be the problem.

Anyone know how those PowerDVD and TMT plug-ins for Windows Media Center works?

On Windows Media Center you can add Blu-rays and DVD's into movie library but you will need a plug-in for Blu-rays, for example PowerDVD, when you launch a BD from the WMC library it opens the movie on PowerDVD on top of WMC. You can get MPC-HC to load also but the problem is that it can't properly communicate with MPC-HC to start the playback. I think it would need some plug-in that wouldn't require much code to start MPC-HC on full screen and start playback with the correct switches.

Joniii
24th October 2012, 16:20
Almost got mpc-hc to load when hitting play in Windows Media Center Movie Library. Only thing is that WMC passes this to MPC-HC

"C:\Program Files (x86)\mpc\mpc-hc.exe" -embed 393972H:/AVATAR/

Those six numbers are always random.

So I would need to compile a MPC-HC build that has for example -fullscreen switch name replaced to -emblem so that is accepted and at the same time mpc-hc lauches in full screen. Other change would be to make mpc-hc to discard those six numbers in the path.

Anyone here who has everything already set up and compiles MPC-HC builds often? I could do it myself but I have VS 2012, dunno if it will work. Also it takes a while to setup everything.

vBm
25th October 2012, 14:45
Almost got mpc-hc to load when hitting play in Windows Media Center Movie Library. Only thing is that WMC passes this to MPC-HC

"C:\Program Files (x86)\mpc\mpc-hc.exe" -embed 393972H:/AVATAR/

Those six numbers are always random.

So I would need to compile a MPC-HC build that has for example -fullscreen switch name replaced to -emblem so that is accepted and at the same time mpc-hc lauches in full screen. Other change would be to make mpc-hc to discard those six numbers in the path.

Anyone here who has everything already set up and compiles MPC-HC builds often? I could do it myself but I have VS 2012, dunno if it will work. Also it takes a while to setup everything.

Uriziel made this tiny python script you can use to strip that stuff out.

import subprocess
import sys

if "__main__" == __name__:
path = sys.argv[2].lstrip("0123456789")
subprocess.call(["C:\Program Files (x86)\mpc\mpc-hc.exe", path])


And point media center to that script instead of mpc-hc

Joniii
25th October 2012, 15:50
Uriziel made this tiny python script you can use to strip that stuff out.

import subprocess
import sys

if "__main__" == __name__:
path = sys.argv[2].lstrip("0123456789")
subprocess.call(["C:\Program Files (x86)\mpc\mpc-hc.exe", path])


And point media center to that script instead of mpc-hc

Nm, I got it now. Thanks for the tip.

clsid
25th October 2012, 21:49
I have improved the pan&scan rotation functionality. With this change it is easier to flip and rotate the video. Old behavior was a 2 degree step for all 6 directions. New behavior is to take 180/90 degree steps in 3 of those directions.
Alt+2 = vertical flip
Alt+6 = horizontal flip
Alt+3 = rotate 90 degree counterclockwise

Here is changed code:

mainform.cpp
void CMainFrame::OnViewRotate(UINT nID)
------------------------------
switch (nID) {
case ID_PANSCAN_ROTATEXP:
m_AngleX = (m_AngleX + 2) % 360;
break;
case ID_PANSCAN_ROTATEXM:
if (m_AngleX >= 180)
m_AngleX = 0;
else
m_AngleX = 180;
break;
case ID_PANSCAN_ROTATEYP:
m_AngleY = (m_AngleY + 2) % 360;
break;
case ID_PANSCAN_ROTATEYM:
if (m_AngleY >= 180)
m_AngleY = 0;
else
m_AngleY = 180;
break;
case ID_PANSCAN_ROTATEZP:
m_AngleZ = (m_AngleZ + 2) % 360;
break;
case ID_PANSCAN_ROTATEZM:
if (m_AngleZ >= 270)
m_AngleZ = 0;
else if (m_AngleZ >= 180)
m_AngleZ = 270;
else if (m_AngleZ >= 90)
m_AngleZ = 180;
else
m_AngleZ = 90;
break;
default:
return;
}

tiny
26th October 2012, 15:32
I have the same problem as the guy you replied to: "Failed to query the needed interfaces for DVD playback" error when trying to open DVDs. I tried both regsvr43 qdvd.dll and quartz.dll. Error still comes up. Note: this is only for DVDs.
Win 7, using madVR+LAVFilters and DXVA.

Anyone have a suggestion?

Use the win32 version of the DVDNavigatorPathHack.exe tool from the dslibdvdnav-0.2.4 package to restore the link to the DVD navigator filter. (use google to find it)

See this image showing how I hacked the DVD Navigator path on my system:
http://img534.imageshack.us/img534/428/dvdnavigatorpathhack.jpg (http://imageshack.us/photo/my-images/534/dvdnavigatorpathhack.jpg/)
Clicking "restore" should revert to the system default.

Yoshi8765
26th October 2012, 23:47
@tiny:
Thanks a lot. I'll try this and report back.

Edit: I've completely forgotten about that neat little program for allowing DVD playback with madVR. I set it back to the system default. Then, MPC-HC gave me a "Macrovision fail," as expected. I switched it back to dslibdvdnav.ax in my 32-bit version of dslibdvdnav and tried again.
Left is what I get with open disc-> E.
Right is what I get with open DVD/BD->E.
http://i.imgur.com/MWXqy.jpg
The DVD drive whirls for a few seconds after showing me this, then stops. :confused:
I have Win 7 64-bit by the way. So I tried doing the same with with dslibdvdnav.ax 64-bit version, with no avail.

thedamager
28th October 2012, 00:59
I have this weird problem in fullscreen, all advice is welcome.

Window: http://i.imgur.com/kBqfI.jpg
Fullscreen: http://i.imgur.com/ZV9XC.jpg

As you can see, target rectangle in fullscreen is very wrong. My monitor is 1680x1050.

MPC-HC 1.6.4.6052
LAV Filters 0.52
madVR 0.84.3

It happens with different renderers too, on all videos.

Snowknight26
28th October 2012, 01:08
Video Frame -> Touch Window From Inside

thedamager
28th October 2012, 01:27
Oh, I feel so stupid now, I swear I thought I tried it.
Thanks a lot Snowknight26.

dansrfe
28th October 2012, 02:30
Feature request: If the file doesn't have chapters then MPC-HC should automatically divide the file into x equal chapter points. Thanks.

kasper93
29th October 2012, 15:25
No it shouldn't. Anyway for feature requests we have trac http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_Report_Issues

tiny
30th October 2012, 16:42
@Yoshi8765:
I'm sorry I couldn't test this earlier. I've got AnyDVD running in the background doing the decryption. If I disable AnyDVD the black window & no play problem like you're having occurs. Looks like the MPC/dslibdvdnav.ax/LAV combination doesn't play (normal commercial) encrypted DVDs without some extra help.