There's a bug when playing AVI files

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Videogamer555
Blank Cone
Blank Cone
Posts: 66
Joined: 07 Feb 2012 01:14

There's a bug when playing AVI files

Postby Videogamer555 » 02 Jan 2021 14:50

An AVI file's stream header for a video stream (at least for uncompressed video) is a BITMAPINFOHEADER structure. The height of the video specified in this structure is a SIGNED value, but VLC mistakenly treats it as UNSIGNED. The sign of the value has to do with vertical flipping. As with normal BMP still images, an AVI video with a positive height indicated in the BITMAPINFOHEADER structure is drawn from the bottom up, while if the BITMAPINFOHEADER height is negative it's drawn from the top down. Due to the BITMAPINFOHEADER height field being treated being incorrectly treated as an unsigned value by VLC, when this field has a negative value (such as -480) VLC sees it as a HUGE positive number (it sees -480 as 4294966816). This causes VLC player to consider it an invalid video file, due to the huge height, and it refuses to play the video.

VLC Player developers, please fix this bug. This bug prevents it form playing any uncompressed RGB AVI file that is output by FFMPEG, as FFMPEG always outputs these uncompressed RGB AVIs with a negative value in the BITMAPINFOHEADER height field, to force any player that plays it to draw from the top down.

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: There's a bug when playing AVI files

Postby Hitchhiker » 03 Jan 2021 12:58

Your bug report will get more attention if you post it here: https://trac.videolan.org/vlc/

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: There's a bug when playing AVI files

Postby Lotesdelere » 04 Jan 2021 15:19

Please open Tools -> Messages (set Verbosity to 2) before you start the playback, and then paste the full resulting log here or on Pastebin.com if it's too long.

Also upload your original problematic file to Zippyshare.com (200 MB max) or to WeTransfer.com and then post the link to the file here.
https://www.zippyshare.com
https://wetransfer.com

If needed cut it with DGsplit and read here about how to do it:
https://forum.videolan.org/viewtopic.ph ... 35#p193335
100 MB max should be enough.

Then create a new ticket on the VLC Trac with the links to your log, your file and to this thread:
https://trac.videolan.org/vlc/


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests