View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
Aleksoid1978
18th January 2012, 00:15
There's a bug in some of the latest versions, for some videos the FPS are more than doubled, e.g. with Theora Big Buck Bunny.
Theora playback fix;
CruNcher
18th January 2012, 02:52
they're a lot of different decoding problems with Intel SB and the DXVA implementation for @ least 2 of the 3 major BD codecs Mpeg-2 as well H.264 didn't test VC-1 enough yet :(
Mpeg-2 Progressive seems to work fine though Mpeg-2 Interlaced shows major distortions (stretched wrong resolution decoding results some frames appear ok but most are distorted and over half of the render area is gray) and H.264 even Progressive streams show very crazy green frames most of the time all frames are green actually, though seems stream specific some streams are quite ok and show only sporadically green frames or blocks :(
Argh now it gets more complex with the Mpeg-2 issue it's stream specific also :(
Fails:
Video
ID : 543 (0x21F)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Codec ID : 2
Duration : 5mn 23s
Bit rate mode : Variable
Bit rate : 12.8 Mbps
Maximum bit rate : 18.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.205
Stream size : 492 MiB (92%)
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Works:
Video
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Codec ID : 2
Duration : 5mn 35s
Bit rate : 18.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.290
Stream size : 719 MiB (93%)
Both VLD decoded on the first analyze look no big difference @ all :(
here is a sample of the failing stream (made sure its also failing, ignore the name was something else) http://www.mediafire.com/?8u0sn24cfggx6dq
Mainconcept SDK9 DXVA also fails Potplayer, Arcsoft, Cyberlink DXVA seem to be DXVA implementations that can handle this stream on Intel SB with the DXVA VLD expected 2% Overhead (includes renderer)
Hera
18th January 2012, 03:47
Opened a directory full of music with MPC.
Started playing a flash game in Opera.
Every time MPC switched to next music file, Opera became unselected.
???
aufkrawall
18th January 2012, 14:23
Theora playback fix;
I can confirm it's fixed with build 3975. :)
What about 5.1 Vorbis audio?
aufkrawall
18th January 2012, 14:45
The custom channel mapping also seems to be bugged.
I can't downmix 5.1 channels to stereo properly (some channels simply seem to be missing) and it doesn't save the setting of the number of input channels.
sneaker_ger
18th January 2012, 16:56
The custom channel mapping also seems to be bugged.
I can't downmix 5.1 channels to stereo properly (some channels simply seem to be missing) and it doesn't save the setting of the number of input channels.
You're probably doing it wrong. Post a screenshot of your settings and I'll tell you what it is.
Or better yet set the decoder to downmix, if it has an option for that.
Aleksoid1978
19th January 2012, 01:12
What about 5.1 Vorbis audio?
Fix at rev. 3876;
betaking
19th January 2012, 13:55
compile last svn 3978 standalone MpaDecFilter.ax failed !
but compile mpc-hc no problem!
正在创建库 C:\mpc-hc\bin10\Filters_x86\MpaDecFilter.lib 和对象 C:\mpc-hc\bin10\Filters_x86\MpaDecFilter.exp
1>libavcodec.lib(log.o) : warning LNK4217: 本地定义的符号 __iob 在函数 _av_log_default_callback 中导入
1>libavcodec.lib(eval.o) : warning LNK4217: 本地定义的符号 ___mb_cur_max 在函数 _av_expr_parse 中导入
1>libmingwex.a(wcrtomb.o) : warning LNK4049: 已导入本地定义的符号 ___mb_cur_max
1>libmingwex.a(mbrtowc.o) : warning LNK4049: 已导入本地定义的符号 ___mb_cur_max
1>libavcodec.lib(eval.o) : warning LNK4217: 本地定义的符号 __pctype 在函数 _av_expr_parse 中导入
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _VerQueryValueW@16,该符号在函数 "unsigned __int64 __cdecl GetFileVersion(wchar_t const *)" (?GetFileVersion@@YA_KPB_W@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _GetFileVersionInfoW@16,该符号在函数 "unsigned __int64 __cdecl GetFileVersion(wchar_t const *)" (?GetFileVersion@@YA_KPB_W@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _GetFileVersionInfoSizeW@8,该符号在函数 "unsigned __int64 __cdecl GetFileVersion(wchar_t const *)" (?GetFileVersion@@YA_KPB_W@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileExit@0,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileRelease@4,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIStreamInfoW@12,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileGetStream@16,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileInfoW@12,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileOpenW@16,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(DSUtil.obj) : error LNK2019: 无法解析的外部符号 _AVIFileInit@0,该符号在函数 "bool __cdecl GetKeyFrames(class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >,class CUIntArray &)" (?GetKeyFrames@@YA_NV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@AAVCUIntArray@@@Z) 中被引用
1>DSUtil.lib(vd.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl VDFastMemcpyAutodetect(void)" (?VDFastMemcpyAutodetect@@YAXXZ),该符号在函数 "void __cdecl VDCPUTest(void)" (?VDCPUTest@@YAXXZ) 中被引用
1>DSUtil.lib(vd.obj) : error LNK2019: 无法解析的外部符号 "long __cdecl CPUEnableExtensions(long)" (?CPUEnableExtensions@@YAJJ@Z),该符号在函数 "void __cdecl VDCPUTest(void)" (?VDCPUTest@@YAXXZ) 中被引用
1>DSUtil.lib(vd.obj) : error LNK2019: 无法解析的外部符号 "long __cdecl CPUCheckForExtensions(void)" (?CPUCheckForExtensions@@YAJXZ),该符号在函数 "void __cdecl VDCPUTest(void)" (?VDCPUTest@@YAXXZ) 中被引用
1>DSUtil.lib(vd.obj) : error LNK2019: 无法解析的外部符号 "long __cdecl CPUGetEnabledExtensions(void)" (?CPUGetEnabledExtensions@@YAJXZ),该符号在函数 "public: __thiscall CCpuID::CCpuID(void)" (??0CCpuID@@QAE@XZ) 中被引用
1>DSUtil.lib(vd.obj) : error LNK2019: 无法解析的外部符号 "bool __cdecl VDPixmapBlt(struct VDPixmap const &,struct VDPixmap const &)" (?VDPixmapBlt@@YA_NABUVDPixmap@@0@Z),该符号在函数 "bool __cdecl BitBltFromI420ToI420(int,int,unsigned char *,unsigned char *,unsigned char *,int,unsigned char *,unsigned char *,unsigned char *,int)" (?BitBltFromI420ToI420@@YA_NHHPAE00H000H@Z) 中被引用
1>C:\mpc-hc\bin10\Filters_x86\MpaDecFilter.ax : fatal error LNK1120: 15 个无法解析的外部命令
1>已完成生成项目“C:\mpc-hc\src\filters\transform\MpaDecFilter\MpaDecFilter.vcxproj”(build 个目标)的操作 - 失败。
生成失败。
已用时间 00:00:05.66
aufkrawall
19th January 2012, 14:24
You're probably doing it wrong. Post a screenshot of your settings and I'll tell you what it is.
Or better yet set the decoder to downmix, if it has an option for that.
It seems to be an issue of LAV Audio Decoder, not of MPC HC or any of its components itself.
Fix at rev. 3876;
Great, thanks! :)
nevcairiel
19th January 2012, 14:57
It seems to be an issue of LAV Audio Decoder, not of MPC HC or any of its components itself.
LAV Audio doesn't do any downmixing, its rather unlikely to be the cause. :p
aufkrawall
19th January 2012, 16:07
LAV Audio doesn't do any downmixing, its rather unlikely to be the cause. :p
Does LAV support the custom channel mapping of MPC HC?
When I use the internal audio decoder I can set it up as the following:
http://www.ld-host.de/uploads/thumbnails/629b800e00d3efbda32f5b3c6aa3202d.png (http://www.ld-host.de/show/629b800e00d3efbda32f5b3c6aa3202d.png)
Result is proper stereo.
When I add LAV Audio Decoder and play a 6 channel file it always looks like this and I'm not able to change it successful:
http://www.ld-host.de/uploads/thumbnails/75e8845a79d7471f74490516a2989f89.png (http://www.ld-host.de/show/75e8845a79d7471f74490516a2989f89.png)
sneaker_ger
19th January 2012, 16:18
It has to look something like this:
http://www.abload.de/img/audio_switchers2j1k.png
(LFE deactivated)
As I told you: you did it wrong.
Though this downmix is rather "rough", as this feature is more for channel mapping, not downmixing. Better do this in a decoder.
aufkrawall
19th January 2012, 17:49
It has to look something like this:
http://www.abload.de/img/audio_switchers2j1k.png
(LFE deactivated)
Ok, works.
Though this downmix is rather "rough", as this feature is more for channel mapping, not downmixing. Better do this in a decoder.
Which decoder do you recommend for standard purposes?
fastplayer
19th January 2012, 18:11
Ok, works.
This works better as it maps left channels specifically to the left speaker output, same for right:
http://i39.tinypic.com/358v0ux.png
The LFE is optional.
aufkrawall
19th January 2012, 18:43
This works better as it maps left channels specifically to the left speaker output, same for right.
Sounds reasonable to me. :)
Do decoders anything different when downmixing?
fastplayer
19th January 2012, 18:55
Do decoders anything different when downmixing?
I can only guess but there might be some tweaks to the volume levels, especially for LFE.
aufkrawall
19th January 2012, 19:03
I can only guess but there might be some tweaks to the volume levels, especially for LFE.
If nevcairiel is reading:
Is there some chance that there will be downmixing support in future LAV Audio Decoder versions? :)
I think I'll stick to ffdshow with downmixing for audio.
Edit: Or just use the internal audio decoder that has downmixing too.
fastplayer
19th January 2012, 19:06
If nevcairiel is reading:
Is there some chance that there will be downmixing support in future LAV Audio Decoder versions? :)
http://code.google.com/p/lavfilters/issues/detail?id=11
aufkrawall
19th January 2012, 19:18
http://code.google.com/p/lavfilters/issues/detail?id=11
So, if I got it right, it may come in future?
Until that ffmpeg implementation of MPC HC seems to be a good solution.
sneaker_ger
20th January 2012, 00:05
This works better as it maps left channels specifically to the left speaker output, same for right:
Indeed, my solution was dirtier than possible. Yours is better.
aufkrawall
20th January 2012, 18:32
Fix at rev. 3876;
I can confirm it's fixed with build 3983.
Thanks for the new build. :)
boyumeow
21st January 2012, 14:57
Hi,
http://i.imgur.com/dss30l.jpg
From my picture, the subtitle did not show up when [Default style] is not tick, is this a bug or just limitation in mpc-hc.
Thanks.
v0lt
22nd January 2012, 09:17
@boyumeow
What kind of subtitles?
Mercury_22
22nd January 2012, 12:46
@Alexins Can you please share your patch for your "BE Mod" ?
Or at least please share ( / add to svn ) your fix for the "Window Close" bug for the x64 (http://sourceforge.net/apps/trac/mpc-hc/ticket/1938) version of MPC-HC from your x64 "Media Player Classic HomeCinema - BE Mod" :thanks:
P.S. I thought this is an open source project and people should share at least their bug fixes for it
boyumeow
22nd January 2012, 15:26
@v0lt,
It is an Advanced ass subtitle, extension .ass.
Thanks.
v0lt
22nd January 2012, 16:32
From my picture, the subtitle did not show up when [Default style] is not tick
I look at the picture and I did not understand what you mean.
Default style does not work?
VipZ
22nd January 2012, 16:48
Editing InternalFiltersConfig.h to remove internal filters is broken in latest SVN, I get errors on the audio side of it. I can build if I set #define INTERNAL_DECODER_VORBIS to 1 with the rest being 0.
v0lt
22nd January 2012, 18:41
Editing InternalFiltersConfig.h to remove internal filters is broken in latest SVN, I get errors on the audio side of it.
Fixed.
VipZ
22nd January 2012, 19:07
Fixed.
Thanks :)
NiFa
23rd January 2012, 01:10
Hey.
I have been wondering what causes laggy videoplayback when playing video file at first time? When I close it and open it again it plays perfectly? This happens every video file I do have in my computer.
I'm using, MPC-HC (with internal codecs), LAVfilters, FFdshow (audio), autofrequency and reclock.
Aleksoid1978
23rd January 2012, 02:07
Hey.
I have been wondering what causes laggy videoplayback when playing video file at first time? When I close it and open it again it plays perfectly? This happens every video file I do have in my computer.
I'm using, MPC-HC (with internal codecs), LAVfilters, FFdshow (audio), autofrequency and reclock.
Test without Reclock and autofrequency
NiFa
23rd January 2012, 03:20
No difference with or without reclock, but without autofrequency it works little better, lag is more random, sometimes it works at first start and sometimes not, it doesn't happen with any specific file.
boyumeow
23rd January 2012, 04:39
I look at the picture and I did not understand what you mean.
Default style does not work?
Sorry for not being specific enough, from my picture if [Default style] is tick/enable, the subtitle is not showing for that sentence ( {\pos(940,705)}My, my, you're such\Nan unpredictable character. )
If [Default style] is untick/disable, then it showing.
The bug (maybe) is something that is about positioning, I believe. Btw, my video is 1280x720.
Thanks for looking into it.
Aleksoid1978
23rd January 2012, 04:48
Sorry for not being specific enough, from my picture if [Default style] is tick/enable, the subtitle is not showing for that sentence ( {\pos(940,705)}My, my, you're such\Nan unpredictable character. )
If [Default style] is untick/disable, then it showing.
The bug (maybe) is something that is about positioning, I believe. Btw, my video is 1280x720.
Thanks for looking into it.
Upload a subtitle file and say - at what time to see.
boyumeow
23rd January 2012, 05:20
Pls found the attach file requested, I have edit it so U can test as long as it would show to U :p.
http://www.mediafire.com/download.php?noum92ivea15jda
And thanks.
Snowknight26
23rd January 2012, 05:57
The internal H.264 decoder either ignores the full range flag or incorrectly does a TV->PC conversion for this video (http://stfcc.org/misc/vids/vids/BF3%20AS%20VAL%20glitch.1280x720.mp4), resulting in blacks being crushed.
Aleksoid1978
23rd January 2012, 10:16
Pls found the attach file requested, I have edit it so U can test as long as it would show to U :p.
http://www.mediafire.com/download.php?noum92ivea15jda
And thanks.
Try - http://aleksoid.tosei.ru/Test/mpc-hc.ass_test.7z
and test on other subtitle with and without 'Default style' - maybe i broken something else :)
Skibicki
23rd January 2012, 20:08
I noticed fast forwarding slightly improved with external filters in this order.
Lav Splitter
Lav Video Decoder
DirectVobSub (auto-loading version)
Enhanced Video Renderer
Lav Audio Decoder
Previously I did not add Enhanced Video Renderer and DirectVobSub was last. Disabling all 'Advanced Video Quality' settings in AMD Catalyst/Vision Engine Control Center also helps.
robpdotcom
23rd January 2012, 21:58
Where can I download this skin? I really like the black/blue appearance.
http://i.imgur.com/dss30l.jpg
ryrynz
23rd January 2012, 22:37
That's the BE mod with it's button color changed and yes everyone seems to prefer the look of MPC with that mod (c'mon guys commit it already)
http://www.xvidvideo.ru/media-player-classic-home-cinema-x86-x64
You can grab BE mods above (shown on the right hand side)
To configure the color go to tweaks in the options, there you can change button and outline color.
Blitkzer, your builds unfortunately have this feature broken (tried build 3996)
robpdotcom
23rd January 2012, 22:58
:thanks: I would have never found that.
boyumeow
24th January 2012, 15:36
@Aleksoid1978,
Ok, I believe its consider fixed, except...
http://i.imgur.com/59qhMl.png
http://i.imgur.com/79L93l.png
From the two pictures above, the positioning of the subtitle is different too, top picture is [Default style] enabled and subtitle position at center, while bottom picture is [Default style] disabled and position shifted to right side as what the subtitle file has requested.
http://i.imgur.com/PBrpsl.png
Pls clarify that it was actually due to the [Screen Alignment & Margins], as I do not think its a bug.
Thanks.
*Thanks to v0lt too.
v0lt
24th January 2012, 15:58
@boyumeow
That's right. The default style is not only the font type. This is also the size, position, color...
CruNcher
24th January 2012, 16:57
v0lt keep on implementing all kinds of Apple framework used fourccs into the MP4/MOV Splitter, their is much better Decoder support now for them ;)
kasper93
26th January 2012, 01:44
In build batch file should not be 'GOTO END' in lines 115 and 130, because it is executed twice, one end trigger in line 50 is enough :)
Mercury_22
26th January 2012, 10:53
TrueHD channels are wrong mapped : rear and side channels are switched
v0lt
26th January 2012, 14:23
TrueHD channels are wrong mapped : rear and side channels are switched
How do you test it?
Mercury_22
26th January 2012, 17:36
How do you test it?
Using this TEST_TRUEHD_7.1 (https://rapidshare.com/files/807472142/TRUEHD_7.1.m2ts) file
sillKotscha
26th January 2012, 18:51
This is a very old format, now it is not used.
Use ffdshow or LAV Video.
would it be possible to play the file without installing additional software (currently LAV is installed "on top")?
Changes (3999-4006):
...
Update libav, add Indeo 3/4/5 support;
...
thx !
aufkrawall
26th January 2012, 19:24
It now plays also x264 RGB. :)
But it doesn't look right yet, neither does x264 I444 10bit.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.