Hey Kwaku,

On Mon, 2003-06-09 at 22:15, Abrokwah, Kwaku wrote:
> I have a beginning to intermediate knowledge of what it entails. 
> I am currently looking for information on how the various jpeg stream are organized
> architectually into the mjpeg file. I am wondering if anyone can point me to 
> documentation
> or a website that talkes about mjpeg and some architecture and implementation.

"MJPEG", do you mean AVI files with a MJPEG stream in them? Well, as I
said, that's just MJPEG in an AVI container, do you'd probably want to
look through Microsoft's or IBM's RIFF/AVI documentation to get a good
fundamental understanding on that.
Or do you mean the MJPEG video strwam on itself? (Really, this is as
simple as a stream can get, it's just a sequence of JPEG images (in YUY2
colorspace), no special markers, nothing).

> I am currently trying to convert YUV still frames to MJPEG. I need to know how others
> are approaching mjpeg... ie what are the headers at the beginning of the mjpeg file 
> and
> what are people doing about varying sizes of the jpeg streams.

That's what the AVI container handles. Every data chunk in a RIFF file
(AVI) is preceeded by an identifying tag (00db for video, 00wb for
audio) and then a 4-byte size value with the least-significant byte
first (so a uint32_t on little-endian systems). Then the data itself.
The data chunks are preceded by the normal AVI header (RIFF header,
vids/strf:vids header and auds/strf:auds header). After the data chunks
usually comes an index of all the data chunks, though this isn't
necesssary.

For YUV-to-MJPEG/AVI, we use the yuv2lav tool, you'd probably want to
look at the sources there to get a good basic understanding of all this.
If you just want to use the tool, take our latest RPM (1.6.1).

HTH,

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to