<< Click to display table of contents >> GetListOfVideoDecoders, GetListOfAudioDecoders, GetListOfVideoEncoders, GetListOfAudioEncoders functions |
The function fill lists of FFmpeg codecs of the specified type
Unit [VCL and LCL] MRVFFMpegLists;
Unit [FMX] fmxMRVFFMpegLists;
function GetListOfVideoDecoders(CodecNames,
CodecDescr: TStrings): Boolean;
function GetListOfAudioDecoders(CodecNames,
CodecDescr: TStrings): Boolean;
function GetListOfVideoEncoders(CodecNames,
CodecDescr: TStrings): Boolean;
function GetListOfAudioEncoders(CodecNames,
CodecDescr: TStrings): Boolean;
The functions fill the lists of CodecNames and CodecDescr (CodecDescr is optional, pass nil if you do not need codec descriptions).
CodecNames is a list of unique codec names that identify codecs.
CodecDescr is a list of codec names that can be shown to a user. Items of this list correspond to items of CodecNames.
You rarely need to use these functions. Normally:
•codecs for video and audio decoding are auto-detected, you do not need to specify them explicitly
•codecs for video and audio encoding are assigned as values of TRVAudioCodec and TRVVideoCodec, and you can check their availability using GetListOfAvailableFFmpegAudioCodecs and GetListOfAvailableFFmpegVideoCodecs procedures.
GetListOfVideoDecoders returns a list of available codecs for video decoding. You can use values in CodecNames to assign TRVCamera.FFMpegProperty.DecodeVideoCodecName.
GetListOfAudioDecoders returns a list of available codecs for sound decoding. You can use values in CodecNames to assign TRVCamera.FFMpegProperty.DecodeAudioCodecName.
GetListOfVideoEncoders returns a list of available codecs for video encoding. You can use values in CodecNames to assign TRVCamRecorder.VideoCodecName.
GetListOfAudioEncoders returns a list of available codecs for sound encoding. You can use values in CodecNames to assign TRVCamRecorder.AudioCodecName and TRVAudioPlayer.EncodeAudioCodecName.
The functions return True if the list of codes is read successfully.