MJPEG->AVI doesn't set width/height in AVI header

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
minipluto
New Cone
New Cone
Posts: 1
Joined: 18 Jan 2012 03:35

MJPEG->AVI doesn't set width/height in AVI header

Postby minipluto » 18 Jan 2012 03:55

Hi,

I'm a relatively new VLC user and I've been trying to save the MJPEG stream from a Foscam camera to an AVI file using VLC 1.1.11...

vlc http://foscam/video.cgi?user=x&pwd=y --sout="#standard{access=file,mux=avi,dst=output.avi}"

The resulting file can be played in VLC, but when loaded in VirtualDub, it complains:

"The size of this frame is inconsistent with the video"

It also won't load in Zoom Player, KMPlayer, etc.


When I used VirtualDub's hex editor, I noticed the width and height of the AVI's strf BITMAPINFOHEADER is not set. ie:

BITMAPINFOHEADER.biWidth = 0
BITMAPINFOHEADER.biHeight = 0

If I manually hex-edit it to 640x480, the file loads correctly in all the programs. I'd rather not do that every time though...

Is there some option in VLC that I should be using to make it set this info, or could this be a bug?


Thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MJPEG->AVI doesn't set width/height in AVI header

Postby Jean-Baptiste Kempf » 19 Jan 2012 12:36

This is a bug. Please file a bugreport with this issue on trac.videolan.org/vlc with those details.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

tittbit
Blank Cone
Blank Cone
Posts: 17
Joined: 10 Mar 2012 19:40

Re: MJPEG->AVI doesn't set width/height in AVI header

Postby tittbit » 12 Mar 2012 11:09

besides not setting width and height of avi file vlc also have a kind of bug that sometimes when i play a file in vlc it complains that the file needs to be repaired, while media playec classic plays it well.

also some time in the avi file it plays only video and no sound.

i dont know why it happens but it can be bug.

I want to know from vlc developer that when will be new stable version released with added blu ray support, http interface bug fix and some small other bugs
Life is not finding yourself, it is discovering yourself.

andylee
New Cone
New Cone
Posts: 1
Joined: 12 Nov 2012 08:01

Re: MJPEG->AVI doesn't set width/height in AVI header

Postby andylee » 12 Nov 2012 08:24

I just run into this bug too - as of windows version 2.0.4, 10 months later, it still hasn't been fixed!

I just found the ticket - http://trac.videolan.org/vlc/ticket/5886

1500 open bugs??? Where is everyone? This has to be one of the simplest bugs to fix.

All VLC has to do is put W and H at offset 0xB0 and 0xB4 in this example header,
which I did manually for 720x480 (0xD002 x 0x01E0):
...

Code: Select all

A0: 00 00 00 00 73 74 72 66 - 28 00 00 00 28 00 00 00 ....strf(...(... B0:(D0 02 00 00)(E0 01 00 00)- 01 00 18 00 4D 4A 50 47 ............MJPG C0: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................ D0: 00 00 00 00 4A 55 4E 4B - 18 27 00 00 00 00 00 00 ....JUNK.'......
...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MJPEG->AVI doesn't set width/height in AVI header

Postby Jean-Baptiste Kempf » 12 Nov 2012 12:01

1500 open bugs??? Where is everyone? This has to be one of the simplest bugs to fix.
We are waiting for your contribution...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests