BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AVI Video+Audio

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
ChP
Guest





PostPosted: Thu Jan 11, 2007 8:38 pm    Post subject: AVI Video+Audio Reply with quote



Hello everybody, (sorry for my bad english)

I intend to make a small application the aim is to rotate (90° right or
left) images of AVI files using "DELPHI 6" and the API's of the
"AVIFile32.dll".

I achieve to do so but my problem is about Audio. I am unenable to
include the audio stream picked into the source file to the output file.
Here is the structure of what I have done :

AVIFileOpen(..Output file..);
AVIFileCreateStream(..for the video..);
AVIStreamSetFormat(..for the video..);
for i:= 0 to Nb frames do
AVIStreamWrite(..each frame..);
VIStreamRelease(..video..);
....
AVIFileCreateStream(..for the audio..);
AVIStreamSetFormat(..for the audio..);
AVIStreamWrite(..audio stream..);
AVIStreamRelease(..audio..);
....
AVIFileRelease(..Output file..);

An analysis of the output file shows that it contains 2 streams. one
video and one audio. But when I play this file, I only see images but
there is no sound.

Thank you for your help.

Pierre
Back to top
Patrick
Guest





PostPosted: Tue Jan 16, 2007 7:47 pm    Post subject: Re: AVI Video+Audio Reply with quote



Where's the AVIFile32.dll from??

BTW Don't ever again say "(sorry for my bad english)"
Back to top
ChP
Guest





PostPosted: Wed Jan 17, 2007 2:23 am    Post subject: Re: AVI Video+Audio Reply with quote



Patrick a écrit :
Quote:
Where's the AVIFile32.dll from??

Sorry, it is AVIFil32.dll. It is a Windows API (Windows\System32\..)

Anyway, my problem is solved. It was because I used WAVEFORMAT instead
of WAVEFORMATEX.
Quote:

BTW Don't ever again say "(sorry for my bad english)"

What BTW means ?

Pierre.
Quote:

Back to top
Patrick
Guest





PostPosted: Wed Jan 17, 2007 4:21 am    Post subject: Re: AVI Video+Audio Reply with quote

By The Way

"ChP" <pr.chauveau (AT) free (DOT) fr> escribió en el mensaje
news:45ad3432$1 (AT) newsgroups (DOT) borland.com...
Quote:
Patrick a écrit :
Where's the AVIFile32.dll from??

Sorry, it is AVIFil32.dll. It is a Windows API (Windows\System32\..)

Anyway, my problem is solved. It was because I used WAVEFORMAT instead of
WAVEFORMATEX.

BTW Don't ever again say "(sorry for my bad english)"

What BTW means ?

Pierre.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia 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.