Try this:
AVICOMPRESSOPTIONS opts = new AVICOMPRESSOPTIONS();
opts.fccType = 0;
opts.fccHandler = 1684633208;
opts.dwKeyFrameEvery = 0;
opts.dwQuality = 0;
opts.dwFlags = 8;
opts.dwBytesPerSecond= 0;
opts.lpFormat = new IntPtr(0);
opts.cbFormat = 0;
opts.lpParms = new IntPtr(0);
opts.cbParms = 3532;
opts.dwInterleaveEvery = 0;
HemantKulkarn wrote:
How to avoid the AVISaveOptions API to pop up the dialog box
29-Oct-06
Hi,
I am writing an application where I convert the set of images to .avi file.
I want to use XviD MPEG4 codec as a default codec. How can I set this as
default codec? In current code I use AVISaveOptions API which pops up a
dialog box and user selects a codec of his choice. How can I avoid this
dialog box?
Regards,
Hemant.
Previous Posts In This Thread:
On Sunday, October 29, 2006 11:30 PM
HemantKulkarn wrote:
How to avoid the AVISaveOptions API to pop up the dialog box
Hi,
I am writing an application where I convert the set of images to .avi file.
I want to use XviD MPEG4 codec as a default codec. How can I set this as
default codec? In current code I use AVISaveOptions API which pops up a
dialog box and user selects a codec of his choice. How can I avoid this
dialog box?
Regards,
Hemant.
On Monday, October 30, 2006 4:01 AM
new wrote:
Re: How to avoid the AVISaveOptions API to pop up the dialog box
Hemant Kulkarni wrote:
Specify the correct FOURCC code when you call AVIMakeCompressedStream:
AVICOMPRESSOPTIONS aco ;
aco.fccType =
aco.fccHandler = mmioFOURCC('X','V','I','D') ; // Select XviD codec
aco.dwKeyFrameEvery =
aco.dwQuality =
aco.dwBytesPerSecond =
aco.dwFlags =
aco.lpFormat =
aco.cbFormat =
aco.lpParms =
aco.cbParms =
aco.dwInterleaveEvery =
hr = AVIMakeCompressedStream(ppsCompressed, psSource, &aco, NULL) ;
Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
Submitted via EggHeadCafe - Software Developer Portal of Choice
Styling WPF UI using Resource Dictionaries
http://www.eggheadcafe.com/tutorials/aspnet/d7aa2411-c4bd-463d-89fe-3a58a615c3d7/styling-wpf-ui-using-reso.aspx