Page 1 of 1

Assigning video codec

Posted: Sat Jul 28, 2018 12:46 am
by oliver
I understand that the function GetListOfAvailableFFmpegVideoCodecs() fills AList with the available codecs. However AList is a TStrings type. How can one of the values in the list be assigned to TRVCamRecorder.VideoCodec? Can you provide an example?

Oliver

Re: Assigning video codec

Posted: Sat Jul 28, 2018 10:45 am
by Sergey Tkachenko
TRVVideoCodec values are assigned to Strings.Objects, type-casted to TObject.

See the demo in Demos\Recoding\VideoRecorder:

Code: Select all

    RVCamRecorder1.VideoCodec :=
      TRVVideoCodec(cmbVideoCodec.Items.Objects[cmbVideoCodec.ItemIndex]);