Solved

Creating AVI movies from BMPs and WAVs

Posted on 1997-05-17
16
314 Views
Last Modified: 2010-04-04
How ( if ) can I create AVI compressed movie files from a sequence of pictures ( BMP or whatever ) and audio files
(WAV or whatever ) ?
Ofcourse, I wish to synchronize the sound with the pictures... and create the movie on runtime.
0
Comment
Question by:nir_l
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
  • 3
16 Comments
 

Author Comment

by:nir_l
ID: 1336385
I already found a component which creates AVIs from a sequence
of BMPs. I can EMail it to you if you leave me a thread at
nir_l@inter.net.il

All replies would be gr8ly appriciated...
0
 
LVL 2

Expert Comment

by:gysbert1
ID: 1336386
You should have a look at the Video for Windows SDK. It contains all the info you need to use the AVICAP.dll which let you do such things.

Compression will depend on the codec's you have installed. Download video for windows somewhere if you have not already ...
0
 

Author Comment

by:nir_l
ID: 1336387
Edited text of question
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:nir_l
ID: 1336388
Where's the Video for Windows SDK can be found? Does it have a VCL delphi supporT?
0
 
LVL 2

Expert Comment

by:gysbert1
ID: 1336389
The SDK is available online at the microsoft site (www.microsoft.com/msdn)

I am using a 1994 version at the moment and it does not have any delphi support :^(. It does come with a .VBX though. If you read the SDK you should be able to call the DLL's directly without any problems.

Working with dll's are not all that simple so if you have not done this before it might be better to try another solution (maybe a component from who knows where).

Have a look at the SDK, they might have added delphi support. I am sure they added a .OCX . There are of course lots of applications that do this if you do not need the functionality in you application but only need to create an .AVI ...
0
 
LVL 3

Accepted Solution

by:
mheacock earned 100 total points
ID: 1336390
Working with the Video for Windows SDK is not trivial.

I have all the necessary .H files for the VfW converted to
Delphi and I have done some work with it.  Mainly
doing the reverse of what you want...extracting .BMP and
.WAV.

Anyhow, if you want the code, send e-mail.

I require a high grade before send though, since there is
a HIGH tendency for folks not to grade on the Experts-Exchange.
An A grade is required.

I have a flawless record for sending what I say I'll send.
0
 

Author Comment

by:nir_l
ID: 1336391
mheadcock,
I also don't have the VFW SDK and I guess it also cost something... Could you tell me its d/l address or
sth?
0
 

Author Comment

by:nir_l
ID: 1336392
mheadcock,
I also don't have the VFW SDK and I guess it also cost something... Could you tell me its d/l address or
sth?
If it's free ( I realy don't know about it ) then
you may send it to me to nir_l@inter.net.il
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336393
Mine came with the MSDN subscription.  You can probably download it for free from the MS website.  They have an SDK section.

Tell me if you were able to download/find it.  If you can't find it, then you might as well give up.  Maybe purchase an MSDN subscription?

Anyhow, I cannot send you what I have.  If you have the

You probably already have the DLLs on your system...you are simply lacking the docs.

0
 
LVL 2

Expert Comment

by:gysbert1
ID: 1336394
Mheacock

Sorry to bother but I am trying to capture video from a VB SE100 using Delphi. Using MCI at the moment but the speed is horrible (380ms/frame). I have to capture to DIB since I run a compression scheme unsupported by AVI CODEC's.

If you have any idea how to speed this up, let me know and I will  post it as a question ...

nir_l

Accept his answer, he knows what he is talking about. Even after I got the SDK I still struggled to get everything going. It gives you all the info you need but it is not all that clear.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336395
Never heard of a VB SE100.  A video capture board obviously.

What video format does the board naturally support?  MPEG?
I'm presuming it is an old board if it does not come with
a compression codec for AVI?

How fast is your system?  If slower than a P66, I'd immediately
suggest something faster.

I don't think I'd be much help...never done any 'real-time'
video capture.  All I've done was for a project where I was
experimenting with a new video compression format (great
compression ratio [1:256], great decompression, pretty good
image but lousy compression [10 minutes per frame on a Dec Alpha]).
All I ever captured was uncompressed, true-colour AVI.  You'd
never guess how large a one minute uncompressed true-colour
AVI recorded at 30 frames/second is?

I've also never used MCI.  I heard it was sluggish.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336396
nir_l

You could just create the AVI by creating a RIFF file out
of the BMP and WAV files.  The RIFF format is the underlying
format of AVIs (also WAVs).

Though you really wouldn't want to do this.  RIFF is a terribly
complex format with many different variations on how
things can be arranged.  Its very flexible, yet this flexibility
makes it tough to read and write by hand.  I wouldn't even
begin doing something of that magnitude.

So, I'm not really suggesting this as an alternative, but to
inform you that your ONLY option is to somehow get a hold of
the Video for Windows docs.  I'm sure you'll find them at
Microsoft's web site.
0
 

Author Comment

by:nir_l
ID: 1336397
mh

If you can send me what you've done I'll grade your
question as you wished... I didn't do it now because
of some previous commet you wrote about not being
able to send me the meterial.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336398
I've sent the material several times to the address listed above.
I've never received a bounce.

Anyhow, I'll require a grade before I send anything again...
I now figure I am going out of my way...I will send it though...
so do ot worry about that...I have a flawless record here.
0
 

Author Comment

by:nir_l
ID: 1336399
Okay, mh.

I've graded your answer as you wished. I
didn't receive any EMail from you though.
Please do sent the meterial to
nir_l@inter.net.il

BTW: I couldn't get the Video For Windows SDK on the MS site,
coz it seems to be currently missing ( all the video section ),
so I'd b happy if you send it to me as well.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336400
I cannot send you the Video for Windows SDK stuff.  I believe
I mentioned that above.  You'll have to get it from Microsoft.
If I sent it to you it would be a breach of copyright laws.

I can only send you sample code that uses the SDK and the
VfW DLLs (which you probably already have).  You'll have to
find your own method to obtain the VfW documentation.
I CANNOT AND WILL NOT SEND IT TO YOU.

I will send you the sample Delphi stuff in the next day.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question