View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
SamuriHL
14th July 2010, 13:31
Whoops... sorry about that... I was really out of it last night. :p
The lack of MKV sub flag support just seems odd, since I'm almost totally sure MPC-HC USED to fully support the subtitle flags in older versions?... perhaps I'm wrong, though... either way it's kind of a basic feature.
I guess now that I know it's not just me, I can exercise my index finger and manually uncheck "enable" when I have to. Hopefully this feature (or a good permanent work-around) comes soon.
EDIT: Now that I think of it... does Haali work with MPC-HC? Perhaps that was what I remember working. There's a chance that my last working setup may have had it installed (I recently loaded Windows 7 64, but ran Vista 32 before that on this machine)
Yea, Haali works. For me, the problem with Haali is that on any DTS-HD MA track I make with mkvmerge, Haali doesn't handle it properly so ffdshow can't bitstream it. In essence, no splitter works 100% for my environment. I have batch files to switch between them. :)
dbone1026
14th July 2010, 13:43
Yea, Haali works. For me, the problem with Haali is that on any DTS-HD MA track I make with mkvmerge, Haali doesn't handle it properly so ffdshow can't bitstream it. In essence, no splitter works 100% for my environment. I have batch files to switch between them. :)
Unfortunately no signs that Haali has acknowledged the issue with mkvmerge...
SamuriHL
14th July 2010, 13:54
Unfortunately no signs that Haali has acknowledged the issue with mkvmerge...
I know. sigh. It's unfortunate. The MPC mkv splitter works with mkvmerge but then seems to always pick the first sub. We can't win! :)
Inspector.Gadget
14th July 2010, 17:27
On a related note, the MPC-HC MKV splitter doesn't populate the "Navigate -> Audio, Subtitles, Etc." fields either. Will this change?
homerpez
15th July 2010, 08:47
I installed the x64 (I think?) Haali splitter, and discovered this was the problem all along... one system I have had Haali installed (and worked normally) but I forgot to install Haali on my HTPC since it was all a fresh install. Seems to work for what I want it for so far, no issues yet with DTS (I think because I don't have anything over 5.1) so I think I'm set for now. Thanks...
Still would love to see the internal MKV splitter do the sub flags right, but...............
Keiyakusha
15th July 2010, 13:52
By the way, isn't work on "importing" ffmpeg's splitters already started? If so, there is not much sense to talk about current splitters.
And for new splitters, you probably will have to forward all feature requests to ffmpeg devs...
nevcairiel
15th July 2010, 14:25
Some work has started, but its currently focused inside XBMC-DSPlayer. There was a fork off the XBMC integrated splitter for a while to be a standalone directshow splitter, but it was re-integrated into XBMC and lost its ability to be compiled as a standalone filter (for now). No reason to split it in two projects while we're still working on resolving playback issues.
Anyhow, we'll setup a project again to compile a standalone splitter at some point, preferably directly out of XBMC without forking that part again.
But time is limited, and other projects have priority for now.
Integrating the whole thing into the mpc-hc executable is nothing i will be working on (ever), for multiple reasons. One being that ffmpeg itself is rather unstable when you link it statically.
oddball
15th July 2010, 23:18
OK let's try this again.
I am trying to do a PAL slowdown on a PAL .ts file. The problem is in that in order to do that I have to use ReClock in the chain. This actually works quite well for most 25FPS x264 material in MKV files. But for some reason this file (Which I assume is H264) causes problems.
From testing in various configurations I have come to the conclusion that the problem lies with the internal MPV Decoder. Reason being that when I use CoreAVC as a decoder the problem promptly vanishes. However this is not my ideal since CoreAVC has no option to disable itself for SD content which I like to have ffdshow automatically load for in order to upscale. I can achieve this usually by unticking MPC's internal Non-DXVA decoders and setting MPV Decoder's DXVA to disabled for SD. This means that when MPV Decoder tries to fallback on the internal decoders when it encounters SD content it can't, so instead ffdshow loads in their place.
Still following me? Good.
OK so we have established that playing back this H264 25FPS stream plays OK with CoreAVC in conjunction with ReClock using PAL slowdown. So what happens with MPC's internal DXVA decoder (and ffdshow's DXVA decoder I may add). Well basically when I click on the renderer information (EVR-CP BTW) it shows tons of dropped frames (More frames in fact than it says it has played. Which can't be correct surely) and a playback rate somewhere between 18-20FPS.
If I play the same file with CoreAVC as the decoder I see hardly any dropped frames and it stays a constant 24FPS in the renderer information.
Of course if I take ReClock out of the equation the renderer for DXVA shows a proper 24FPS.
So I want to know where the problem lies here. Is this just a straight up conflict between MPV Decoder and ReClock or something else?
I really wish to continue using DXVA for decoding because it's easier to do SD upscaling for both MPEG2 and MPEG4 sources (CoreAVC loads for ALL MPEG4 sources). But right now it is not working 100%
System spec is:
Win7 64
Nvidia G210
8GB DDR2
E6600 @ 3.4Ghz
Triple monitor setup (one of which is a Panasonic G20 HDTV @ 24Hz on the G210).
oddball
16th July 2010, 00:44
OK I figured out the problem with using DXVA with a 25FPS H264 .ts stream (Sorta). It seems to be an issue with vsync. If I switch to EVR-Sync. Disable vsync and use ReClock's vsync instead (Enable all ticks under advanced and set vsync to 12) it plays perfectly! I also get a more or less flat red line when I display stats. I got this info by accident (mainly from a clue in a ReClock thread over at Slysoft's forums).
BTW the renderer now says 25FPS instead of 24FPS but ReClock is slowing it down correctly to 24FPS on the 24Hz HDTV correctly (No PAL jerks on panning) and audio is at correct speed too. But for some reason it still shows tons of dropped frames in the renderer. If it was actually dropping that many frames the video would hardly display at all so I can only assume this is a bug in the renderer readings.
oddball
16th July 2010, 02:08
Just in case anyone jumps in to help. I figured most of my problems out myself. I was stupid enough to have a Nvidia profile set for MPC-HC which I forgot about that had vsync stuff enabled. This was my main problem after all. On a good note it encouraged me to clean out a lot of surplus to requirements codecs and players and clean the registry etc. Now MPC-HC runs better than ever! I can even do a spot of web browsing while a video plays with hardly a frame dropped. The oddity of the 25FPS frame dropping remains however. It shows 100% frames dropped of the frames played. Obviously totally wrong or I would just get a blank screen! ;)
Sorry to take up valuable thread space with my waffle. :P
Guest
17th July 2010, 15:08
To avoid cluttering up this support thread, I have moved the GUI discussion here:
http://forum.doom9.org/showthread.php?t=155699
Please follow up with all discussion of GUI proposals in that thread. Thank you.
MPC-HTPC
17th July 2010, 17:02
I got a question about commit 2125 "Change : show filename in OSD at open, instead "Pause/Play";".
Why do not keep the "Pause/Play" in OSD? I understand that this could be of benefit, when having several files in the playlist. But when I just open a file out of Explorer or from a list out of XBMC/MediaPortal I only open one file after the other and would prefer to just still see the "Play/Pause" in OSD. Could this be toggled depending on the case (many files in playlist or just one)?
However, many thanks to all the developers for all the effort you put into MPC-HC and all the good work! :thanks:
Steveo08
17th July 2010, 18:05
well, i like this change in 2125, but it should be displayed longer as a second, how can set time up?
dbone1026
18th July 2010, 02:00
Hello. A few of us are having problems with mkvs that contain LPCM tracks. I am using w7 x32, MPC HC 1.3.2099. The message says that the following pins failed to find a connectible filter - ACM Wrapper Output.
X:\Movies HD\CASINO ROYALE\Casino Royale 1080p Blu Ray.mkv::English, LPCM 5.1 (Audio 1)
ACM Wrapper::Output
Media Type 0:
--------------------------
Audio: PCM 48000Hz 6ch 4608kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 12
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 576000
nBlockAlign: 12
wBitsPerSample: 16
cbSize: 0 (extra bytes)
pbFormat:
0000: 01 00 06 00 80 bb 00 00 00 ca 08 00 0c 00 10 00 ....€»...Ê......
0010: 00 00 ..
Media Type 1:
--------------------------
Audio: PCM 44100Hz stereo 1411kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 44100
nAvgBytesPerSec: 176400
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)
pbFormat:
0000: 01 00 02 00 44 ac 00 00 10 b1 02 00 04 00 10 00 ....D¬...±......
0010: 00 00 ..
Media Type 2:
--------------------------
Audio: PCM 44100Hz mono 705kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 2
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 44100
nAvgBytesPerSec: 88200
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)
pbFormat:
0000: 01 00 01 00 44 ac 00 00 88 58 01 00 02 00 10 00 ....D¬..ˆX......
0010: 00 00 ..
Etc...
2125 needs to be reverted or fixed. When a filename is too long, it turns into a truncated mess.
http://img10.imageshack.us/img10/2682/2125bug.png
Confirming the problem.
If filename is longer then video's length then it gets truncated.
cbemoore
19th July 2010, 00:42
I've spent ages trying to track down a problem with dropped frames, and I've finally pinpointed where its going wrong.
My refresh rate is normally set to 50Hz (I'm in PAL-land), but I want to play back cinema content at 23.976Hz. If I manually change refresh rate before starting MPC-HC, it plays back perfectly with no dropped frames. However, if I use autochange within MPC-HC, the refresh rate switches correctly but I get constant dropped frames (around one frame every 2 seconds).
So it looks like some sort of problem with autochange. Or maybe MPC-HC doesn't handle the refresh rate changing after the video has started...
Has anyone else come across the same thing?
(My specs : Win7 x64, MPC-HC x32, ATI 5450 running at 1920x1080 via HDMI)
Aleksoid1978
19th July 2010, 03:34
Confirming the problem.
If filename is longer then video's length then it gets truncated.
Try lower font size :)
oddball
19th July 2010, 04:37
DXVA bug to report when playing H264 in FLV container.
With DXVA (EVR-CP D3D output will test without in a moment. EDIT: It's not the renderer that's for sure.). Note the additional distorted bar at the bottom. It makes the screen aspect incorrect too adding small black bars either side of the display.
http://img842.imageshack.us/img842/427/sample2.jpg
With CoreAVC (CUDA enabled) or ffdshow (Non-Accelerated).
http://img833.imageshack.us/img833/6522/sample1.jpg
namaiki
19th July 2010, 04:50
^what about the internal mpc decoder without dxva?
oddball
19th July 2010, 05:15
^what about the internal mpc decoder without dxva?
Plays fine. No distortion.
namaiki
19th July 2010, 05:18
Could you please post a sample?
Aleksoid1978
19th July 2010, 05:38
2135 - http://aleksoid.tosei.ru/Dist/2135/
Test x64 - see Title and 'About'.
oddball
19th July 2010, 07:29
Could you please post a sample?
http://hotfile.com/dl/56059203/dec06c9/sample.flv.html
I hope it does it on your system too ;)
namaiki
19th July 2010, 08:14
Ya, I get the same thing as oddball. The DivX H.264 filter using DXVA gives a black screen, and the internal MPC-HC DXVA filter has a bar at the bottom. Seems something forgets to crop the pixels off of the bottom, but the MS DTV-DVD video decoder filter is fine.
oddball
19th July 2010, 09:39
I've got another funky video clip that won't play nice. It keeps pausing every few seconds and when you hit pause the video continues playing and playing and playing even though it says it's paused.
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Muxing mode : Container profile=Unknown@3.2
Codec ID : V_MPEG4/ISO/AVC
Duration : 2mn 20s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 59.940 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 65 r999 cc51047
Encoding settings : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=tesa / subme=9 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=crf / crf=22.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : A_AAC
Duration : 2mn 20s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Parental advisory. It is a clip from an AMV (Anime Music Video) containing a compilation of fan service clips.
http://hotfile.com/dl/56079002/c5b0572/Zarxrax_58008_640x48060fps-001.mkv.html
namaiki
19th July 2010, 10:31
I've got another funky video clip that won't play nice. It keeps pausing every few seconds and when you hit pause the video continues playing and playing and playing even though it says it's paused.
Parental advisory. It is a clip from an AMV (Anime Music Video) containing a compilation of fan service clips.
Plays fine for me(mpc internal dxva and software decoder).
What are all the filters are you using that produce the above behaviour?
Aleksoid1978
19th July 2010, 10:32
I've got another funky video clip that won't play nice. It keeps pausing every few seconds and when you hit pause the video continues playing and playing and playing even though it says it's paused.
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Muxing mode : Container profile=Unknown@3.2
Codec ID : V_MPEG4/ISO/AVC
Duration : 2mn 20s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 59.940 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 65 r999 cc51047
Encoding settings : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=tesa / subme=9 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=crf / crf=22.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : A_AAC
Duration : 2mn 20s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Parental advisory. It is a clip from an AMV (Anime Music Video) containing a compilation of fan service clips.
http://hotfile.com/dl/56079002/c5b0572/Zarxrax_58008_640x48060fps-001.mkv.html
Possible you have ATI and 10.4+ Catalyst. It's known bug - error with decode SD video + DXVA.
If Nvidia ... i don't know
MPC-HTPC
19th July 2010, 10:45
Try lower font size :)
Thanks for the hint, that one worked with the long filenames. But then another problem occurs, I now just see a blue line with white unidentifiable letters when watching movies on my LCD-TV.
betaking
19th July 2010, 12:42
Hi,Aleksoid1978 can you compiled mpc-hc svn 2137 and standalone_filters_1.3.2137.0? thanks!
Guest
19th July 2010, 12:48
Reminder: GUI suggestions have been moved to new thread. Please post them there. Posts about it here are being silently deleted.
oddball
19th July 2010, 20:51
Plays fine for me(mpc internal dxva and software decoder).
What are all the filters are you using that produce the above behaviour?
I've tried setting to all internal filters and disabled any external loading filters. Using build 2099 No DXVA just internal decoder. Repeatable. It pauses continuously after a few seconds and the video slows to a crawl. Also pressing pause does not pause the video. It says it's paused but continues playing. If I play it in VMR9 renderless it plays fine but if I left click the mouse in the window to pause MPC hangs. If I just hit the space bar to pause it pauses fine. Playing back using EVR-CP D3D it goes nuts and won't play without constant pauses and slow stuttery video.
It also plays fine in GOM player, Media Player etc but they are not using D3D I don't think.
Nvidia G210 and latest drivers.
E6600
8GB DDR2
Win7 64
EDIT: I've found out the problem. It's D3D in conjunction with sending fullscreen video to a secondary display (In this case a HDTV at 24Hz). If I change D3D fullscreen to the current display (Primary) it plays fine.
Also the VMR9 Renderless causing MPC to hang using mouse click on window to pause is a new one.
@namaiki. Have you got a secondary display to test this with? Or better still a 24Hz capable HDTV?
EDIT2: Thinking about it I am guessing it's the fact it is 24Hz that it does not like. 60 into 24 don't go etc. Although I would have thought it would allow it to playback with dropped frames/frame stutter. Not continuous pausing. Just tested at 60Hz on HDTV and it does indeed playback fine. Bit of a pain switching each time for every source. :P
Aleksoid1978
19th July 2010, 23:33
rev 2138:
http://aleksoid.tosei.ru/Dist/2138/
http://aleksoid.tosei.ru/Dist/Filters/2138/
Snowknight26
20th July 2010, 00:10
Any reason why some logos were removed? On a related note, if you press the left arrow several times next to the Internal radio button, the right arrow disappears.
Who's brave enough to tackle the Ctrl+C and File->Close window size discrepancy?
As for the OSD file name length issue, it only happens for the first file to be opened. If you open a file then open the same file again, the name displays fine. My guess is that the OSD is drawn before the renderer surface is resized to the video's dimensions. Seems like a really silly bug.
SamuriHL
20th July 2010, 00:37
rev 2138:
http://aleksoid.tosei.ru/Dist/2138/
http://aleksoid.tosei.ru/Dist/Filters/2138/
Sorry if this is a stupid question, but, where do I find the change log? Thanks!
Aleksoid1978
20th July 2010, 00:41
Sorry if this is a stupid question, but, where do I find the change log? Thanks!
http://mpc-hc.svn.sourceforge.net/viewvc/mpc-hc/?view=log
SamuriHL
20th July 2010, 00:45
Thanks. Sorry for such an idiotic question.
Hypernova
20th July 2010, 10:45
I can't get fullscreen autochange to work with D3D Fullscreen. I have to manually trigger it by alt+enter. Is this the intended behavior?
Wonder if you can enable or effects when playing an audio file.
Thanks :)
fixed
20th July 2010, 12:14
Are there any plans about libbluray (http://www.videolan.org/developers/libbluray.html) integration?
tetsuo55
20th July 2010, 15:56
Any reason why some logos were removed?We're cleaning up the source tree and decided against keeping the removed ones, you can download them from the older revisions and add them manually if you still want them.
Are there any plans about libbluray (http://www.videolan.org/developers/libbluray.html) integration?Yes we have been in contact with the team in the beginning of this project and intend to support it in the future.
Ramon4eg
21st July 2010, 08:48
What for filters are necessary?
littleb2005
21st July 2010, 23:31
does mpc-hc give control over the playback speed rather then just jumping to 2x
what i mean is like being able to go from 1.00 speed wise to 1.10 kind of what vlc is capable of
chapas
22nd July 2010, 01:53
Hi guys. Does anyone know how MPC-HC evaluates whether to use DXVA or not?
I have two desktops, one with AMD 785G and the other with an ATI Radeon 4870 (both are UVD2) running 10.6 drivers (latest) and Win7 x64.
The 4870 opens almost all the videos I throw at it, disregarding what I set in DXVA Compat Check. DXVA works fine MS DTV-DVD Decoder too.
The 785G only does the same if I set DXVA Compat Check to "Skip all checks". Again, DXVA works fine MS DTV-DVD Decoder.
I know I can go and "Skip all checks" and just disable DXVA if I find glitches, but is this recommended? Both MPC and Microsoft filters corrupt SD video, seems to be a driver glitch.
Hope someone can help! Thanks!
Kado
22nd July 2010, 03:08
@chapas
Although I'm using NVIDIA I use "Skip all Checks" because otherwise some files will not trigger DXVA.
In you case enable "Disable DXVA for SD", because it's already known that with recent Catalyst drivers SD videos get corrupted, and use software decoding instead.
chapas
22nd July 2010, 05:08
@Kado
I'll do that, then!
It seems that, no matter the checks, the player cannot guess if the file will be properly supported.
What seemed strange to me was the 4870 with 10.6 drivers just triggering DXVA on anything, as if having a great DXVA compatibility, but that may be an illusion.
I'll keep wondering why the 785G (IGP) does not trigger DXVA as frequently, having the same capabilities and drivers!
:thanks:
namaiki
22nd July 2010, 05:14
785g is uvd and 4870 is probably uvd2.
edit: wait no, they're both supposed to be UVD2. :/
chros
22nd July 2010, 09:13
Can somebody add support for displaying commands via OSD from the "After playback" group ? (exit, stand by, shutdown, etc. and for their off states)
It would be very useful when you are using a remote control ...
Thanks
chapas
22nd July 2010, 12:47
@namaiki
Yes, they're both UVD2! They do have the same capabilities, and decode the same videos the same way, BUT: the 785G does not pass the checks done by the MPC-HC codec, so I need to "Skip all checks".
tetsuo55
22nd July 2010, 13:58
i think the check is inaccurate.
the check should be rewritten with documenten fact on what does and does not work.
chapas
22nd July 2010, 20:31
@tetsuo55
If I can help with any way not involving programming, let me know! I can provide feedback for AMD 785G and ATI 4870.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.