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

diizzy
3rd January 2009, 07:47
Hi,
In recent builds the default colorspace was changed from YV12 to YUV2 in order to help hardware acceleration this however made performance impact on video playback when using some video cards. Is it possible to make a little checkbox which colorspace to "prefer"? I'm also not sure why output pin reports a different resolution than the video itself.

This has been tested with rev901 vs rev940 on a laptop (GMA950) with a native resolution of 1280x768 using VMR9 (Windowed) using standalone filters in MPC-HC rev940.

rev901
Input pin: Video: MPEG4 Video (H264) 1440x1080 (16:9) 50.00fps
Output pin: Video: YV12 1536x1080 (16:9) 50.00fps
A bit choppy but at least it plays somewhat

rev940
Input pin: Video: MPEG4 Video (H264) 1440x1080 (16:9) 50.00fps
Output pin: Video: YUY2 2048x1080 (16:9) 50.00fps
Slideshow

Keep up the good work
//Danne

plonk420
3rd January 2009, 09:34
Would be nice to have some of the bugs here be acknowledged by the devs.

And on that note, my issue in #4848 (http://forum.doom9.org/showpost.php?p=1213903&postcount=4838) still happens.
Sample here: http://www.stfcc.org/misc/Animusic.2004.NTSC.x264-S26.cut.mkv

what settings did you use?

Steveo08
3rd January 2009, 15:28
hello,

i plan to buy a new grahic card explicitly for using dxva with mkv movies.

my question now is what should i buy, ati or nvidia?

i am having a nvidia 8600 GT but i am not contently with my card and dxva. some movies get to blocky with dxva.

i would like to buy an ati hd4350, so i hope to get a better dxva support. or is a newer nvidia 9xxx card better?

buzzqw
3rd January 2009, 16:30
better post processing with a ati 4670

BHH

Steveo08
3rd January 2009, 16:57
better post processing with a ati 4670

BHH




is this card not to oversize for just dxva?

buzzqw
3rd January 2009, 17:12
h264, mpeg2, vc1 all on dvxa
good post processing and deinterlacing
also output 7.1 channels LPCM on hdmi

BHH

Steveo08
3rd January 2009, 17:14
h264, mpeg2, vc1 all on dvxa
good post processing and deinterlacing
also output 7.1 channels LPCM on hdmi

BHH




but i thought that will do a 4350 too, or?

tetsuox
3rd January 2009, 17:15
hello,

i plan to buy a new grahic card explicitly for using dxva with mkv movies.

my question now is what should i buy, ati or nvidia?

i am having a nvidia 8600 GT but i am not contently with my card and dxva. some movies get to blocky with dxva.

i would like to buy an ati hd4350, so i hope to get a better dxva support. or is a newer nvidia 9xxx card better?

DXVA has limitations, and on h.264 encodes that exceed these limitations you'll get blockiness. See here for more info.
http://forum.doom9.org/showthread.php?t=132924 and http://forum.doom9.org/showthread.php?p=1140181#post1140181

I suggest you stick with your current card and just use a software decoder for those troublesome files and save yourself some money. Unless your cpu can't handle 720p/1080p h264 decoding?

Steveo08
3rd January 2009, 17:24
DXVA has limitations, and on h.264 encodes that exceed these limitations you'll get blockiness. See here for more info.
http://forum.doom9.org/showthread.php?t=132924

I suggest you stick with your current card and just use a software decoder for those troublesome files and save yourself some money. Unless your cpu can't handle 720p/1080p h264 decoding?




720p isn't a problem for my cpu, just some 1080p files with higher bitrates.

so you think, i won't improve dxva for mkv files with a newer card, like ati 4xxx?

tetsuox
3rd January 2009, 17:28
720p isn't a problem for my cpu, just some 1080p files with higher bitrates.

so you think, i won't improve dxva for mkv files with a newer card, like ati 4xxx?

What version of ffdshow are you using? The newer revisions are significantly faster at decoding h264.

I also recall something about newer geforce drivers supporting more ref frames or higher AVC profile levels in DXVA in this thread, but I can't seem to find it.

Steveo08
3rd January 2009, 17:31
What version of ffdshow are you using? The newer revisions are significantly faster at decoding h264.

I also recall something about newer geforce drivers supporting more ref frames or higher AVC profile levels in DXVA in this thread, but I can't seem to find it.



i am using the lastest version of ffdshow-mt

http://www.xvidvideo.ru/content/view/545/1/

and for my nvidia 8600gt i downloaded the lastest beta driver.

tetsuox
3rd January 2009, 17:55
i am using the lastest version of ffdshow-mt

http://www.xvidvideo.ru/content/view/545/1/

and for my nvidia 8600gt i downloaded the lastest beta driver.

It was around here http://forum.doom9.org/showthread.php?p=1209855#post1209855 also note the post below stating 11 reference frame limitation. I'm not sure that ATi can even playback L5.1 streams to begin with (my last ATi card was an x800 XT) I don't think it will be better switching camps. With regards to nVidia cards, afaik all their 8xxx + series with the exception of a few have the same DXVA features with regards to GPU decoding.

See here:
http://www.nvidia.com/docs/CP/11036/PureVideo_Product_Comparison.pdf Doesn't include the 9xxx series or the 2xx's.

Note: Unless I'm wrong, Purevideo = DXVA

So the short answer is, it won't get better by upgrading your GPU. Perhaps give coreavc a try? Although based on my own benchmarks, the speed gap between coreavc and ffdshow-mt has considerably lessened recently.

Additional info regarding Purevideo from Neuron2's development dialog with nvidia http://neuron2.net/dgavcdecnv/cuda/cuda.html

Quote nvidia engineer: "When getting full VP utilization, without any 3D bottleneck, the perf of the 8500GT should be very close to a 9800GTX, since IIRC the video processor is clocked at the same speed on both, though this could depend on the manufacturer (usually it is running at 450MHz, but some low-end GPUs are only running VP at 400MHz)."

That is for CUDA h264 decoding, but assuming that DXVA utilizes the same video processor they are talking about, then you would get a minor improvement by upgrading to a more expensive nvidia card.

Steveo08
3rd January 2009, 18:35
It was around here http://forum.doom9.org/showthread.php?p=1209855#post1209855 also note the post below stating 11 reference frame limitation. I'm not sure that ATi can even playback L5.1 streams to begin with (my last ATi card was an x800 XT) I don't think it will be better switching camps. With regards to nVidia cards, afaik all their 8xxx + series with the exception of a few have the same DXVA features with regards to GPU decoding.

See here:
http://www.nvidia.com/docs/CP/11036/PureVideo_Product_Comparison.pdf Doesn't include the 9xxx series or the 2xx's.

Note: Unless I'm wrong, Purevideo = DXVA

So the short answer is, it won't get better by upgrading your GPU. Perhaps give coreavc a try? Although based on my own benchmarks, the speed gap between coreavc and ffdshow-mt has considerably lessened recently.

Additional info regarding Purevideo from Neuron2's development dialog with nvidia http://neuron2.net/dgavcdecnv/cuda/cuda.html

Quote nvidia engineer: "When getting full VP utilization, without any 3D bottleneck, the perf of the 8500GT should be very close to a 9800GTX, since IIRC the video processor is clocked at the same speed on both, though this could depend on the manufacturer (usually it is running at 450MHz, but some low-end GPUs are only running VP at 400MHz)."

That is for CUDA h264 decoding, but assuming that DXVA utilizes the same video processor they are talking about, then you would get a minor improvement by upgrading to a more expensive nvidia card.




ok, thank you for your explaining to me. i think the best for me is keeping my current video card.

buzzqw
3rd January 2009, 20:26
just for your info check these threads http://www.avsforum.com/avs-vb/showthread.php?t=1103425

http://www.avsforum.com/avs-vb/showthread.php?t=1055454

BHH

Snowknight26
3rd January 2009, 20:40
Whenever I play this sample (http://www.stfcc.org/misc/bandofbrothers.m2ts) without DXVA, I get some corruption. With DXVA, however, it plays correctly.

Mercury_22
3rd January 2009, 21:43
Revision 945 - Directory Listing
Modified Sat Jan 3 16:34:46 2009 UTC (4 hours, 2 minutes ago) by casimir666
NEW : Flac audio decoder (Mkv only at the moment)
NEW : Dolby Digital+ audio decoder (Eac3)
NEW : Nellymoser audio decoder
NEW : Flac audio source (not working yet)
FIXED : Switch to "Minimal view" reset main menu language to English
FIXED : Duration not detected for some Theora video

Thanks for the FLAC support !:thanks: I can't wait to be completed ! :D

Rain1
4th January 2009, 02:11
Steveo08

Here is some info for your reference:

http://en.wikipedia.org/wiki/Unified_Video_Decoder

Also

http://en.wikipedia.org/wiki/Purevideo
(there're 3 generations of Purevideo, the last one was called "Purevideo HD", which I think is fully capable of DXVA1 & 2)

alexins
4th January 2009, 02:41
Media Player Classic HomeCinema (x86), svn 948 (http://www.xvidvideo.ru/content/view/549/1/)
Media Player Classic HomeCinema (x64), svn 948 (http://www.xvidvideo.ru/content/view/548/1/)

Supported languages: CN, CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA

Changes log (http://www.xvidvideo.ru/content/view/7/17/)

Updated FFmpeg; NEW : Flac audio decoder (Mkv only at the moment); NEW : Dolby Digital+ audio decoder (Eac3); NEW : Nellymoser audio decoder; NEW : Flac audio source (not working yet); FIXED : Switch to "Minimal view" reset main menu language to English; FIXED : Duration not detected for some Theora video; Update Traditional Chinese translation; Fix broken DXVA playback from rev 940; Fixed : broken playback for some AC3 since rev 945.

rt87
4th January 2009, 04:18
Media Player Classic HomeCinema (x86), svn 948 (http://www.xvidvideo.ru/content/view/549/1/)
Media Player Classic HomeCinema (x64), svn 948 (http://www.xvidvideo.ru/content/view/548/1/)

Supported languages: CN, CZ, DE, ES, FR, HU, IT, KR, PL, RU, SK, TR, UA

Changes log (http://www.xvidvideo.ru/content/view/7/17/)

Updated FFmpeg; NEW : Flac audio decoder (Mkv only at the moment); NEW : Dolby Digital+ audio decoder (Eac3); NEW : Nellymoser audio decoder; NEW : Flac audio source (not working yet); FIXED : Switch to "Minimal view" reset main menu language to English; FIXED : Duration not detected for some Theora video; Update Traditional Chinese translation; Fix broken DXVA playback from rev 940; Fixed : broken playback for some AC3 since rev 945.
:thanks: and waiting for standalone filter.

tetsuox
4th January 2009, 04:33
I noticed today that I get about 80ms jitter with EVR CP with all recent builds, anyone else noticed this? Last version that I know that works fine is rev 922.

I also get 80ms jitter with EVR Custom Presenter with rev 934 or later (including rev 948) when using ffdshow. Jitter is 0ms up to and including rev 929. 80ms jitter also when using internal MPC-HC AVC ffmpeg decoder.

However using DXVA I get 0-1ms jitter (rev 948).

This is on Vista x64, all the other renderers are unaffected.

Note: my testing is based on available builds from xvidvideo.ru so it maybe be possible this bug occurred anywhere between 929 and 934.

shaolin95
4th January 2009, 05:01
Is there such thing as a best mpc-hc config to play 1080p mkvs?Is there anything I can post about my config so that maybe you can offer some advice on how to improve it?
Thanks!

Snowknight26
4th January 2009, 05:04
I also get 80ms jitter
I can confirm this as well.

Also, another strange issue. Note the video size compared to the actual video resolution in this pic (http://www.stfcc.org/misc/mpchc.videosize.png).

thuan
4th January 2009, 10:17
Have the Jitter problem as well on X64. It only happens with ffdshow (x64 version) though. Another problem is flac decoding filter loaded but there's no sound on a movie file which have 5.1 FLAC audio. I don't have any other file to test.

Casimir666
4th January 2009, 10:48
I also get 80ms jitter with EVR Custom Presenter with rev 934 or later (including rev 948) when using ffdshow. Jitter is 0ms up to and including rev 929. 80ms jitter also when using internal MPC-HC AVC ffmpeg decoder.

However using DXVA I get 0-1ms jitter (rev 948).

This is on Vista x64, all the other renderers are unaffected.

Note: my testing is based on available builds from xvidvideo.ru so it maybe be possible this bug occurred anywhere between 929 and 934.

You mean the jitter displayer with "Ctrl+J"? Can you post a screenshot?

cca
4th January 2009, 10:53
It's not only displayed with CONTROL + J, but also in the EVR properties, in quality stats. Also displayed with CTRL + 4, in the statistics.

EDIT: screenshot added
http://img223.imageshack.us/img223/3277/shot2mc9.th.jpg (http://img223.imageshack.us/my.php?image=shot2mc9.jpg)

Casimir666
4th January 2009, 11:46
It's not only displayed with CONTROL + J, but also in the EVR properties, in quality stats. Also displayed with CTRL + 4, in the statistics.

EDIT: screenshot added
http://img223.imageshack.us/img223/3277/shot2mc9.th.jpg (http://img223.imageshack.us/my.php?image=shot2mc9.jpg)

Ok i have changed the fps calculation for EVR Custom in rev 931, because on my machine the jitter curve was not centered. Now it's ok for me but not for other :mad:...

This is only a display problem, and should affect render.

Steveo08
4th January 2009, 14:35
Steveo08

Here is some info for your reference:

http://en.wikipedia.org/wiki/Unified_Video_Decoder

Also

http://en.wikipedia.org/wiki/Purevideo
(there're 3 generations of Purevideo, the last one was called "Purevideo HD", which I think is fully capable of DXVA1 & 2)




thank you for the links.

ikarad
4th January 2009, 15:27
Ok i have changed the fps calculation for EVR Custom in rev 931, because on my machine the jitter curve was not centered. Now it's ok for me but not for other :mad:...

This is only a display problem, and should affect render.

Casimir666 have you succeed to synchronize subtitle of blu-ray because even in the last version (1.2.948) some subtitles are still not synchronized with voice? Sometimes there is 2 to 4 seconds of delay between start of sentences and subtitles display?

and I notice that "load subtitle" function doesn't work with evr custom selected. With vmr9 renderless rendere selected "load subtitle" function works but not with evr custom renderer selected

carnage_pl
4th January 2009, 15:50
Casimir666 have you succeed to synchronize subtitle of blu-ray because even in the last version (1.2.948) some subtitles are still not synchronized with voice? Sometimes there is 2 to 4 seconds of delay between start of sentences and subtitles display?

and I notice that "load subtitle" function doesn't work with evr custom selected. With vmr9 renderless rendere selected "load subtitle" function works but not with evr custom renderer selected

Works for me

ikarad
4th January 2009, 16:06
Works for me

subtitle synchronization or load subtitle function?

Because on some Blu-ray synchronization is perfect (ghost in the shell for example) but in some blu-ray (utawarerumono or die buster) I have a delay for some subtitles between voice and the display of subtitle.

For load subtitle function, when i select vmr9 renderless, subtitle are displayed but with evr custom renderer selected subtitles are not displayed or very bad under xp and under vista and with 2 different configs.

carnage_pl
4th January 2009, 16:30
subtitle synchronization or load subtitle function?

Because on some Blu-ray synchronization is perfect (ghost in the shell for example) but in some blu-ray (utawarerumono or die buster) I have a delay for some subtitles between voice and the display of subtitle.

For load subtitle function, when i select vmr9 renderless, subtitle are displayed but with evr custom renderer selected subtitles are not displayed or very bad under xp and under vista and with 2 different configs.
Load subtitle. I never experienced any problems with that.

ikarad
4th January 2009, 16:51
Load subtitle. I never experienced any problems with that.

with evr custom or vmr9?
I speak about this function "load subtitle" (crtl+L) in the file menu
http://nsa03.casimages.com/img/2009/01/04/mini_090104045355361509.jpg (http://www.casimages.com/img.php?i=090104045355361509.jpg)

and not this function "auto-load subtitles" in the option
http://nsa03.casimages.com/img/2009/01/04/mini_090104045435828653.jpg (http://www.casimages.com/img.php?i=090104045435828653.jpg)

jffulcrum
4th January 2009, 19:12
ADude
I am using Haali Splitter and when I select the DTS track, it does not work.

Have similar problem, selecting different stream in Haali ends with no sound at all, and with internal splitter player tries to render both streams simultaneously (ffdshow audio decoder tray icon doubled) and also no sound at all. Even AVI files with two&more streams plaqued. The "Audio" item in "Play" menu grayed out, internal audio switcher not work (seems like it not included into last builds or not inserted by player into graph). MPC-HC build 940 from xvidvideo.ru, build 908 from sourceforge also affected.

clsid
4th January 2009, 19:18
It works fine for me. Are you sure you have the internal audio switcher enabled in MPC?

Casimir666
4th January 2009, 19:20
Casimir666 have you succeed to synchronize subtitle of blu-ray because even in the last version (1.2.948) some subtitles are still not synchronized with voice? Sometimes there is 2 to 4 seconds of delay between start of sentences and subtitles display?

and I notice that "load subtitle" function doesn't work with evr custom selected. With vmr9 renderless rendere selected "load subtitle" function works but not with evr custom renderer selected

Cannot download your latest sample on zshare :(

Gamezcdr
4th January 2009, 19:24
In every movie i got the same problem like in the attachement
Asus ATI 3450 Catalyst 8.12, VMR 9.

jffulcrum
4th January 2009, 19:50
clsid
I see checked field "Enable built-in audio switcher filter" in "Options", i see key EnableAudioSwitcher (DWORD) with 0x00000001 value in HKCU\Software\Gabest\Media Player Classic\Settings, but i not see him in "Play" - "Filters" list during playback and hear no reaction after changes in "Options", like changing channels, regain volume boost. I tried many types of media: mp3, mp4, avi, mpeg2, ogm - it never appear. My system is Windows XP SP3.

clsid
4th January 2009, 21:58
You must be using some kind of broken build then.

ADude
4th January 2009, 22:18
It works fine for me. Are you sure you have the internal audio switcher enabled in MPC?

It seems to be entirely random whether anyone actually reads the problem reports in this thread. I posted the following twice before:

I have a problem playing an MKV file that has an unusual characteristic - it has two audio streams, one DTS and one "Vorbis". The encoder made the Vorbis stream as the default, evidently, because it comes up with that one playing. I am using Haali Splitter and when I select the DTS track, it does not work.

My guess is that since DTS requires a different group of filters, it would seem that Haali Splitter audio selection does not change the filters loaded by MPC.

I tried enabling the Internal Audio Switcher, but it only shows one choice of "MKV file audio".

( I can play the file with the Vorbis audio without problems, and I can play other MKV files that only have DTS audio tracks, but I cannot change from Vorbis audio to DTS audio using Haali Splitter. )

Any thoughts ?

clsid
4th January 2009, 22:50
If you would also have read this thread then you would have seen that I replied to jffulcrum's post. :mad: You should use a different tone if you want people to help you.

What are you using to decode DTS? I use ffdshow.

carnage_pl
4th January 2009, 23:12
with evr custom or vmr9?
I speak about this function "load subtitle" (crtl+L) in the file menu
http://nsa03.casimages.com/img/2009/01/04/mini_090104045355361509.jpg (http://www.casimages.com/img.php?i=090104045355361509.jpg)

and not this function "auto-load subtitles" in the option
http://nsa03.casimages.com/img/2009/01/04/mini_090104045435828653.jpg (http://www.casimages.com/img.php?i=090104045435828653.jpg)

Both of them. I have Vista and preset to evr custom

tetsuox
4th January 2009, 23:25
I've been meaning to ask this for awhile since I upgraded to Vista a few months back.

When Options > Player > "Keep history of recently opened files" is checked, opening a file via File > Open file... or ctrl-o will show the current or last opened filename in the Open file dialog.

However as soon as I click Browse in the Open file dialog, it defaults to the last folder I used in Firefox or whatever app I used last that uses the open or save file dialog. I remember when I was using XP (and an older build of MPC-HC) the browse button would point to the folder of the currently opened file or last played file.

Basically I would like the old behavior back where browse would point to the folder that contained the last opened file or currently opened file. I'm not sure if this behavior is related to Vista or the later builds of MPC-HC.

tetsuo55
4th January 2009, 23:35
In every movie i got the same problem like in the attachement
Asus ATI 3450 Catalyst 8.12, VMR 9.

This is a know bug, as far as i know no-one has been able to find the cause/solution.

It has to do with the way MPC-HC gives the video-stream to the videocard, ATI expects a different input from nvidia.
What makes things even worse is that ATI tweaks these settings between driver releases causing different results everytime.

Seeing as PowerDVD can playback all the media perfectly on any driver version(without updating the PowerDVD.exe) there must be a "safe" way of giving the slices to ATI cards.

I get these errors for both H264 and VC1

ADude
4th January 2009, 23:46
If you would also have read this thread then you would have seen that I replied to jffulcrum's post. :mad: You should use a different tone if you want people to help you.

What are you using to decode DTS? I use ffdshow.

Yes, but you asked jffulcrum a question which was answered in my post. My post was posted twice, and jffulcrum's post was a reply to my post.

In all three of the problems I've posted over the past year that no one has responded to, I have already played the file in another player before posting, so I don't need help. The post is a problem report - because you can bet that for every one problem report, 100 people like jffulcrum have also encountered the problem and most don't bother to report it.

For a program to be quality, bugs need to have higher priority than new features. I appreciate that all the development is by kind volunteer effort, but fixing bugs and reading bug reports needs to have a better system than "whatever posts happens to be noticed because they are interesting".

I don't decode DTS, all 5.1 is passed to the receiver intact on the SPDIF by "SPDIFER" open source filter. Vorbis is decoded to PCM, and PCM is handled by "ACFILTER" open source filter. I am not sure how dual audio is suppoed to work, either all the filters are supposed to be loaded at startup for all audio, or else changing audio in Haali is supposed to cause different filters to be loaded, but neither is happening.

tetsuo55
5th January 2009, 00:17
For a program to be quality, bugs need to have higher priority than new features. I appreciate that all the development is by kind volunteer effort, but fixing bugs and reading bug reports needs to have a better system than "whatever posts happens to be noticed because they are interesting".


There is a real bug-tracker available om the site:
http://sourceforge.net/tracker2/?func=browse&group_id=170561&atid=854651

Now i see bugs that have not been touched at all yet that date back to september 2007.

Maybe its a good idea to add the bugtrack to the startpost
Same for the feature request tracker:
http://sourceforge.net/tracker/?atid=854654&group_id=170561&func=browse

Every bug discussed here should have a tracker ID
If someone is unsure if the problem in question is a bug or a user error they can post here, but as soon as it appears to be a bug a ticket should be made before continuing, any updates to the situation can be added to the ticket.

That does mean however than all the active DEV's will have to clean up both lists.

hdboy
5th January 2009, 10:17
just bought a visiontek 4850 and very excited to get dxva working on some (not all) h264 and vc1 content. yay :)

however, it's way too dark. with coreavc, I'd fix it by having coreavc output TV levels. how do I do this with mpc + dxva?

I'm not using any shader. catalyst 8.12, win xp 32 bit sp3. vmr9. mpc 1.2.948. display is sony bravia lcd tv.

tetsuox
5th January 2009, 10:44
@hdboy

This might help http://forum.doom9.org/showthread.php?t=143689

jffulcrum
5th January 2009, 11:51
Well, after digging deeply inside ffdshow audio decoder settings i solved problem with "missed in action" MCP internal audio switcher. My error was an "Connect to" option in "Output" page of decoder, it must be "any filter". But MPC still tries to render all streams simultaneously ("Audio" item in "Play" menu show only one stream), and still no sound, as well as after changing stream in Haali or in ffdshow decoder internal stream switcher (i not knew that them has it). When i receive good internet connection i will upload my samples and ask ffdshow-tryout team about it.

Beliyaal
5th January 2009, 16:13
Hello everyone, I finally taken the time to setup MPC-HC for development so I can fix a couple of issues that have been irritating me for a long time.

What is the easiest way to get changes to the devs so they can give input and maybe include the changed code in SVN? I'm guessing that SVN submit access is out of the question at this stage.

I have been working on the following areas:

Custom EVR
The sync for the custom EVR was practically nonexistent. Aside from being unable to drop frames when the movie fps is about equal to the screen refresh it also uses a non-robust method for syncing.

I have now fixed the sync to be as perfect as is possible. For example when you run a 23.976 movie in 24 fps instead of stuttering several frames as the Haali renderer does it only stutters once to fix the sync.

I have added a new statistics graph to visualize audio/video sync in addition to the jitter display.

In debugging I also found out that the sample queue didn't fill up as quickly as it should. I thought that this was because you didn't get any samples from the mixer while waiting for VBlank in Present, so I moved the getting of samples from the mixer to a separate thread.

Now I'm not sure if this was an issue, but it shouldn't hurt. In addition I had to create a separate lock for the sample queue, otherwise the thread would not be able to work at the same time as wating for VBlank.

In addition to this the decoder is not able to lock new surfaces while waiting for VBlank, so I had to do a manual sync to VBlank and remove the VSync in Present. This relies on m_pD3DDev->GetRasterStatus. I'm not sure if this is available on all graphics cards. But if it is, it should fix all sync to vblank issues and remove the need for the lock surface hack.

I also had trouble playing VC1 content with the software decoder (DXVA hangs after a couple of seconds and the computer hangs shortly after). Because the internal software decoder was broken for m2ts files I used the default VMR decoder. This caused 13 fps playback with lots of dropped frames after I had fixed the sync.

Turns out GetSampleTime was unreliable and the frame times were switched around. I fixed this by correcting the sample times if they were outside a specific range. Not sure if this could break other things.

Also GetSampleDuration always returned 1, so I changed to calculate the subPicQueue fps from m_rtTimePerFrame instead.

All these fixes made it possible to playback VC1 content in software without issues where it would start to stutter before because of the sample queue not being filled because of threading issues. It also fixed the same issues with other software decoders that require much CPU.


File streaming performance
I changed MINPACKETS in base splitter to 100 and MINPACKETSIZE to 256*1024 and DEFAULT_CACHE_LENGTH from 2048 to 64k.

This made it possible for me to stream bluray content over my 1GBit network with the internal splitter. This would only work before with the haali splitter, but the haali splitter doesn't support MLP and other hd audio stream formats.


Hdmv LPCM
Changed a calculation in ProcessHdmvLPCM that only worked for power of 2 number of channels.


Further work
I'm planning on adding the following features and fixes in the future:

* Fix the broken sync for DTS passthrough on Radeon HD cards. This is because the sound time source is unstable, should be possible to smooth it out if ATI can't bother to care.

* Add support for automatically changing display refreshrate through PStrip with configurable mode lines.

* Add support for automatically changing the number of audio output channels based on content. This is because my receiver requires the correct number of channels to use the correct expansion modes to 7.1.

* Add support for DTS-MA and MLP streams passthrough.


Questions
Why is m_rtTimePerFrame twice the time it should be? Have to divide by 2 on many places?

Is it possible/how to pause sound from EVR? I would need to do this when video is too far behind audio.

Have anyone researched DTS-MA and MLP passthrough on Radeon HD cards? Is it even supported? Is it much work to put together the correct streams, and is there information about how the receiver expects the data?

tetsuo55
5th January 2009, 17:02
Beliyaal

Awesome work, i'm sure Casimir666 will want to take a look at your patches.

I might be jumping ahead a bit, but all the problems you found and fixed might be effecting some(or even all) other renderers.
Have you had a chance to look at those?

Some of the things you mentioned could be the cause of the random macroblocking problems a lot of us ATI users have.