MPC-HC internal LAV
3 posters
Page 1 of 1
MPC-HC internal LAV
As far as I understand, the current versions of K-Lite no longer have LAV filters built into the MPC-HC. How to return them?
The fact is that hardware acceleration in MPC-HC for some reason only works in DXVA Copy Back mode. At the same time, in BSPlayer, hardware acceleration works in DXVA Native, which is faster than Copy Back. I want to be able to use both players. But since the MPC-HC no longer has its own built-in LAV decoders and it uses the system ones, it remains only to select the DXVA CB mode in the system LAVs. Thus BSPlayer will also use DXVA CB, which is not optimal.
I tried to copy the codecs to the LAVFilters64 player subfolder, but for some reason it does not pick them up.
Why was MPC-HC able to use hardware acceleration in DXVA Native before, but now it can't? Why did it need to be changed? Maybe the whole point is that this is an integrated iGPU of a laptop? But then why is BSPlayer able to use hardware acceleration in DXVA Native?
The fact is that hardware acceleration in MPC-HC for some reason only works in DXVA Copy Back mode. At the same time, in BSPlayer, hardware acceleration works in DXVA Native, which is faster than Copy Back. I want to be able to use both players. But since the MPC-HC no longer has its own built-in LAV decoders and it uses the system ones, it remains only to select the DXVA CB mode in the system LAVs. Thus BSPlayer will also use DXVA CB, which is not optimal.
I tried to copy the codecs to the LAVFilters64 player subfolder, but for some reason it does not pick them up.
Why was MPC-HC able to use hardware acceleration in DXVA Native before, but now it can't? Why did it need to be changed? Maybe the whole point is that this is an integrated iGPU of a laptop? But then why is BSPlayer able to use hardware acceleration in DXVA Native?
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
To use MPC-HC's internal LAV filters, tick all checkboxes in "transform filters" in MPC-HC settings.
pneumatic- Posts : 3
Join date : 2022-06-15
Re: MPC-HC internal LAV
Reinstalled K-Lite and internal LAV now works. Now I understand that built-in is not quite built-in. System ones are used, but with their own settings inside the player.
Checked with DXVA in MPC-HC. Hardware acceleration works in:
• DXVA Native if EVR (Custom Presenter) is selected
• DXVA CopyBack if EVR is selected.
Why EVR is better than EVR (Custom Presenter) - simple EVR draws less resources.
Can you fix DXVA Native in simple EVR? As I already said, there are no problems with this in BSPlayer - DXVA Native works there with a simple EVR without (Custom Presenter).
Checked with DXVA in MPC-HC. Hardware acceleration works in:
• DXVA Native if EVR (Custom Presenter) is selected
• DXVA CopyBack if EVR is selected.
Why EVR is better than EVR (Custom Presenter) - simple EVR draws less resources.
Can you fix DXVA Native in simple EVR? As I already said, there are no problems with this in BSPlayer - DXVA Native works there with a simple EVR without (Custom Presenter).
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
DXVA2 Native also works with standard EVR.
Standard EVR does not work with the internal subtitle renderer and also does not support rotation. The only way to get subtitles is to use VSFilter. That gives worse quality subtitles than the ISR, and also is not compatible with DXVA2 Native. So yes, in that case copyback is required.
Standard EVR does not work with the internal subtitle renderer and also does not support rotation. The only way to get subtitles is to use VSFilter. That gives worse quality subtitles than the ISR, and also is not compatible with DXVA2 Native. So yes, in that case copyback is required.
Re: MPC-HC internal LAV
I turned off subtitles through the RMB menu, and then changed output to EVR with a restart of the player. Hardware acceleration is not enabled. So it's not the subtitles prevent acceleration from turning on? Or should they be disabled in some other way? How can I check the operation of hardware acceleration in a simple EVR? Or this will not work anyway?
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
All the subtitle options in the player are for the ISR, so those do not have effect when using EVR.
If it loads VSFilter then you need to disable that with the Codec Tweak Tool.
You can see which filters are used here:
Menu > Play > Filters
I don't understand why resource usage is a problem for you. EVR-CP works fine even on super old hardware.
If it loads VSFilter then you need to disable that with the Codec Tweak Tool.
You can see which filters are used here:
Menu > Play > Filters
I don't understand why resource usage is a problem for you. EVR-CP works fine even on super old hardware.
Re: MPC-HC internal LAV
Filters are empty. Used ISR. So I'm asking how to completely disable it, if it is the ISR that prevents hardware acceleration from starting. But if that's not the problem, then what is?
This does not mean that I will leave the simple EVR + VSFilter.
Sometimes you come across weak computers, or for example, there are just not enough resources to pull the desired video. I want to get hardware acceleration to work with a simple EVR in MPC-HC, at least for test purposes. You are the only one who knows how to do this, if possible.
This does not mean that I will leave the simple EVR + VSFilter.
Sometimes you come across weak computers, or for example, there are just not enough resources to pull the desired video. I want to get hardware acceleration to work with a simple EVR in MPC-HC, at least for test purposes. You are the only one who knows how to do this, if possible.
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
The filter list is only visible during playback.
Disable VSFilter (=DirectVobSub) with the Codec Tweak Tool.
Give details about the hardware that you are having trouble with, and also give details of the video file.
Disable VSFilter (=DirectVobSub) with the Codec Tweak Tool.
Give details about the hardware that you are having trouble with, and also give details of the video file.
Re: MPC-HC internal LAV
No problem. There is only non-working DXVA2 Native in MPC-HC + EVR Simple. There is no specific file - all files work the same way.
Hardware:
Windows 10 1809 x64
Intel Pentium N3710
Intel HD Graphics 405 (latest driver v15.40 2/5/2021 aka 20.19.15.5171)
All tests using one sample in FullScreen.
A heavy sample was taken to better see the difference in loading.
MPC-HC 1.9.21.40 x64 (K-Lite 17.0.5)
MPC-HC (Full Screen - 1366x768) GPU Load by GPU-Z
EVR Simple + DXVA2N (avcodec) - Not Accelerated (GPU Load 48 %)
EVR Simple + DXVA2N - GPU Load 36 % (solution - disable vsfilter.dll) added after founded solution
EVR Simple + DXVA2CB direct - GPU Load 39 %
EVR Simple + D3D11 CB direct - GPU Load 83 %
EVR Custom + DXVA2N - GPU Load 55 %
EVR Custom + DXVA2CB direct - GPU Load 67 %
EVR Custom + D3D11 CB direct - GPU Load 99 %
MPC-HC 1.21.60 x64 + MPCVideoRenderer 0.6.0.1912 (K-Lite 17.0.7)
MPCVideoRenderer (default settings) + DXVA2N - GPU Load 58 %
BSPlayer 2.77.1092 x32
BSPlayer (Full Screen - 1366x768) GPU Load by GPU-Z
EVR Simple + DXVA2N - GPU Load 35 %
EVR Simple + DXVA2CB direct - GPU Load 41 %
Why EVR Simple + DXVA2N in MPC-HC not Accelerated?
Hardware:
Windows 10 1809 x64
Intel Pentium N3710
Intel HD Graphics 405 (latest driver v15.40 2/5/2021 aka 20.19.15.5171)
All tests using one sample in FullScreen.
A heavy sample was taken to better see the difference in loading.
- Sample Info:
- General
Unique ID : 229383864182323399884576156384805170972 (0xAC91B9ABDF12C6499402D5EEFF12AF1C)
Complete name : F:\Video\_______2012_BDRip_1080p60fps_______.mkv
Format : Matroska
Format version : Version 2
File size : 373 MiB
Duration : 2 min 1 s
Overall bit rate : 25.8 Mb/s
Encoded date : UTC 2012-10-26 01:19:03
Writing application : mkvmerge v5.8.0 ('No Sleep / Pillow') built on Sep 2 2012 15:37:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 min 1 s
Bit rate : 24.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.193
Stream size : 347 MiB (93%)
Default : Yes
Forced : No
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Muxing mode : Header stripping
Codec ID : A_AC3
Duration : 2 min 1 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 31 ms
Stream size : 9.26 MiB (2%)
Language : Russian
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Muxing mode : Header stripping
Codec ID : A_AC3
Duration : 2 min 1 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 31 ms
Stream size : 9.26 MiB (2%)
Language : Ukrainian
Service kind : Complete Main
Default : No
Forced : No
Text #1
ID : 4
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Language : Russian
Default : No
Forced : No
Text #2
ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Language : Ukrainian
Default : No
Forced : No
MPC-HC 1.9.21.40 x64 (K-Lite 17.0.5)
MPC-HC (Full Screen - 1366x768) GPU Load by GPU-Z
EVR Simple + DXVA2N (avcodec) - Not Accelerated (GPU Load 48 %)
EVR Simple + DXVA2N - GPU Load 36 % (solution - disable vsfilter.dll) added after founded solution
EVR Simple + DXVA2CB direct - GPU Load 39 %
EVR Simple + D3D11 CB direct - GPU Load 83 %
EVR Custom + DXVA2N - GPU Load 55 %
EVR Custom + DXVA2CB direct - GPU Load 67 %
EVR Custom + D3D11 CB direct - GPU Load 99 %
MPC-HC 1.21.60 x64 + MPCVideoRenderer 0.6.0.1912 (K-Lite 17.0.7)
MPCVideoRenderer (default settings) + DXVA2N - GPU Load 58 %
BSPlayer 2.77.1092 x32
BSPlayer (Full Screen - 1366x768) GPU Load by GPU-Z
EVR Simple + DXVA2N - GPU Load 35 %
EVR Simple + DXVA2CB direct - GPU Load 41 %
Why EVR Simple + DXVA2N in MPC-HC not Accelerated?
Last edited by Lite on Sat Jun 25, 2022 5:23 am; edited 5 times in total
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
That shows that there is barely any difference between Native and Copyback.
I have already mentioned before that VSFilter can be the reason for DXVA Native not working. I can't think of any other reason, so if it doesn't work you are out of luck.
GPU loads can be misleading because not all GPU processing is "counted". For example, it may ignore DXVA2 processing (resizing and colorspace conversion, unrelated to decoding!), which is used by EVR simple. The GPU also can run at different clock speeds depending on the load.
You could try MPC Video Renderer. That might give you load similar to EVR simple.
Otherwise, this is simply how things works. There is nothing I can do for you.
I have already mentioned before that VSFilter can be the reason for DXVA Native not working. I can't think of any other reason, so if it doesn't work you are out of luck.
GPU loads can be misleading because not all GPU processing is "counted". For example, it may ignore DXVA2 processing (resizing and colorspace conversion, unrelated to decoding!), which is used by EVR simple. The GPU also can run at different clock speeds depending on the load.
You could try MPC Video Renderer. That might give you load similar to EVR simple.
Otherwise, this is simply how things works. There is nothing I can do for you.
Re: MPC-HC internal LAV
I tried blocking external filters DirectVobSub and DirectVobSub (auto-loading version) (aka vsfilter.dll) in the MPC-HC settings, but DirectVobSub (auto-loading version) still loads. And only when I turned it off completely through CodecTweakTool did it stop loading by the player. After that, hardware acceleration in EVR Simple + DXVA2N started working!
Why doesn't MPC-HC block its loading even if "block" is selected?
Why doesn't MPC-HC block its loading even if "block" is selected?
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
Because VSFilter is set as preferred through the output settings page. A "none" choice should be added there in future to solve that.
Re: MPC-HC internal LAV
Thanks for helping clsid2!
And thanks for adding "none" choice for subtitle rendeder in MPC-HC!
But there is one problem. Although choosing "none" MPC-HC stops using vsflter, the selection on the output page still shows "VSFilter / DirectVobSub". MPC-HC 1.9.21.60.
Updated Load Table in upper post.
And thanks for adding "none" choice for subtitle rendeder in MPC-HC!
But there is one problem. Although choosing "none" MPC-HC stops using vsflter, the selection on the output page still shows "VSFilter / DirectVobSub". MPC-HC 1.9.21.60.
Updated Load Table in upper post.
Lite- Posts : 39
Join date : 2011-07-03
Re: MPC-HC internal LAV
What I mean is that after selecting "None" and clicking "Apply", the selection remains "None". But if you close the MPC-HC "Settings" dialog and reopen it, the selection will be shown as "VSFilter / DirectVobSub", but in fact "None" will be used. If you select "VSFilter / DirectVobSub" again and apply, then "VSFilter / DirectVobSub" will be used.
That is, the display of the "None" selection is correctly shown only until the "Settings" dialog is closed.
That is, the display of the "None" selection is correctly shown only until the "Settings" dialog is closed.
Lite- Posts : 39
Join date : 2011-07-03
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum