GetListOfAvailableFFmpegVideoCodecs Procedure

<< Click to display table of contents >>

GetListOfAvailableFFmpegVideoCodecs Procedure

Fills AList with video formats available for encoding.

Unit [VCL and LCL] MRVFFMpegLists;

Unit [FMX] fmxMRVFFMpegLists;

procedure GetListOfAvailableFFmpegVideoCodecs(AList: TStrings;
  const DefaultCaption: String = ''; AddExt: Boolean = False);

This function works only if FFmpeg is available. Otherwise, it simply clears AList.

Each added item has a text describing a codec, and an object equal to the corresponding codec identifier (a TRVVideoCodec value type-casted to TObject).

If DefautCaption is not empty, the procedure uses it to add the first item with the object equal to rvvcDefault. Otherwise, rvvcDefault is not added.

If AddExt = True, the procedure adds possible file extensions to text of each item, in square brackets.

Internally, this function uses GetVideoCodecName and GetVideoFileExts to assign text to items.

 

After calling this function, you can use AList to choose a value for TRVCamRecorder.VideoCodec

 

See also:

GetListOfVideoEncoders