<< Click to display table of contents >>
A video (and audio) recording component.
Unit [VCL and LCL] MRVCamRecorder;
Unit [FMX] fmxMRVCamRecorder;
TRVCamRecorder = class (TComponent)
This component can be used to record video and audio files.
The component works only if FFmpeg library is available to the application.
To record video, assign TRVCamera or TRVCamReceiver component to VideoSource property.
To record sound, assign o TRVMicrophone or TRVCamSound or TRVCamReceiver component to AudioSource property.
Recording is started to OutputFileName when you assign True to Active.
Note 1: the properties work slightly different comparing to properties of the same name in TRVCamSender. In TRVCamSender, sound can be taken from TRVCamReceiver assigned to VideoSource, and TRVCamReceiver cannot be assigned to AudioSource.
Note 3: both TRVCamRecorder and TRVAudioPlayer components can record sound files. When connected to TRVCamReceiver, TRVAudioPlayer records all sounds, TRVCamRecorder records sound from the chosen source.
Video format is specified in VideoCodec, audio format in AudioCodec properties (or, if you know the exact codec names, in VideoCodecName and AudioCodecName properties).
Warning: Some video and audio formats may be patent-protected in some countries, and supporting these formats will require from you obtaining licenses from the patent owners.
The following properties define audio parameters: AudioBitrate, AudioSampleRate, AudioChannels, AudioSampleFormat.
The following properties define video parameters: VideoBitrate, VideoFramePerSec, VideoWidth, VideoHeight, VideoAutoSize, VideoEncodeParameters.