Skip to content

AudioCompressors

property, read-only

property AudioCompressors: string read GetAudioCompressors;

List of the video compressors (audio codecs) available on the current platform.

Remarks

Used to retrieve a string that contains the list of the audio compressors (audio codecs) available on the current platform.

This list can be assigned to list based controls. E.g.:

ComboBox1.Items.Text := VideoGrabber1.AudioCompressors;ComboBox1.ItemIndex := VideoGrabber1.AudioCompressor;

It is possible to retrieve programmatically the index of a Audio compressor by using the FindIndexInListByName function as follows:

VideoGrabber.AudioCompressor := AudioGrabber.FindIndexInListByName (VideoGrabber.AudioCompressors, 'name of my Audio encoder', false, true);

Note: when the application starts the VideoCompressors and AudioCompressors lists are populated with the codecs currently installed. To refresh the compressor lists after installing/uninstalling codecs without exiting/restarting your application, invoke RefreshDevicesAndCompressorsLists .