View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
clsid
27th August 2007, 21:02
Can anybody with SVN access please upload a little patch for me? I've done the changes to Casimir's SVN, but I don't know SVN well enough to "upload" something.
http://madshi.net/dtsac3source.zip
Contained is a new version of DTSAC3Source.cpp (together with a new compiled dtsac3source.ax). There are 3 changes in the source code:
(1) m_AvgTimePerFrame calculation was incorrect for AC3.
(2) m_AvgTimePerFrame calculation was incorrect for DTS.
(3) Fix for problems with audio sync with Blu-Ray/HD DVD DTS files.
The problem with (3) is this: Usually 1536kbit/s DTS tracks have 2013 bytes per frame. But DTS tracks taken from HD DVD and Blu-Ray strangely only have 2012 bytes per frame. DTSAC3Source handled this mathematically correctly. But audio sync slowly drifted away from the video. We have to mathematically handle the 2012 frames as if they were 2013 bytes long to keep audio sync while seeking.
I would like to include this patch in my patched MPC build. I have looked at the code changes (compared to guliverkli SVN). Are you sure your patch doesn't break parsing of regular AC3/DTS stuff? Because framesize and bytesperframe values are much bigger now (multiplied by magic numbers).
madshi
27th August 2007, 21:15
I would like to include this patch in my patched MPC build. I have looked at the code changes (compared to guliverkli SVN). Are you sure your patch doesn't break parsing of regular AC3/DTS stuff? Because framesize and bytesperframe values are much bigger now (multiplied by magic numbers).
Some of the changes you're talking about were originally done by orbitlee. The main change I've done is just a special handling for 2012 bytes DTS frames. I'm not sure where the "magic" multipliers are coming from. Maybe we should contact orbitlee and ask him about that. From the source code comments it seems that he did that to satisfy the Sonic audio decoder. Personally, I'm not sure if I like such strange multiplicators just to satisfy one decoder (which isn't even a good one). But I'm a bit afraid to change anything because right now the filter works just perfect for me. I've tested it with AC3, E-AC3, normal DTS files and DTS core streams extracted from DTS-HD.
P.S: Maybe you could try just taking over the 2012 special handling and the E-AC3 parsing and then check if everything works for you. Doing it that way shouldn't break regular stuff.
madshi
29th August 2007, 11:35
I've one little feature wish:
If I load an external audio file (e.g. with the "/dub" command line parameter) and if the external audio file name has "DELAY 100ms" or "DELAY -50ms" or something like that in the name, it would be great if the MPC audio switcher could automatically activate this delay taken from the file name of the external audio file.
Why is this important? Because delaycut doesn't work for E-AC3, TrueHD and DTS-HD tracks. Currently it's not easily possible to modify such tracks to realize a specific delay. Because of that it's important that there's a way to tell MPC to automatically realize a specific audio delay for a specific audio track.
Thanks! :)
Ger
8th September 2007, 14:05
Found a problem with "Remember file position" and some live WM radio streams.
If "Remember file position" is checked, the second time I try to start this (http://utv-talksport.wm.llnwd.net/utv_talksport?MSWMExt=.asf) live stream it doesn't play.
Setsunaaa
9th September 2007, 20:51
Thx for your mpc version Casimir666, I made the switch just a month ago from the original latest gabest version, and I like it a lot.
A thing I once had: I always use the "save to .ini, keep registry clean", + remembering file positions (very nice option).
But the .ini got somewhat mixed up, wrong key binding, wild behaviour at using normal keys. Even when I corrected the bindings it did not work, I restored it from my backup, and was yet unable to reproduce the problem.
One feature request: If I have mutiple files in the playlist, all of the same format (i.e. one Anime series), I have to change the subtitle and language every time the next video gets played, it also resets the zoom I set to 100% (except when fullscreen).
So if the video size of the next file is the same it should keep the set zoom. And if the video file that comes next has the same audio-channels and subtitles and video size it should take the selected subtitle / audio channel and zoom over to the next in the playlist.
Second request: could the number "file to remember the last position" be made configurable, like from 0 to 9?
Set
boyumeow
10th September 2007, 09:22
@Setsunaaa
About the zooming part, maybe U can try set it to auto-fit or un-tick it. Option-->Playback=>Output
Setsunaaa
14th September 2007, 20:43
@Setsunaaa
About the zooming part, maybe U can try set it to auto-fit or un-tick it. Option-->Playback=>Output
Dumb me, I should have found it on my own!
It does keep the size I want over videos in the playlist..
BUT: mplayer starts all videos much too small then since it starts with it's default size!
It should have an option to set the zoom to 100% at start of the player, as I usually want it for videos when I start mplayer. But it should not reset to 100% upon advancing in the playlist. So I am back at the "Auto-zoom 100%" since it is less annoying that way.
A trick I also used: click and move the window while the player advances to the next video, then it keeps the set size.
But the subtitle/audio still have to me set manually after advancing.
Kado
14th September 2007, 21:20
@Setsunaaa
if you use haali splitter you can configure how the subs and audio tracks are loaded. check the splitter settings if you use it.
Casimir666
14th September 2007, 23:31
New version is now available on SourceForge, with thoses changes :
v1.0.10.0 - 15.Sep 2007
======================
CHANGED: Latest Clsid Patches (Bento4 0.9.3, faad2 2.6b, dtsdec 0.0.2, libmad 0.15.1b, zlib 1.2.3, mpeg decoder: progressive frames fix, mpeg decoder: dsutil interlaced fix v2)
CHANGED: libpng 1.2.20
NEW : Command Line Option "/d3dfs" to start MPC in D3D fullscreen mode
NEW : Logitech LCD support (e.g., G15 keyboard)
CHANGED: Remember File and DVD position works only when "Keep history" is active (preserve privacy issue)
CHANGED: Kick off Screen Saver from Power Options only while video is playing (Vista)
NEW : Build for x64 platforms (beta version, see limitations on my website)
NEW : Multilanguage support: english, french and german.
CHANGED: DirectX SDK updated to August 2007 (v35)
FIXED : Wrong Aspect Ratio with EVR-Custom (definitely i hope :-)
FIXED : Internal Mpeg2 Decoder was not working with ECR and ECR-Custom
FIXED : Audio async problems with Blu-Ray/HD DVD DTS files [wrong AvgTimePerFrame calculation for DTS and AC3 (madshi)]
FIXED : OSD was not working when D3DX9_... dll was not present (random pixels shown in top of video)
FIXED : Mouse now working in DVD menu with EVR-Custom (Vista)
FIXED : FLV Splitter when video does not start with keyframe
FIXED : Vulnerability CAL-20070912-1 in AVI Source Filter (arbitrary code execute with users privileges)
FIXED : Vulnerability in FLI internal source filter
JarrettH
14th September 2007, 23:46
what happened to your website casimir :cool:
Leak
14th September 2007, 23:53
what happened to your website casimir :cool:
Eh? It's where it always was and works fine for me - so what exactly do you mean? :confused:
np: Alva Noto + Ryuichi Sakamoto - Aurora (Insen)
lolent
15th September 2007, 00:18
thx Casimir666 for this new version :)
MatMaul
15th September 2007, 01:00
thanks !!!
bug report about the translation :
I can load a different language only if I launch MPC from is directory. If I double-click on a video it seems to do not detect the french resource.
When I use the french translation the submenu Subtitles (Soustitres) don't work at all, no problem in english.
JarrettH
15th September 2007, 01:30
I get a whole page of chinese characters when I open http://tibrium.neuf.fr/
foxyshadis
15th September 2007, 02:46
Check your browser's default character encoding.
Casimir, awesome. =D
raynor
15th September 2007, 02:50
@ casimir
Thank you for fixing the privacy issue I pointed out above.
Great work :)
Uh, and great other fixes and additions, too (amazing to be exact) ;)
JarrettH
15th September 2007, 07:49
thanks that fixed it foxy, which should i be using though? it was set to utf-16 when i checked :thanks:
Casimir666
15th September 2007, 08:49
I get a whole page of chinese characters when I open http://tibrium.neuf.fr/
:eek:
I have added an encoding meta tag, should not be chinese anymore now...
madshi
15th September 2007, 08:51
Thnx for the new version!
JarrettH
15th September 2007, 18:38
:eek:
I have added an encoding meta tag, should not be chinese anymore now...
LOL wonderful :p
Kado
15th September 2007, 22:46
Thanks for the updates casimir. One bug still remains... in the "remember file position", you are not able to replay a file that has reached it's end.
Steps to reproduce: enable the option, insert at least 2 files (like mp3) in the play list and let one of them play until it ends then plays the other one, while the second one is playing try to play the first one... basically it will resume from the end of the first file meaning it will just skip to the next one.
hope this helps
Also, if you enable "keep history" then "remember file position" then disable "keep history" "remember file position" will remain enabled and working and you cannot disable it until you enable "keep history" again.
Is MPC v6.4.9.1 legit or fake or custom made by someone? check here (http://softex.meganet.lt/news.php?readmore=3828).
Leak
15th September 2007, 23:17
Is MPC v6.4.9.1 legit or fake or custom made by someone? check here (http://softex.meganet.lt/news.php?readmore=3828).
Well, going by the "changelog" someone seems to just have relabeled clsid's build (or his changes, at least) as 6.4.9.1...
EDIT: Okay, so it was clsid himself - move along, nothing to see here... :D
np: Luke Vibert - Rotting Flesh Bags (Chicago, Detroit, Redruth)
Kado
15th September 2007, 23:25
Well, going by the "changelog" someone seems to just have relabeled clsid's build (or his changes, at least) as 6.4.9.1...
That has crossed my mind as well. anyway casimir's build is more "tuned"! :)
clsid
16th September 2007, 00:33
I incremented the version number in my latest build to make it more clear that it is newer than the latest version available at the Guliverkli website.
Rash
16th September 2007, 06:11
I am getting 404 on Casimir's page. Will look on sf.net directly.
Thank you very much Casimir! ;)
[EDIT] DAMN! EVR is working now! So now I can get 0-255 with DXVA enabled! Oh thank you, thank you, thank you Casimir! :D
Casimir666
16th September 2007, 07:52
I am getting 404 on Casimir's page. Will look on sf.net directly.
Thank you very much Casimir! ;)
[EDIT] DAMN! EVR is working now! So now I can get 0-255 with DXVA enabled! Oh thank you, thank you, thank you Casimir! :D
:confused: EVR is working?? I haven't made changes on it except using latest SDK...
CiNcH
16th September 2007, 12:58
DXVA 2.0 and EVR Custom at least still isn't.
cyberbeing
16th September 2007, 18:57
When PureVideo Decoder and EVR Custom Presenter is used DVD menu navigation seems to be broken and MPC-HC hangs on seeking.
Ger
16th September 2007, 21:03
Thanks for the updates casimir. One bug still remains... in the "remember file position", you are not able to replay a file that has reached it's end.
Steps to reproduce: enable the option, insert at least 2 files (like mp3) in the play list and let one of them play until it ends then plays the other one, while the second one is playing try to play the first one... basically it will resume from the end of the first file meaning it will just skip to the next one.
hope this helps
A somewhat similar problem i posted with this feature is also still there in v1.0.10.0:
Found a problem with "Remember file position" and some live WM radio streams.
If "Remember file position" is checked, the second time I try to start this (http://utv-talksport.wm.llnwd.net/utv_talksport?MSWMExt=.asf) live stream it doesn't play.
Can be reproduced by opening the URL in MPC and then trying to open the same URL again a second time. It will only play the first time and stall on the second and subsequent attempts.
Anyway, EVR custom is starting to look really good now with the latest fixes. Thanks again for your excellent work Casimir. :thanks:
Rash
16th September 2007, 22:28
:confused: EVR is working?? I haven't made changes on it except using latest SDK...
Yes, well... EVR Custom. :o I missed one word.
EVR normal creates grey bars for me, so I've completely banned it from my players, hehe. Have a look.
http://rash.apanela.com/images/lost_color.png
http://rash.apanela.com/images/wmp11/wmp_grey_back.jpg (black frame)
I can't say whether DXVA is working or not. It is selected but I don't get any confirmation/error messages. The picture quality is awesome anyway, so I'm good with it.
@Cyberbeing, I have PureVideo enabled on PowerDVD Decoder and I'm using EVR Custom and menus are OK. What decoder are you using?
cyberbeing
16th September 2007, 22:49
@Cyberbeing, I have PureVideo enabled on PowerDVD Decoder and I'm using EVR Custom and menus are OK. What decoder are you using?
I am using nVidia's PureVideo decoder (http://www.nvidia.com/object/dvd_decoder.html), not a program like PowerDVD that just uses Purevideo.
Rash
16th September 2007, 22:52
Oh, I see. Well, then, it might be an issue between NV PureVideo and EVR Custom.
Kado
17th September 2007, 09:51
In the powerdvd decoder (h.264) to see if dxva is working or not try to tune something like brightness after the video is playing, if you can you are not using dxva. that was my case in xp with a 6800gs. in vista i can't get dxva with vmr9 and evr.
CiNcH
17th September 2007, 16:42
In the powerdvd decoder (h.264) to see if dxva is working or not try to tune something like brightness after the video is playing,
Press CTRL (STRG for German readers) and together the 'CyberLink H.264/AVC Decoder' (Play -> Filters), the extended properties will show up. The profile tells you about hardware acceleration:
SW = pure software mode
MC = part of the decoding pipeline is sourced out to the GPU (e.g. PureVideo HD)
Bitstream = all decoding steps are performed on the GPU (e.g. PureVideo HD2)
Rash
17th September 2007, 16:44
Cinch, I am sorry, what is STRG?
CiNcH
17th September 2007, 16:46
CTRL key (Control which means 'Steuerung' -> STRG in German) on your keyboard.
iron2000
17th September 2007, 20:11
Is there anyway to get rid of the blue bar with green slider that appears on mouse over?
Kado
17th September 2007, 20:41
@CiNcH
thanks.
has someone got hardware acceleration for h.264 with latest mpc hd and cyberlink in vista with a nvidia graphics like a 6800gs?
Casimir666
17th September 2007, 20:56
@CiNch
Great shortcut! Will be helpfull ;)
SBeaver
18th September 2007, 00:35
x64 version can play dvd mpeg2 with ffdshow as decoder also, i tried it with video title set enabled in internal filters. ac3/dts passthrough with x64 ffdshow also works perfectly.
The only thing missing now is an ffdshow x64 build with eac3 decoding which hopefully isn't far away, and also a 64bit build of haali splitter and renderer.
:thanks:
delude101
18th September 2007, 05:56
@CiNcH
thanks.
has someone got hardware acceleration for h.264 with latest mpc hd and cyberlink in vista with a nvidia graphics like a 6800gs?
7900GTO here, using 162.22 with vista ultimate 32bit. Only SW profile shows up no matter what type of file i play. Using the h.264 decoder from Powerdvd 7.3 ultra.
Shakey_Jake33
18th September 2007, 08:01
7900GTO here, using 162.22 with vista ultimate 32bit. Only SW profile shows up no matter what type of file i play. Using the h.264 decoder from Powerdvd 7.3 ultra.
SW for me too, using Vista X64, Cyberlink H.264 codec from PowerDVD Ultra, and 7900 GTO GPU.
I always assumed it was doing it HW tbh.
delude101
18th September 2007, 08:41
MC Profile shows up when using EVR Mode (Standard). It does improves the playback of 1080i videos significantly, but 720p/1080p videos still the same. CPU usage around 15% lower (C2D@2.8Ghz)
The EVR mode is horrible though. It ALWAYS outputs in 16-235levels and there are ugly grey bars for wide screen instead of black ones.
Shakey_Jake33
18th September 2007, 10:42
MC Profile shows up when using EVR Mode (Standard). It does improves the playback of 1080i videos significantly, but 720p/1080p videos still the same. CPU usage around 15% lower (C2D@2.8Ghz)
The EVR mode is horrible though. It ALWAYS outputs in 16-235levels and there are ugly grey bars for wide screen instead of black ones.
I've read a few posts about the grey bars, but I've not had that problem yet.
CiNcH
18th September 2007, 11:54
For me it is 'Bitstream' with EVR Standard and 'SW' with EVR Custom, just as expected, at least what I expected...
SBeaver
18th September 2007, 13:30
I've read a few posts about the grey bars, but I've not had that problem yet.
I've had the grey bars on all computers I've tried EVR on, and both on Vista and XP x64 too.
I want to know your secret, do you have Nvidia or Ati videocard?
Kado
18th September 2007, 21:23
I get grey bars as well. how are you guys getting hardware acceleration with h264? filters, specs, players and file container etc please.
Casimir666
18th September 2007, 22:43
I've had the grey bars on all computers I've tried EVR on, and both on Vista and XP x64 too.
I want to know your secret, do you have Nvidia or Ati videocard?
For XP you can try to add thoses keys in registry :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{ GUID }\0000
VMRCCCSStatus 3 (dword)
VMRCCStatus 3 (dword)
For GUID, it depend of you machine and it's the GUID with the largest number of keys. Unfortunatly this trick didn't work with vista :(
CiNcH
18th September 2007, 22:50
1. Launch regedit and determine the current primary display card by looking in "HKey_Local_Machine\Hardware\DeviceMap\Video" and note the GUID (global unique identifier assigned by Windows), which is the long string in brackets { } at the end of the entry "\device\video0".
2. Look in "HKey_Local_Machine\SYSTEM\CurrentControlSet\Control\Video\{GUID}000" where {GUID} is the number derived from the previous step.
3. Open the "0000" directory and create a new DWORD called "VMRCCCSStatus" and give it a value of 3
delude101
19th September 2007, 01:03
I get grey bars as well. how are you guys getting hardware acceleration with h264? filters, specs, players and file container etc please.
MPCHC set to output in EVR Mode (standard, NOT custom presenter), Haali Media Splitter, Cyberlink H.264 Decoder. Try apple hd trailers, they all work when set to .hdmov
Just flashed my 7900gto to a gtx, no difference :P
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.