View Issue Details

IDProjectCategoryView StatusLast Update
0000582madVRbugpublic2018-10-11 10:36
Reportermkver Assigned Tomadshi  
Status assignedResolutionopen 
Summary0000582: Matroska/Upstream cropping doesn't work in DXVA2 Native mode

the Matroska/Upstream cropping doesn't work correctly in DXVA2 Native mode. The size of the rectangle and the aspect ratio is right, but the choosen pixels aren't: It doesn't crop at the top, but only at the bottom (and it crops more than it should there -- so much that the size is right). Here is the pin info MPC-BE reports:

- Connection media type:

Video: dxva 1280x720 (16:7) 25fps

majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_NV12 {3231564E-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo2 {F72A76A0-EB0A-11D0-ACE4-0000C0CC16BA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1382400
cbFormat: 112

rcSource: (0,80)-(1280,640)
rcTarget: (0,80)-(1280,640)
dwBitRate: 0
dwBitErrorRate: 0
AvgTimePerFrame: 400000 (25.000 fps)

dwInterlaceFlags: 0x00000081
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 16
dwPictAspectRatioY: 7
dwControlFlags: 0x0000a581
- VideoChromaSubsampling: 5
- NominalRange : 2 (16-235)
- VideoTransferMatrix : 1 (BT.709)
- VideoLighting : 0
- VideoPrimaries : 0
- VideoTransferFunction : 0
dwReserved2: 0x00000000
Steps To ReproducePlay the file "Matroska.Container.Cropping.mkv" in MPC-BE with its internal filters with DXVA2 native enabled. You'll see a black bar at the top and you'll also see that the white rectangle isn't centered, but below the middle of the video (it should be a white square in the middle of the video and you shouldn't see black bars at all).
Additional InformationI have already reported it on doom9 here:
The EVR and EVR-CP renderers are able to correctly crop in DXVA2 mode (if the cropping doesn't respect the subsampling, they are off by one, but I'd be satisfied with this).
It works correctly when not in DXVA2 native mode.
LAV Filters ignores the Matroska container cropping parameters and can therefore not be used to reproduce this issue. But MPC-BE's internal filters work.
TagsNo tags attached.
madVR Version0.92.17
Media Player (with version info)1.5.2 (build 4000) beta
Splitter (with version info)Internal MPC-BE Splitter from version 1.5.2 (build 4000) beta
Decoder (with version info)Internal MPC-BE Decoder from version 1.5.2 (build 4000) beta
DecodingDXVA2 Native
Deinterlacingnone (progressive)
DXVA2 Scaling Activeno
Aero / Desktop CompositionOn
Problem occurs with modeall modes
GPU ManufacturerIntel
GPU Modeli3 4005U
GPU Driver Version10.18.14.4889



2018-10-11 07:56


Issue History

Date Modified Username Field Change
2018-10-11 07:56 mkver New Issue
2018-10-11 07:56 mkver File Added: Matroska.Container.Cropping.mkv
2018-10-11 10:36 madshi Assigned To => madshi
2018-10-11 10:36 madshi Status new => assigned