Solved

Making an AVI file from two streams

Posted on 2002-05-12
6
550 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 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

11 Experts available now in Live!

Get 1:1 Help Now