madshi bug tracker - madVR
View Issue Details
0000582madVRbugpublic2018-10-11 07:562018-10-11 10:36
1.5.2 (build 4000) beta
Internal MPC-BE Splitter from version 1.5.2 (build 4000) beta
Internal MPC-BE Decoder from version 1.5.2 (build 4000) beta
DXVA2 Native
none (progressive)
all modes
i3 4005U
0000582: 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
Play 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).
I 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.
No tags attached.
? Matroska.Container.Cropping.mkv (2,208,576) 2018-10-11 07:56
Issue History
2018-10-11 07:56mkverNew Issue
2018-10-11 07:56mkverFile Added: Matroska.Container.Cropping.mkv
2018-10-11 10:36madshiAssigned To => madshi
2018-10-11 10:36madshiStatusnew => assigned

There are no notes attached to this issue.