Skip to content

SetFFmpegAudioFilter

function

Delphi
function SetFFmpegAudioFilter (FilterIndex: LongInt; AudioFilterName: string; Parameters: string): Boolean;
C++Builder
bool __fastcall SetFFmpegAudioFilter(System::LongInt FilterIndex, System::UnicodeString AudioFilterName, System::UnicodeString Parameters);
C#
public bool SetFFmpegAudioFilter(int FilterIndex, string AudioFilterName, string Parameters);
VB.NET
Public Function SetFFmpegAudioFilter(FilterIndex As Integer, AudioFilterName As String, Parameters As String) As Boolean
C++/Qt
BOOL SetFFmpegAudioFilter (int FilterIndex, wchar_t *AudioFilterName, wchar_t *Parameters);

Activates an FFmpeg audio filter.

Note: this feature requires the Datastead RTSP/RTMP/HTTP/ONVIF Source Filter to be installed.

Note: the filter must be an "in place" filter that outputs the same video format and video size as the input format.

Example to perform a voice masking:

VideoGrabber.SetFFmpegAudioFilter(0, "afftfilt", "real='hypot(re,im)':imag='0':win_size=2048:overlap=0.75:win_func=hann");

VideoGrabber.SetFFmpegAudioFilter(1, "asetrate", "52000");