Assigning video codec

New product: VCL components for displaying and controlling IP cameras, webcams, video conferencing, video chats
Post Reply
oliver
Posts: 30
Joined: Mon Aug 28, 2017 4:42 am

Assigning video codec

Post by oliver » Sat Jul 28, 2018 12:46 am

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

Sergey Tkachenko
Site Admin
Posts: 14163
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Assigning video codec

Post by Sergey Tkachenko » Sat Jul 28, 2018 10:45 am

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]);

Post Reply