GetListOfVideoInputDevices, GetListOfAudioInputDevices Functions

<< Click to display table of contents >>

GetListOfVideoInputDevices, GetListOfAudioInputDevices Functions

Fills ShortNames and LongNames with the available non-standard video/audio sources (“devices”) .

Unit [VCL and LCL] MRVFFMpegLists;

Unit [FMX] fmxMRVFFMpegLists;

function GetListOfVideoInputDevices(ShortNames, 
  LongNames: TStrings): Boolean;

function GetListOfAudioInputDevices(ShortNames, 
  LongNames: TStrings): Boolean;

ShortNames or LongNames can be nil. Only non-nil lists are filled.

LongNames receives descriptions of sources.

ShortNames receives identifiers of video/audio sources. Each item may contain several identifiers separated by commas, but usually contains a single value. Video source identifiers returned by GetListOfVideoInputDevices can be assigned to TRVCamera.FFmpegProperty.VideoInputFormat. The results of GetListOfVideoInputDevices are not used in the current version of RVMedia.

 

Note: due to known errors, input formats are disabled for FFmpeg 6.x (avdevice-60.dll), but enabled for older and newer versions.

 

Non-standard video/audio sources identify various platform-specific video/audio sources (such as video grabbing devices). Filename/URL for these devices often does not refer to an actually existing file or a network resource, but has some specific meaning.

Some values that can be returned:

dshow: DirectShow capture

gdigrab: GDI API Windows frame grabber

Additional information: https://ffmpeg.org/ffmpeg-devices.html