View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
Octo-puss
18th November 2012, 23:09
Saving settings to an INI file is extremely unrecommended. It wastes a lot of time. Furthermore, it is possible that the application doesn't have write-file permissions in the Program Files area if not executed as administrator...
I assume you mean under Win8, or are you talking in general?
Considering the portability of MPC-HC is one of the things I like about it the most, saving settings to a file is extremely important and useful feature to me.
What do you mean by "wastes lot of time"?
LigH
19th November 2012, 10:17
I mean it in general. Even under Windows XP, writing such a long and complex INI file can take several seconds, I know a PC where it took about 20. So do you want to wait each time after closing MPC-HC, before you can start another instance for the next media file? Maybe activate writing the INI file once; but don't keep it enabled!
And since Vista, the regular "Program Files" directory branch is protected by Windows in a way that only administrative user accounts have write permission there, to avoid the installation of "potentially unwanted programs" (PUPs) there. If you want to use INI files regularly, consider installing MPC-HC outside this directory branch.
manolito
19th November 2012, 13:17
I mean it in general. Even under Windows XP, writing such a long and complex INI file can take several seconds, I know a PC where it took about 20. So do you want to wait each time after closing MPC-HC, before you can start another instance for the next media file? Maybe activate writing the INI file once; but don't keep it enabled!
On my machine (WinXP SP3) the MPC-HC INI file has a size of 32 KB. This PC where you experienced a saving time of 20 sec for this kind of file certainly has some serious problems... Whenever I close MPC-HC (and I do have an extremely slow computer), I cannot feel any delay caused by saving the INI file.
And since Vista, the regular "Program Files" directory branch is protected by Windows in a way that only administrative user accounts have write permission there, to avoid the installation of "potentially unwanted programs" (PUPs) there. If you want to use INI files regularly, consider installing MPC-HC outside this directory branch.
You can call me hopelessly nostalgic, but I still curse Microsoft for creating this install / uninstall mess. In my view any software should not need a specific installation process. Just extracting the archive to a folder should be enough. All settings for this software should be saved in its own folder. If the software needs specific versions of system DLLs then these DLLs should also be stored in the software folder so Windows will ignore another DLL with the same name which might reside in the system32 folder. Uninstalling would be as simple as deleting a folder.
Have you tried uninstalling Antivirus software or maybe Acronis True Image recently? You will be lucky if your machine is still half way usable after this uninstall.
Luckily there still is software which works like I pointed out. Mostly it is stuff which has been ported from Linux, but I also remember some other software where the author proudly made a point in the readme that his software needs no installation, will not screw up the registry and will not modify any global operating system files or settings.
Alright, enough ranting...:devil:
Cheers
manolito
Octo-puss
19th November 2012, 14:13
I wouldn't call 64kB ( in my case) file huge, and I woudln't call a text file complex either :P
v0lt
19th November 2012, 15:46
Improving Audio Switcher.
mpc-hc_6230.x86_AudioSwitcher_1.7z (http://www.mediafire.com/?22p1efce1c70b1h)
(there are some problems when using ffdshow)
http://s60.radikal.ru/i168/1211/f4/a323f22c5a0ft.jpg (http://s60.radikal.ru/i168/1211/f4/a323f22c5a0f.png) http://s017.radikal.ru/i412/1211/29/424583443690t.jpg (http://s017.radikal.ru/i412/1211/29/424583443690.png)
nevcairiel
19th November 2012, 15:50
Does that work in combination with external audio files?
v0lt
19th November 2012, 17:07
Does that work in combination with external audio files?
Yes, it works.
LigH
20th November 2012, 08:00
@ manolito:
It is the last active process of MPC-HC which already closed the window, but remains in memory until the INI is written. This delays the next MPC-HC process from appearing and playing the video until the previous one finally quit. You will notice that probably only when you let a task manager run in parallel and watch the process list. Writing INI files is rather inefficient, it feels as if the file is re-parsed for each section being added or changed. At least that was the case when I had this option enabled, that was certainly years ago. Could be that MPC-HC changed the code to create the INI (e.g. buffered writing a simple text file, instead of using Windows' INIFile functions).
Snowknight26
20th November 2012, 14:55
At least that was the case when I had this option enabled, that was certainly years ago.
MPC-HC's INI writing is still terribly inefficient. If anything was changed it was negligible.
madshi
21st November 2012, 16:22
Just to make sure it's not overlooked: Here's a patch to make custom shaders work with the latest madVR build:
https://sourceforge.net/apps/trac/mpc-hc/ticket/2739
vBm
21st November 2012, 23:05
Just to inform everyone else, being that madshi already knows xD.
Patch has landed at 983e8d4bbb8401c9e265465788481e5d509d15f6 (https://github.com/mpc-hc/mpc-hc/commit/983e8d4bbb8401c9e265465788481e5d509d15f6).
Wait another ~90 mins to get new nightly with that patch.
Aleksoid1978
22nd November 2012, 05:25
2 latest ffmpeg update broken VC1-I DXVA decode and MPEG2 with second field DXVA decode :)
madshi
22nd November 2012, 08:20
Just to inform everyone else, being that madshi already knows xD.
Patch has landed at 983e8d4bbb8401c9e265465788481e5d509d15f6 (https://github.com/mpc-hc/mpc-hc/commit/983e8d4bbb8401c9e265465788481e5d509d15f6).
Wait another ~90 mins to get new nightly with that patch.
Thanks... :)
Armada
22nd November 2012, 13:17
2 latest ffmpeg update broken VC1-I DXVA decode and MPEG2 with second field DXVA decode :)
I've had no problem with VC1-I DXVA or MPEG2 bottom-field first DXVA with the latest nightly. Could you upload samples of where it goes wrong so we can reproduce it?
vBm
22nd November 2012, 13:23
No problems for VC1-I DXVA here either.
Aleksoid1978
22nd November 2012, 13:54
Here - http://www.mediafire.com/?f74o6i90f9zap
v0lt
24th November 2012, 08:40
MPC-HC v1.6.5.6244 (http://www.mediafire.com/?xfgh33iws56bh)
AudioSwitcher: can control the MPEGSplitter, LAV Splitter and others.
Armada
24th November 2012, 11:15
Here - http://www.mediafire.com/?f74o6i90f9zap
Thank you for the samples, they indeed have problems. It's a regression from version 1.6.4.6052 which is the only stable version where these samples work, though FirstField.mpg seems to have problems in all versions.
Aleksoid1978
24th November 2012, 13:13
Thank you for the samples, they indeed have problems. It's a regression from version 1.6.4.6052 which is the only stable version where these samples work, though FirstField.mpg seems to have problems in all versions.
FirstField.mpg - work fine after i made support DXVA MPEG2 decoding mpeg2 stream like this.
mindbomb
24th November 2012, 14:59
Hey, I was wondering if there was anything I could do about the size of image based subtitles with the subtitle renderer in mpc hc?
clsid
24th November 2012, 17:16
@v0lt
Bug:
Get a file with multiple embedded audio streams. Put an audio file with same name in the same folder. MPC-HC will then load that audio file as a dub. Play>Audio will correctly show all embedded plus the external audio track. The bug is that Navigate>AudioLanguage only shows the external audio track.
Feature request:
Play>Audio should show all embedded audio tracks even when the internal stream switcher is disabled.
Listing the external one (if any) is not needed in this case, since that one can't be deselected anyway with stream switcher disabled.
Feature request:
Play>Subtitles should show both external and embedded subtitle tracks. (since most people don't know about the options in the Navigate menu)
v0lt
24th November 2012, 20:20
@clsid
Bug:
Get a file with multiple embedded audio streams. Put an audio file with same name in the same folder. MPC-HC will then load that audio file as a dub. Play>Audio will correctly show all embedded plus the external audio track. The bug is that Navigate>AudioLanguage only shows the external audio track.
I think we should leave only one choice of tracks. Something needs to be removed.
Feature request:
Play>Audio should show all embedded audio tracks even when the internal stream switcher is disabled.
Listing the external one (if any) is not needed in this case, since that one can't be deselected anyway with stream switcher disabled.
Audio Switcher need to switch. Why do we need a list where not select anything? I think the audio switch must be enabled at all times.
kasper93
24th November 2012, 20:43
Yeah, I would like to see that "fixed" too :) Here is the ticket https://sourceforge.net/apps/trac/mpc-hc/ticket/1394 and here https://sourceforge.net/apps/trac/mpc-hc/changeset/4235 is reverted Aleksoid's attempt to improve that. There were problem with external track when using LAV splitter IIRC.
Bug:
Get a file with multiple embedded audio streams. Put an audio file with same name in the same folder. MPC-HC will then load that audio file as a dub. Play>Audio will correctly show all embedded plus the external audio track. The bug is that Navigate>AudioLanguage only shows the external audio track.
I guess you test mkv file. MKV splitter(internal) add everything audio/subtitles to play menu (or maybe only subtitles...). And external track are also there. For any other splitter internal track are added to navigate menu, and only current track is shown in play menu and all external track are also in play menu.
We should leave one track selection dialog. For example:
embedded streams
/separator/
external streams (if any)
Of course separate menus for audio and subtitles.
clsid
24th November 2012, 21:47
I think we should leave only one choice of tracks. Something needs to be removed.
Audio Switcher need to switch. Why do we need a list where not select anything? I think the audio switch must be enabled at all times.
Yes, one place would be enough.
The audio switcher is not needed when using LAV or Haali splitter.
kasper93
24th November 2012, 22:02
The audio switcher is not needed when using LAV or Haali splitter.
It is needed for external tracks...
clsid
24th November 2012, 22:24
Yes, but not for embedded tracks. My reply was to v0lt who claimed it was always needed.
v0lt
24th November 2012, 23:00
I think the audio switcher must be enabled at all times. Why disable it?
If there is no sound processing (normalize, boost, ...), audio switcher only copies the data.
clsid
24th November 2012, 23:13
People may choose to disable it because they don't need it, and avoid that data copy.
The point is that Play>Audio should also show the tracks from IAMStreamSelect when the audio switcher is disabled. That functionality does not depend on the switcher, so it should be irrelevant whether it is enabled or not.
betaking
25th November 2012, 06:55
S.Chinese update
http://www.mediafire.com/?w8pu9xtalt2ezk9
73ChargerFan
25th November 2012, 09:41
On my machine (WinXP SP3) the MPC-HC INI file has a size of 32 KB.
MPC-HC's ini files are wacko oversized - they should be 10% that size.
I wouldn't call 64kB ( in my case) file huge, and I woudln't call a text file complex either :P
Is this a some scary power of two implementation?
madshi
25th November 2012, 12:04
@devs:
Could you please visit this thread (discussion about custom pixel shader "specs") and post your opinion:
http://forum.doom9.org/showthread.php?t=166548
Thanks!
hayan
25th November 2012, 14:54
play video file, Display Stats(Ctrl+J), plays next video file (PgDn or drag file), no response in 10 sec.
HD video file (High probability)
SD video file (Low probability)
Affect Version: Rev 48xx → 4902 (1.6.2 stable) → 5190 (lastest)
MPC-HC + 1080P + next video file
http://thumbsnap.com/i/tDLenmjS.pngProcess Monitor
MPC-HC + 1080P + Ctrl+J + next video file
http://thumbsnap.com/i/i2XNAXdQ.pngProcess Monitor
tasi
25th November 2012, 15:21
hello
I have the following problem maybe bug
when I play a avi file with mp3 audio,
it shuttering.
After testing I found that the problem is
when audio is mp3 with constant bitrate
and sample rate different of 48000.
Also when I disable all filters from player leaving splitters
MPC-HC try to play audio with default MP3
codec of windows although I have LAV filters
enable, and then it freeze in first frame,
but player doesn't crash, you can close it.
with all filters disabling including splitters
play normally with LAV filters
Aleksoid1978
26th November 2012, 02:41
hello
I have the following problem maybe bug
when I play a avi file with mp3 audio,
it shuttering.
After testing I found that the problem is
when audio is mp3 with constant bitrate
and sample rate different of 48000.
Also when I disable all filters from player leaving splitters
MPC-HC try to play audio with default MP3
codec of windows although I have LAV filters
enable, and then it freeze in first frame,
but player doesn't crash, you can close it.
with all filters disabling including splitters
play normally with LAV filters
Upload a sample of .avi like this for test.
Pomegranate
26th November 2012, 16:02
Hi, I have a simple cosmetic request.
When using LAV Video Decoder, is it possible to have the status bar show "Playing [CUVID]" or "Playing [QuickSync]" if either those hardware acceleration methods is being used by the LAV video decoder? It already shows DXVA, even when using external filters, Like Cyberlink's video decoder, so maybe this can be done?
tasi
26th November 2012, 17:59
Upload a sample of .avi like this for test.
here is a sample
http://www.mediafire.com/?9etgci76v0mf3v5
i don't know if is good.
with avi splitter you hear the shutter.
without play with lav splitter and has no problem.
in the sample with avi splitter and all decoder filters of mpchc disabled doesn't play audio.
in "bug" file freeze in 0:00 but not crash.
after search the file i found that audio is actually mp2 audio file but somehow in avi appears as mp3,
so i produce this sample.
So the bug is in the avi file, its not a normal file.
v0lt
26th November 2012, 19:56
here is a sample
http://www.mediafire.com/?9etgci76v0mf3v5
i don't know if is good.
MPC AVI Splitter - bad sound
AVI Splitter (system) - bad sound
VirtualDub - no sound
LAV Splitter - no problem (wtf?)
1. Inside MP2 audio marked as MP3.
2. AVI does not support MP2 audio.
File is broken.
LAV Splitter is broken too. :)
nevcairiel
26th November 2012, 20:00
Playing a file properly is "broken" now? :p
filler56789
26th November 2012, 20:54
1. Inside MP2 audio marked as MP3.
Surely that's a borked .AVI.
2. AVI does not support MP2 audio.
Don't ever let Alexander Noe hear that. :sly:
BTW, I can even store RealAudio ATRAC3 :devil: in AVI @48kHz. :D
LigH
27th November 2012, 08:36
Oh yes, AVI does support MP2. Technically. Easily. AVI likes audio streams with a constant frame size.
There are just so few ACM codecs or DS decoders recognizing and supporting the 2CC 0x0050 for MPEG1 Audio Layer 1 and 2 (Layer 3 has 0x0055). I remember there were commercial MP1/MP2 ACM codecs by QDesign; they have probably no use today.
Sony ATRAC3 has 2CC 0x0270; its ACM codec (with rather low quality) has been traveling through the web as well...
filler56789
27th November 2012, 16:25
Correct. However no one needs ACM for playing MP2 or ATRAC3 stored in AVI, right?
Besides, when I said "RealAudio ATRAC3", I didn't mean that low-quality ACM encoder, which cannot go above 132kbps, I was talking about RealProducer 8, which can use up to 352kbps. And even though the encoder doesn't support other sampling frequencies than 44.1kHz, one may apply a couple of workarounds in order to get proper playback @48kHz.
Now, going back to the topic, ... :)
dansrfe
29th November 2012, 05:01
Bug report:
When entering: 03:08:43.176 into the "Go To..." window it goes to: 00:08:47.159 instead. Also when dragging window to different screen the subtitles become stretched until I resize a little bit to fix the aspect ratio of the subtitles.
Thanks.
Lebowsky
29th November 2012, 19:27
Bug report:
in the last official build, when a video is deoced using DXVA and the Overlay Mixer (I'm on XP), the little [DXVA] text does not appear in the status bar, although DXVA is used (confirmed by looking under Play->Filters->MPC Video Decoder). It appears in the status bar when using a VMR renderer.
betaking
30th November 2012, 07:20
S.Chinese update
http://www.mediafire.com/?c0cwd1u8xlh77aa
vBm
1st December 2012, 08:12
S.Chinese update
http://www.mediafire.com/?c0cwd1u8xlh77aa
Thanks. Landed at 2fcb2bbac7 (https://github.com/mpc-hc/mpc-hc/commit/2fcb2bbac74b788cf9902b5ec0e7766fd5ad39ba)
v0lt
1st December 2012, 12:05
Audio switch has a serious bug. It loses part of the data, if data is large. It crash on large data if processing is enabled.
Aleksoid1978
1st December 2012, 12:57
Audio switch has a serious bug. It loses part of the data, if data is large. It crash on large data if processing is enabled.
Fix this :)
betaking
1st December 2012, 13:47
S.Chinese update
http://www.mediafire.com/?l39f79wuy625xmv
v0lt
1st December 2012, 15:28
@Aleksoid1978
Fixed in 6272. Look here (https://github.com/mpc-hc/mpc-hc/commit/eba3aa1951b5fa11e951f30116b6ec8cc6c6ed63).
betaking
2nd December 2012, 07:24
a2998fe81e Updated Traditional Chinese translation. :p
Should be Updated Simplified Chinese translation. :D
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.