FFmpeg  4.0
Data Fields
SilenceDetectContext Struct Reference

Data Fields

const AVClassclass
 
double noise
 noise amplitude ratio More...
 
double duration
 minimum duration of silence until notification More...
 
int mono
 mono mode : check each channel separately (default = check when ALL channels are silent) More...
 
int channels
 number of channels More...
 
int independant_channels
 number of entries in following arrays (always 1 in mono mode) More...
 
int64_t * nb_null_samples
 (array) current number of continuous zero samples More...
 
int64_t * start
 (array) if silence is detected, this value contains the time of the first zero sample (default/unset = INT64_MIN) More...
 
int64_t frame_end
 pts of the end of the current frame (used to compute duration of silence at EOS) More...
 
int last_sample_rate
 last sample rate to check for sample rate changes More...
 
AVRational time_base
 time_base More...
 
void(* silencedetect )(struct SilenceDetectContext *s, AVFrame *insamples, int nb_samples, int64_t nb_samples_notify, AVRational time_base)
 

Detailed Description

Definition at line 35 of file af_silencedetect.c.

Field Documentation

◆ class

const AVClass* SilenceDetectContext::class

Definition at line 36 of file af_silencedetect.c.

◆ noise

double SilenceDetectContext::noise

noise amplitude ratio

Definition at line 37 of file af_silencedetect.c.

Referenced by config_input().

◆ duration

double SilenceDetectContext::duration

minimum duration of silence until notification

Definition at line 38 of file af_silencedetect.c.

Referenced by filter_frame().

◆ mono

int SilenceDetectContext::mono

mono mode : check each channel separately (default = check when ALL channels are silent)

Definition at line 39 of file af_silencedetect.c.

Referenced by config_input(), filter_frame(), and update().

◆ channels

int SilenceDetectContext::channels

number of channels

Definition at line 40 of file af_silencedetect.c.

Referenced by config_input(), and update().

◆ independant_channels

int SilenceDetectContext::independant_channels

number of entries in following arrays (always 1 in mono mode)

Definition at line 41 of file af_silencedetect.c.

Referenced by config_input(), filter_frame(), uninit(), and update().

◆ nb_null_samples

int64_t* SilenceDetectContext::nb_null_samples

(array) current number of continuous zero samples

Definition at line 42 of file af_silencedetect.c.

Referenced by config_input(), filter_frame(), uninit(), and update().

◆ start

int64_t* SilenceDetectContext::start

(array) if silence is detected, this value contains the time of the first zero sample (default/unset = INT64_MIN)

Definition at line 43 of file af_silencedetect.c.

Referenced by config_input(), uninit(), and update().

◆ frame_end

int64_t SilenceDetectContext::frame_end

pts of the end of the current frame (used to compute duration of silence at EOS)

Definition at line 44 of file af_silencedetect.c.

Referenced by filter_frame(), and update().

◆ last_sample_rate

int SilenceDetectContext::last_sample_rate

last sample rate to check for sample rate changes

Definition at line 45 of file af_silencedetect.c.

Referenced by filter_frame().

◆ time_base

AVRational SilenceDetectContext::time_base

time_base

Definition at line 46 of file af_silencedetect.c.

Referenced by filter_frame(), and uninit().

◆ silencedetect

void(* SilenceDetectContext::silencedetect) (struct SilenceDetectContext *s, AVFrame *insamples, int nb_samples, int64_t nb_samples_notify, AVRational time_base)

Definition at line 48 of file af_silencedetect.c.

Referenced by config_input(), and filter_frame().


The documentation for this struct was generated from the following file: