C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Create avi from memory

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
cactus
Guest





PostPosted: Wed Feb 25, 2004 9:18 pm    Post subject: Create avi from memory Reply with quote



Hello,

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

Please help me.
thank you.


Back to top
David Rubin
Guest





PostPosted: Wed Feb 25, 2004 11:39 pm    Post subject: Re: Create avi from memory Reply with quote



cactus wrote:

Quote:
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

--
Andre, a simple peasant, had only one thing on his mind as he crept
along the East wall: 'Andre, creep... Andre, creep... Andre, creep.'
-- unknown

Back to top
Rolf Magnus
Guest





PostPosted: Thu Feb 26, 2004 12:11 am    Post subject: Re: Create avi from memory Reply with quote



cactus wrote:

Quote:
Hello,

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

You have my permission.

Quote:
Please help me.
thank you.

You're welcome.


Back to top
cactus
Guest





PostPosted: Thu Feb 26, 2004 4:41 am    Post subject: Re: Create avi from memory Reply with quote

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



"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote

Quote:
cactus wrote:

Hello,

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

You have my permission.

Please help me.
thank you.

You're welcome.




Back to top
Julie J.
Guest





PostPosted: Thu Feb 26, 2004 6:04 am    Post subject: Re: Create avi from memory Reply with quote

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.

cactus wrote:
Quote:

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

"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote in message
news:c1jdk9$geb$01$2 (AT) news (DOT) t-online.com...
cactus wrote:

Hello,

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

You have my permission.

Please help me.
thank you.

You're welcome.


Back to top
Rolf Magnus
Guest





PostPosted: Thu Feb 26, 2004 2:30 pm    Post subject: Re: Create avi from memory Reply with quote

cactus wrote:

Quote:
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??


Back to top
cactus
Guest





PostPosted: Thu Feb 26, 2004 3:26 pm    Post subject: Re: Create avi from memory Reply with quote

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.

"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote

Quote:
cactus wrote:

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??




Back to top
Thomas Matthews
Guest





PostPosted: Thu Feb 26, 2004 3:49 pm    Post subject: Re: Create avi from memory Reply with quote

cactus wrote:

Quote:
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


Back to top
Rolf Magnus
Guest





PostPosted: Thu Feb 26, 2004 3:55 pm    Post subject: Re: Create avi from memory Reply with quote

cactus wrote:

Quote:
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.

Quote:
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?

Quote:
lost in the sea of mediocrity
are you in pain?

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


Back to top
cactus
Guest





PostPosted: Thu Feb 26, 2004 4:34 pm    Post subject: Re: Create avi from memory Reply with quote

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







"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote

Quote:
cactus wrote:

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.




Back to top
cactus
Guest





PostPosted: Thu Feb 26, 2004 8:07 pm    Post subject: Re: Create avi from memory Reply with quote

Hello,

Thank you very much! I will work from this.

baci

"Thomas Matthews" <Thomas_MatthewsSpitsOnSpamBots (AT) sbcglobal (DOT) net> wrote in
message news:aAo%b.50079$9n2.14055 (AT) newssvr33 (DOT) news.prodigy.com...
Quote:
cactus wrote:

Hello,

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

Please help me.
thank you.



#include #include 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




Back to top
David Harmon
Guest





PostPosted: Fri Feb 27, 2004 12:56 am    Post subject: Re: Create avi from memory Reply with quote

On Thu, 26 Feb 2004 10:26:11 -0500 in comp.lang.c++, "cactus"
<cplusgirl2000 (AT) yahoo (DOT) com> was alleged to have written:

Quote:
mine is a c++ question.

Actually, no, it isn't.

Before you post a question here, it's kind of expected that you will
read the welcome message posted twice per week here in comp.lang.c++ or
available at http://www.slack.net/~shiva/welcome.txt

If you had done so, it would have a big help in determining what is a
C++ question and what is not one. It would also have referred you to
Marshall Cline's C++ FAQ at http://www.parashift.com/c++-faq-lite/ for
more alternative sources of information. You are likewise kind of
expected to check the FAQ before posting.

Your question appears to be more about the .AVI file format, and how you
might construct one, than it is anything about the C++ language. The
answer to that question would be the same in C++, or C, or FORTRAN, or
assembly language, or any of a great many other languages that you might
consider.



Back to top
Jorge Rivera
Guest





PostPosted: Fri Feb 27, 2004 3:57 am    Post subject: Re: Create avi from memory Reply with quote

cactus wrote:
Quote:
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







"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote in message
news:c1l4tc$aka$03$1 (AT) news (DOT) t-online.com...

cactus wrote:


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.





Ah, the wonders of adult conversation!!!

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.