Reputation: 447
Is there a readily available documentation or standard for uncompressed video stream? Preferably RGB24. It doesn't matter if it usese RGB or some other color pallete for compression really because there seems to be an abundance of information on the math necessary to convert. What seems to be in short supply is the actual format of the data streams? I'm not sure if it is because it is proprietary or what, but I can not seem to find a standard which would allow me to write a video encoder.
To help make clear what it is that I want. Consider how a single bitmap for an image might be formated in a file. RGBRGBRGBRGB... and so on. What I would have is a single integer representing the image and If I knew how it was encoded I could render it. Now for video we would have an array of these single data streams. And so I could devise some way to encode that. But there wouldn't be a single codec available to interpret my scheme. So I need to know the schema for encoding a video stream into a file.
I am targeting windows. Basically I was able to find good documentation on RIFF's and AVI's a container format. So now I get a 'movi' Chucnk which contains video/audio data chunks. I need a way to encode/decode that. Specifically for uncompressed video. But really any codec that is fully documented would be acceptable.
Upvotes: 1
Views: 3726
Reputation: 4795
AVI supports uncompressed RGB video format. You can set FOURCC to 0x00000000. The properties of the video is then decided by AVI header information. You can see some sample raw AVI files at http://samples.mplayerhq.hu/V-codecs/Uncompressed/
EDIT: It is hard to find proper documentation on how to add any codec within AVI container. I would recommend instead to find a file that works and then to examine its content/structure using tools like RiffPad or AVI-Viewer. Another option is to see how open source tools like VLC create an AVI file with desired codec inside.
Upvotes: 1