DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
3 posters
Page 1 of 1
DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Hi i have some problems with MPC/MadVR/K-Lite Pack and im not sure where is the problem.
System:
Latest Windows 10 x64 (fresh install + all drivers in)
Latest K-Lite Mega Pack (Lav , MadVR, MPC-HC)
AMD Ryzen 3200G (I'm using integrated Radeon Vega 8 Graphics)
Latest amd video drivers installed. all extra options are turned off
So what is the problem!?
I'm getting a lot dropped frames using shaders with DXVA copy-back. If a change to D3D11 the video plays smooth even with more shaders...there is no problem. But the problem with D3D11 is that it doesnt work with MadVr black bar function (zoom control). I'm getting the problem with 4K videos, HEVC codec.
Running OK with d3d11 + shaders shows me that the system can run it properly. I need to find why DXVA2 copy-back makes this lag. Any ideas?
System:
Latest Windows 10 x64 (fresh install + all drivers in)
Latest K-Lite Mega Pack (Lav , MadVR, MPC-HC)
AMD Ryzen 3200G (I'm using integrated Radeon Vega 8 Graphics)
Latest amd video drivers installed. all extra options are turned off
So what is the problem!?
I'm getting a lot dropped frames using shaders with DXVA copy-back. If a change to D3D11 the video plays smooth even with more shaders...there is no problem. But the problem with D3D11 is that it doesnt work with MadVr black bar function (zoom control). I'm getting the problem with 4K videos, HEVC codec.
Running OK with d3d11 + shaders shows me that the system can run it properly. I need to find why DXVA2 copy-back makes this lag. Any ideas?
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Copyback means that video data is copied back to CPU memory (and later to GPU again). That means a lot of extra work for 4k video. That is why your low-end GPU is struggling.
Madvr does not support black bar detection with D3D11 (in native mode). And it likely never will giving that its development is pretty much dead.
You can use the Pan&Scan functionality of MPC-HC to manually zoom the black bars away.
Madvr does not support black bar detection with D3D11 (in native mode). And it likely never will giving that its development is pretty much dead.
You can use the Pan&Scan functionality of MPC-HC to manually zoom the black bars away.
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Ok some more information.
Before the reinstall of the OS, i was using:
MadVR, MPC-HC , LAV - dxva2 copy-back - with shaders / sharpen complex + 2x bt601 to bt709. It was running fine ! No dropped frames. So i decide to add some more shaders and then i got dropped frames. I checked and saw that the graphic drivers were old and K-Lite too. Then I decide to reinstall the OS too, because i wanted clean install of everything.
After reinstall OS with latest K-Lite MadVr, MPCHC and so on, now im getting dropped frames even with the set-up that i didnt have problems before the reinstall. Just MPC-HC, madvr, lav video dxva2 copyback + shaders - sharpen complex ,twice bt601to709! Before the reinstall with the same config it was ok. There is something more! Before the reinstall i was able to add multiple times a single shader and the difference was obvious.
Now even i've added 10x bt601 to 709 shader , the result in the picture is just once!
I have to say also that i tested 4K video with H264 codec running with dxva2 copy-back and all heavy shaders that makes the dropped frames - playing smooth! no dropped frames at all. So as it seems its something with HEVC?
I found a HEVC Extension for Win10 and added to the windows but no change!
Before the reinstall of the OS, i was using:
MadVR, MPC-HC , LAV - dxva2 copy-back - with shaders / sharpen complex + 2x bt601 to bt709. It was running fine ! No dropped frames. So i decide to add some more shaders and then i got dropped frames. I checked and saw that the graphic drivers were old and K-Lite too. Then I decide to reinstall the OS too, because i wanted clean install of everything.
After reinstall OS with latest K-Lite MadVr, MPCHC and so on, now im getting dropped frames even with the set-up that i didnt have problems before the reinstall. Just MPC-HC, madvr, lav video dxva2 copyback + shaders - sharpen complex ,twice bt601to709! Before the reinstall with the same config it was ok. There is something more! Before the reinstall i was able to add multiple times a single shader and the difference was obvious.
Now even i've added 10x bt601 to 709 shader , the result in the picture is just once!
I have to say also that i tested 4K video with H264 codec running with dxva2 copy-back and all heavy shaders that makes the dropped frames - playing smooth! no dropped frames at all. So as it seems its something with HEVC?
I found a HEVC Extension for Win10 and added to the windows but no change!
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Why are you using bt601to709 shader? That is just wrong. If you want to mess with colors then maybe calibration settings in Madvr are better solution. Or Windows settings:
https://www.microsoft.com/en-us/windows/learning-center/how-to-color-calibrate-your-monitor
HEVC Extension is a Media Foundation codec, which is only used by the Microsoft players. You don't need another decoder.
I can't tell you why your system is performing less good now. Maybe different heavier Madvr settings? Maybe the HEVC files were HDR? That requires extra processing to do color tonemapping in Madvr.
Running same shader multiple times will be possible again in next update.
https://www.microsoft.com/en-us/windows/learning-center/how-to-color-calibrate-your-monitor
HEVC Extension is a Media Foundation codec, which is only used by the Microsoft players. You don't need another decoder.
I can't tell you why your system is performing less good now. Maybe different heavier Madvr settings? Maybe the HEVC files were HDR? That requires extra processing to do color tonemapping in Madvr.
Running same shader multiple times will be possible again in next update.
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
I'm using 1080p projector with 4K movies. I was using bt601to709 just because i liked the picture more...i didnt know its wrong... just liked the picture and left it active...
I've never calibrated the projector... never took one of the spyder3 or similar.
I think im getting closer....or maybe locate the problem.
Look at this! These two files are almost identical! But
But i get dropped frames on this
So far i locate the problem in MadVR-Zoom COntrol. I reset the MadVR settings and the problem was gone. When i set up madvr with the settings that i used last couple of years, im getting dropped frames. Also there is option -zoom control - move Subtitles - ...into active movie area - before the OS reinstall, it was working ok( it was detecting the subs and placed movie area b, but now it placing the subs in the middle of the movie area.
If i play imax release with switching aspect ration and i have enabled the black bar detection it starts the problem... if i play 2.35:1 material its ok...
Somehow with the new OS, drivers, latest K-lite, i got this mess... i reinstalled 3 times the mega pack and the only change that i made was disable ffdshow video decoder...everything else left it how it is suggested..
I've never calibrated the projector... never took one of the spyder3 or similar.
I think im getting closer....or maybe locate the problem.
Look at this! These two files are almost identical! But
- Code:
Format : Matroska
Format version : Version 4
File size : 25.8 GiB
Duration : 2 h 35 min
Overall bit rate mode : Variable
Overall bit rate : 23.8 Mb/s
Frame rate : 23.976 FPS
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 35 min
Bit rate : 19.8 Mb/s
Width : 3 840 pixels
Height : 1 606 pixels
Display aspect ratio : 2.39:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.134
Stream size : 21.5 GiB (83%)
Writing library : x265 3.0_Au+10-74a8672ea4f7:[Windows][GCC 8.2.1][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=6 / numa-pools=40 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1606 / interlace=0 / total-frames=0 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=24 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=16.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50) / max-cll=787,239 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=-405031315 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / qp-adaptation-range=1.00
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level : 787 cd/m2
Maximum Frame-Average Light : 239 cd/m2
Audio
ID : 2
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 2 h 35 min
Bit rate mode : Variable
Bit rate : 3 931 kb/s
Channel(s) : 8 channels
Channel layout : C L R LFE Lb Rb Lss Rss
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 4.27 GiB (17%)
Title : DTS-HD MA 7.1
Language : English
Default : No
Forced : No
But i get dropped frames on this
- Code:
Format : Matroska
Format version : Version 4
File size : 28.3 GiB
Duration : 2 h 10 min
Overall bit rate mode : Variable
Overall bit rate : 31.2 Mb/s
Frame rate : 23.976 FPS
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 10 min
Bit rate : 27.0 Mb/s
Width : 3 840 pixels
Height : 2 024 pixels
Display aspect ratio : 1.897
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.145
Stream size : 24.5 GiB (87%)
Writing library : x265 3.0_Au+10-74a8672ea4f7:[Windows][GCC 8.2.1][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=6 / numa-pools=40 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x2024 / interlace=0 / total-frames=0 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=24 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=12.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,01) / max-cll=617,496 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / qp-adaptation-range=1.00
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 617 cd/m2
Maximum Frame-Average Light : 496 cd/m2
Audio
ID : 2
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 2 h 10 min
Bit rate mode : Variable
Bit rate : 4 193 kb/s
Channel(s) : 8 channels
Channel layout : C L R LFE Lb Rb Lss Rss
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 3.81 GiB (13%)
Title : DTS-HD MA 7.1
Language : English
Default : No
Forced : No
So far i locate the problem in MadVR-Zoom COntrol. I reset the MadVR settings and the problem was gone. When i set up madvr with the settings that i used last couple of years, im getting dropped frames. Also there is option -zoom control - move Subtitles - ...into active movie area - before the OS reinstall, it was working ok( it was detecting the subs and placed movie area b, but now it placing the subs in the middle of the movie area.
If i play imax release with switching aspect ration and i have enabled the black bar detection it starts the problem... if i play 2.35:1 material its ok...
Somehow with the new OS, drivers, latest K-lite, i got this mess... i reinstalled 3 times the mega pack and the only change that i made was disable ffdshow video decoder...everything else left it how it is suggested..
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Don't let Madvr move subs. That is very buggy.
MPC-HC options > Subtitles > Default Style > Position subtitles relative to video frame
(although video frame includes any hardcoded black bars)
If you press Ctrl+J to can activate the Madvr statistics overlay. That for example shows you how much time it takes to process each frame. The rendertime should be below 40 milliseconds to have smooth playback. Check what happens when the black bar removal kicks in.
MPC-HC options > Subtitles > Default Style > Position subtitles relative to video frame
(although video frame includes any hardcoded black bars)
If you press Ctrl+J to can activate the Madvr statistics overlay. That for example shows you how much time it takes to process each frame. The rendertime should be below 40 milliseconds to have smooth playback. Check what happens when the black bar removal kicks in.
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
disabled zoom control - black bar detect + loaded shaders
WINDOWED
rendering time around 20ms , no dropped frames,
FULL SCREEN
rendering time jumps to 30-50ms, dropped frames
enabled zoom control - black bar detect + loaded shaders
WINDOWED
rendering time ~55ms, dropped frames
FULL SCREEN
rendering time~65ms, dropped frames
MadVR has default settings - except (HDR - tone map HDR using pixel shaders set to 110).
I tried also
disabled shaders + madvr - enabled hdr tone map, zoom control black bar detect
FULL SCREEN
21:9 scene - 30ms, 16:9 scene - 32ms
WINDOWED
rendering time around 20ms , no dropped frames,
FULL SCREEN
rendering time jumps to 30-50ms, dropped frames
enabled zoom control - black bar detect + loaded shaders
WINDOWED
rendering time ~55ms, dropped frames
FULL SCREEN
rendering time~65ms, dropped frames
MadVR has default settings - except (HDR - tone map HDR using pixel shaders set to 110).
I tried also
disabled shaders + madvr - enabled hdr tone map, zoom control black bar detect
FULL SCREEN
21:9 scene - 30ms, 16:9 scene - 32ms
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Then it looks like you need to stop using the extra shaders.
Madvr also has several sharpening options. Maybe one of those will perform a bit better than Sharpen Complex.
Madvr also has several sharpening options. Maybe one of those will perform a bit better than Sharpen Complex.
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
WHat about turning to MPC Video Renderer + heavy shaders... i got 0 dropped frames....
another tests with MadVR:
disabled shaders
madvr zoom control OFF
no dropped frames
disabled shaders
madvr zoom control ON
dropping drames
enabled shaders
madvr zoom control OFF
dropping frames
another tests with MadVR:
disabled shaders
madvr zoom control OFF
no dropped frames
disabled shaders
madvr zoom control ON
dropping drames
enabled shaders
madvr zoom control OFF
dropping frames
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
MPC Video Renderer has much less complex and heavy processing than Madvr.
Madvr is mainly for people with high end graphics carsd who want to get optimal video quality.
Madvr is mainly for people with high end graphics carsd who want to get optimal video quality.
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
ok thank for your help...
i'll keep searching for solution.... there is still the question why i didnt have problems with these settings before the reinstall OS.
i'll keep searching for solution.... there is still the question why i didnt have problems with these settings before the reinstall OS.
TheCage- Posts : 14
Join date : 2019-02-16
Re: DXVA2 copy-back drops frames, D3D11 cannot detect black bars..
Hi everyone! I’m having an issue balancing HDR and black bar detection with MadVR. When I set DXVA, HDR works great, but the zoom detect for black bars doesn’t work. Switching to D3D11 allows black bar detection, but then HDR fails—leaving the video in black and white with flickering, which seems like HDR isn’t being recognized. Has anyone found a way to get both HDR and black bar detection working together? Thanks!
steppi- Posts : 1
Join date : 2024-10-28
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum