Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

MJPG decompression with C


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 blueshogun96   Crossbones+   -  Reputation: 448

Like
0Likes
Like

Posted 20 October 2012 - 12:58 AM

Been working on a basic .avi playback code module for my game projects and it works fine, however, only for uncompressed frames. I'm sure it would be easy to add support for other compression methods, but I haven't seen any code for handling other codecs. I'd personally like to decode mjpg compressed .avi files (since I already have some avi files using this fomat) but all the decompression code I've seen is for the jpeg file format. MJPG frames don't have the headers that .jpg files do, so is there an alternative way of decompressing the data?

Before someone suggests VFW library or something like that, keep in mind that I'm trying to make this code portable to any OS/platform possible by using open source material or source I've written from scratch. Also, I was avoiding FFmpeg because of the LGPL which is not compatible with the intended purpose of this source (unless I've misunderstood the licence). As for using Ogg/Vorbis, as much as I love that file format, that would defeat the purpose of what I'm trying to do.

Also, if there's any other easily uncompressed codec out there that I can use, please let me know. Thanks.

Shogun3D Development Blog (Last Update: April 11, 2013)

Latest Update: Mac-Metro Anyone?

 

Shogun3D on Tumblr! happy.png


Sponsor:

#2 jbadams   Staff   -  Reputation: 8925

Like
0Likes
Like

Posted 20 October 2012 - 01:19 AM

Given this is a technical question rather than off-topic, I'm moving you out of our off-topic forum to one of the technical forums...

Good luck!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS