Create avi from memory

C

cactus

Hello,

I would like to create an avi file directly from memory.

Please help me.
thank you.
 
D

David Rubin

cactus said:
Hello,

I would like to create an avi file directly from memory.

; cat avi
Customs Officer: Anything to declare?
Avi: Yeah, don't go to England.

That's the best I could do from memory...

/david
 
C

cactus

from which country is it that you inflict this pain which you substitute for
humor??
 
J

Julie J.

I'd guess he is a kraut judging from his e-mail address.

The pain is because this isn't the newsgroupd for Windows and/or multimedia
related questions. Post in microsoft.public.windows.programmer.multimedia (or
some such beast) and you will get a much better response.

Good luck.
 
R

Rolf Magnus

cactus said:
from which country is it that you inflict this pain which you
substitute for humor??

from which country is it that you inflict this pain which you substitute
for a C++ question??
 
C

cactus

is it in your land that you substitute the dullest form of wit for
personality?
void of originality
lost in the sea of mediocrity
are you in pain?

mine is a c++ question.
 
T

Thomas Matthews

cactus said:
Hello,

I would like to create an avi file directly from memory.

Please help me.
thank you.

#include <iostream>
#include <fstream>
using namespace std; // just being lazy

unsigned char * Pointer_To_Memory;

int main(void)
{
ofstream data_file("some_name.avi");
if (data_file)
{
data_file.fwrite(Pointer_To_Memory,
SIZE_OF_MEMORY);
data_file.close(); // to be explicit.
}
else
{
cerr << "Error creating avi file";
}
return 0;
}

In the above program, you have to give the variable
Pointer_To_Memory the location of the avi data.
The SIZE_OF_MEMORY should be set to the size of the
avi data.

This program assumes that the data in memory is
already in avi format (what ever that is).

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 
R

Rolf Magnus

cactus said:
is it in your land that you substitute the dullest form of wit for
personality?

I don't know why you think that humor is somehow related to countries.
void of originality

If you don't like it, that's your problem. Anyway, you haven't asked a
question about C++, and you didn't even take the time to formulate it
as a real question at all. You really thought you'd get sensible
answers?
lost in the sea of mediocrity
are you in pain?

I wonder why you're always talking about countries and pain.
 
C

cactus

If you find the question below you, please ignore it.
It appears your ego has some desire (need) to validate your existence.
Spare the world the pain of your (dimmest) wit.


forget everything
anticipate nothing
welcome to now

maybe you can learn to be kind
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top