IEAVISelectCodec
Declaration
function IEAVISelectCodec(const DefaultCodec: AnsiString = ''): AnsiString;
Description
Displays the Windows Codec Selection dialog. If the user selects a codec it is returned as a FourCC codec string. Otherwise '' is returned.
The dialog is positioned as specified by
SystemDialogCentering (default is centered over the calling form).
DefaultCodec is the FourCC of the codec to select initially (e.g. the current one). Use 'DIB ' for "Full Frames (Uncompressed)".
This can then be used in methods such as
CreateAVIFile.
Example
// Allow the user to change the codec
codec := IEAVISelectCodec( AnsiString( edtCodec.Text ));
if codec <> '' then
edtCodec.Text := string( codec );
Demo
| Demos\VideoCapture\ImagesToAvi\ImagesToAvi.dpr |
See Also
◼CreateAVIFile