Ticket #259 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Blender MJPEG AVI not loading correctly

Reported by: jstewart@… Owned by: cinelerra@…
Priority: medium Milestone:
Component: File Loading Version: 2.0
Severity: normal Keywords:
Cc: farzy-cinelerra@…, igzebedze@…

Description

MJPEG AVI created in Blender will not load properly - the clip will show up in
the timeline, but the frames are all blank. STDERR shows "Huffman table 0x00
was not defined" when viewing a frame.

Will attach a 5-second sample clip created in Blender 2.41 on Linux using
settings 720x480/24fps/AVI Jpeg. Clip plays fine in mplayer.

Attachments

0001_0048.avi Download (0.8 MB) - added by jstewart@… 7 years ago.
Blender-created MPJEG AVI clip
blender-avi-mplayer-screenshot.png Download (108.0 KB) - added by jstewart@… 7 years ago.
Screenshot of mplayer playing Blender AVI
blender-mjpeg.patch Download (5.2 KB) - added by jstewart@… 7 years ago.
Patch to handle MJPEG files with no huffman table

Change History

Changed 7 years ago by jstewart@…

Blender-created MPJEG AVI clip

Changed 7 years ago by andraz.tori1@…

even mplayer doesn't play this!

Changed 7 years ago by jstewart@…

Screenshot of mplayer playing Blender AVI

Changed 7 years ago by jstewart@…

Ok, found this page, basically describing the same MJPEG decoding problem along
with a patch:  http://lists.trolltech.com/qt-interest/2005-12/thread00859-0.html

Turns out the huffman table is not defined because MJPEG isn't supposed to have
one - to save space it is supposed to use a default table. The quicktime
library in Cinelerra doesn't handle this. The patch adds the default huffman
table and loads it if needed.

I've adapted the patch in the URL above to quicktime/libmjpeg.c in Cinelerra
and it now loads Blender MJPEG AVI files correctly. It also appears to fix bug
#139 and possibly bug #148 (the URL with the test AVI for this bug is no longer
valid), dealing with MJPEG files created with digital cameras.

Changed 7 years ago by jstewart@…

Patch to handle MJPEG files with no huffman table

Changed 7 years ago by andraz.tori1@…

  • status changed from new to closed
  • resolution set to fixed

absolutely fabolous. this indeed fixes 139 and most probably 148 too!

While you are at it, maybe you can also look at bug 62 ... it's a problem
closely related...

(commiting to svn and sending to HV right now...)

Changed 7 years ago by andraz.tori1@…

  • cc farzy-cinelerra@… added

Changed 7 years ago by andraz.tori1@…

*** Bug 139 has been marked as a duplicate of this bug. ***

Changed 7 years ago by andraz.tori1@…

  • cc igzebedze@… added

*** Bug 148 has been marked as a duplicate of this bug. ***

Note: See TracTickets for help on using tickets.