FFmpeg
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 independent_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.

◆ duration

double SilenceDetectContext::duration

minimum duration of silence until notification

Definition at line 38 of file af_silencedetect.c.

◆ 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.

◆ channels

int SilenceDetectContext::channels

number of channels

Definition at line 40 of file af_silencedetect.c.

◆ independent_channels

int SilenceDetectContext::independent_channels

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

Definition at line 41 of file af_silencedetect.c.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ time_base

AVRational SilenceDetectContext::time_base

time_base

Definition at line 46 of file af_silencedetect.c.

Referenced by update().

◆ 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.


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