473,695 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create avi from memory

Hello,

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

Please help me.
thank you.
Jul 22 '05 #1
12 3281
cactus wrote:
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
Jul 22 '05 #2
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.

Jul 22 '05 #3
from which country is it that you inflict this pain which you substitute for
humor??

"Rolf Magnus" <ra******@t-online.de> wrote in message
news:c1******** *****@news.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.

Jul 22 '05 #4
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.publi c.windows.progr ammer.multimedi a (or
some such beast) and you will get a much better response.

Good luck.

cactus wrote:

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

"Rolf Magnus" <ra******@t-online.de> wrote in message
news:c1******** *****@news.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.

Jul 22 '05 #5
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??

Jul 22 '05 #6
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" <ra******@t-online.de> wrote in message
news:c1******** *****@news.t-online.com...
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??

Jul 22 '05 #7
cactus wrote:
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_Memo ry;

int main(void)
{
ofstream data_file("some _name.avi");
if (data_file)
{
data_file.fwrit e(Pointer_To_Me mory,
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_Memo ry 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.l earn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #8
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.

Jul 22 '05 #9
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" <ra******@t-online.de> wrote in message
news:c1******** *****@news.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.

Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7400
by: Lokicer | last post by:
Hi all, i want to create a file in memory and access the memory block like a file(i/o function) in windows 2000. Any hlep are appreciated. Regards, Zheng
20
8109
by: Hemant Shah | last post by:
Folks, I am using DB2 UDB 8.2 on AIX 5.1. How large of a bufferpool can you create? I tried to create a 4GB bufferpool db2 complained that is cannot allocate enogth memory. I have 16GB on this system. # db2 create bufferpool cfgbuffpool immediate size 1048576 pagesize 4096 SQL20189W The buffer pool operation (CREATE/ALTER) will not take effect until
4
5803
by: Sandeep Chikkerur | last post by:
HI, I am writing a an ATL COM component (a "dll" file). This file calls an executable. That executable is created from the "C" language. (Compiled on Windows platform. Using Microsoft Visual Studio to write the "C" code) This executable has to share some data with the dll. So, the shared memory is the best solution. But I don't know how to create a shared memory in "C". Any inputs on this would be of great help
6
2988
by: Michelle Konzack | last post by:
Hello all, I have accidently :-) found 'initlocation' and now I like to know, how many secondary database i can create. I like to do that, because I have a Virtual Webserver and for each VirtualHost I have a local $USER. Now I like to create seperatly secondary databases for each $USER/VHost. Thanks
34
29879
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
0
2608
by: news.microsoft.com | last post by:
Hi guys, This text looks long and complicate but it is not, and I really really need some help here. For the last 24hs I'm trying to resolve this issue (last night I dreamed
3
4657
by: pedrito | last post by:
I've got an app that downloads images off the internet using anywhere from 1-20 threads concurrently (though generally around 4 threads). I have a preview page that shows the images as they're downloading. The threads that do the downloading trigger an event every 32K (the size of the chunks I receive), at which point the images are drawn in the Preview page. To create the images, I create a memory stream from the data and then use...
1
1621
by: DR | last post by:
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers memory limits? e.g. lets say my clr stored procedure is executed by sql server 2005 then it creates 10 threads and each thread builds a giant array on the stack, is the limits of each array limited by sql server or the os? do these clr stored procedures run inside the sql server address space or...
2
1114
by: remya1000 | last post by:
i'm using vb.net application program. i need to create a memory structure like this. or a memory structure like this. when ever i receive a message i need to add that message to this kind of formatted memory structure. The message i receive will be in this format. for example 1: "100,0,Coffee" for example 2: "200,1,plate"
5
6866
by: Nitin Mahajan | last post by:
Guys Is there a way in C# to create a word object directly from a memory stream without passing that to hard disk (file stream). I think it doesn't makes sense to create a file just to read it again in to word object. If some one has some brilliant idea please share. In a nutshell this is what I'm currently doing ByteArray --File Stream --Word Object and this I want to do
0
8639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9120
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3016
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2279
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1980
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.