Solved

Making an AVI file from two streams

Posted on 2002-05-12
6
551 Views
Last Modified: 2013-12-03
I'm trying to use AVISaveV() function to assemble of just written video stream (into some temporary AVI) and external audio (PCM WAV) file.
All goes well when the video stream isn't compressed. I even can create a compressed video in the target AVI using compression options in AVISaveV().
But it takes too large temporary AVI file. I'd like to create a compressed video stream "on-the-fly". And I can do that! But the error occures just when I call AVISaveV with such compressed video stream on input.
What is my mistake? MSDN says nothing about AVISaveV() sources!
0
Comment
Question by:abb1
  • 3
6 Comments
 
LVL 15

Assisted Solution

by:lyonst
lyonst earned 200 total points
ID: 7006490
0
 
LVL 3

Author Comment

by:abb1
ID: 7007002
Oops...
I saw that page!
I haven't any information there about what is the problem in compressed stream writing by AVISaveV() function.
It only says "do not compress twise" But I ofcourse know that even without MSDN :)
I'm compressing only once, but I just wish to compress "on-the-fly"!
And how to use in practice AVIMakeFileFromStreams() function? Can I save the file onto disk with it?
0
 

Accepted Solution

by:
Displacer earned 200 total points
ID: 7350066
Maybe using AVIStreamGetFrame to get bitmap with later use of ICCompress and AVIStreamWrite for each stream will help?
0
 
LVL 15

Expert Comment

by:lyonst
ID: 10678782
Split points and PAQ.

Cheers, T.
0
 
LVL 15

Expert Comment

by:lyonst
ID: 10680999
Thanks..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short film showing how OnPage and Connectwise integration works.

948 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now