views:

485

answers:

4

Hi, I need to an algorithm, to write frames (Pictures) into a file, which can be read by some Video-Cutting/Producing-Software to work with.

So I got frames, and I want to give them a input into a function/Method. Let's do i in Java.

How can I do this? Is there a simple way, I can write videofiles without using any systemcodecs?

I just need a uncompressed video with a constant Framerate (25 fps or 50 fps) that will take my true-Color pictures (2D-arrays of Colors), so that I can use that video in my Videoprogramm to work with.

I never found any fileformat that fits to that.

Can You help me?

Greetings from Austria, and thanks. Flo.

+1  A: 

The AVI container format can contain streams of uncompressed video, of which there are many types to choose from. Have a look here http://fourcc.org/ at the RGB and YUV formats, and here http://www.alexander-noe.com/video/documentation/avi.pdf for details on the AVI file format.

xahtep
+2  A: 

Depending on the program you want to use to further process your movie you can also simply create PNGs (or TGAs or BMPs) for the single frames. VirtualDub e.g. can use images as frames for a movie.

Bombe
A: 

Here's Flo again:

Thank You for the suggestions. I already got a programm, that takes pictures as frames together to a video. But I want to do that in my own program.

Does anybody of you know exsamples of code, where something like that is done? I'm already looking for 2 years for samples of code for that topic, but i seems to be a very closed kept secret to me.

I could read any code - pascal, assembler, c, c++, java, c#, ... basic, cobol, ... but i never found a pice of code producing a videofile.

Maybe there is someone out there, reading this, and who is brave enough to put some code into the public.

A: 

Hi Flo,

you may want to have a look at: http://www.codeproject.com/KB/audio-video/avifilewrapper.aspx

HTH