Page 1 of 1

Video frame deformation

Posted: 10 May 2022 03:58
by Trueman
Hi. VLC deforms some videos, particularly the ones recorded with Bandicam, making them slightly taller than they should be and cropping at the bottom. Same videos look fine when played in default Windows Media Player with Shark007 codecs.

Here's a gif example of what it looks like:
Image

Fullsize screenshot comparison:
https://screenshotcomparison.com/comparison/23738

Sample of a problematic video:
https://www.mediafire.com/file/1b7ahtae ... n.mp4/file

Mediainfo:

Code: Select all

Format : MPEG-4 Format_Profile : Base Media CodecID/String : isom (mp41) FileSize/String : 9.86 MiB Duration/String : 15 s 732 ms OverallBitRate_Mode/String : Variable OverallBitRate/String : 5 257 kb/s Encoded_Date : UTC 2022-05-10 01:16:56 Tagged_Date : UTC 2022-05-10 01:16:56 Encoded_Application/String : Bandicam 5.3.1.1880 / GDI / Nvidia NVENC Video ID/String : 1 Format : AVC Format/Info : Advanced Video Codec Format_Profile : High@L4.2 Format_Settings : CABAC / 1 Ref Frames Format_Settings_CABAC/String : Yes Format_Settings_RefFrames/String : 1 frame CodecID : avc1 CodecID/Info : Advanced Video Coding Duration/String : 15 s 732 ms BitRate/String : 5 065 kb/s Width/String : 1 600 pixels Height/String : 900 pixels DisplayAspectRatio/String : 16:9 FrameRate_Mode/String : Variable FrameRate/String : 57.334 FPS FrameRate_Minimum/String : 14.985 FPS FrameRate_Maximum/String : 60.000 FPS FrameRate_Original/String : 59.940 (60000/1001) FPS ColorSpace : YUV ChromaSubsampling/String : 4:2:0 BitDepth/String : 8 bits ScanType/String : Progressive Bits-(Pixel*Frame) : 0.061 StreamSize/String : 9.50 MiB (96%) Language/String : English Encoded_Date : UTC 2022-05-10 01:16:56 Tagged_Date : UTC 2022-05-10 01:16:56 Audio ID/String : 2 Format : AAC Format/Info : Advanced Audio Codec Format_Profile : LC CodecID : mp4a-40-2 Duration/String : 15 s 680 ms BitRate_Mode/String : Variable BitRate/String : 183 kb/s BitRate_Maximum/String : 279 kb/s Channel(s)/String : 2 channels ChannelPositions : Front: L R SamplingRate/String : 48.0 kHz FrameRate/String : 46.875 FPS (1024 SPF) Compression_Mode/String : Lossy StreamSize/String : 351 KiB (3%) Language/String : English Encoded_Date : UTC 2022-05-10 01:16:56 Tagged_Date : UTC 2022-05-10 01:16:56

VLC 3.0.16 Vetinari 64-bit
WIndows 7x64

Re: Video frame deformation

Posted: 10 May 2022 12:55
by Lotesdelere
I can't reproduce the issue with VLC 3.0.17.4 using D3D11 video output. The frame is exactly 1600x900 as expected and without any deformation.
Reset the preferences and try again:
https://wiki.videolan.org/VSG:ResetPrefs

Re: Video frame deformation

Posted: 10 May 2022 22:46
by Trueman
So you mentioned video output and I tried to change it (it was "automatic") and turned out when I select Direct3D11 and some others, it fixes the issue. Direct3D9 causes slightly deformed proportions, probably it was chosen when set to automatic, so Direct3D9 seems to be the source of this problem for some reason. Also updating to 3.0.17.4 and Reseting Preferences made the proportions a bit better with Direct3D9 but still deformed.

3.0.17.4 Direct3D11 vs Direct3D9
Image

Anyway, selecting Direct3D11 solves the issue, thank you.