#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/timestamp.h"
#include "audio.h"
#include "formats.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (silenceremove) |
|
static double | compute_peak (SilenceRemoveContext *s, double sample) |
|
static void | update_peak (SilenceRemoveContext *s, double sample) |
|
static double | compute_rms (SilenceRemoveContext *s, double sample) |
|
static void | update_rms (SilenceRemoveContext *s, double sample) |
|
static av_cold int | init (AVFilterContext *ctx) |
|
static void | clear_window (SilenceRemoveContext *s) |
|
static int | config_input (AVFilterLink *inlink) |
|
static void | flush (SilenceRemoveContext *s, AVFrame *out, AVFilterLink *outlink, int *nb_samples_written, int *ret, int flush_silence) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
static int | request_frame (AVFilterLink *outlink) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ OFFSET
◆ AF
◆ SilenceDetect
◆ ThresholdMode
◆ SilenceMode
Enumerator |
---|
SILENCE_TRIM | |
SILENCE_TRIM_FLUSH | |
SILENCE_COPY | |
SILENCE_COPY_FLUSH | |
SILENCE_STOP | |
Definition at line 43 of file af_silenceremove.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
silenceremove |
| ) |
|
◆ compute_peak()
◆ update_peak()
◆ compute_rms()
◆ update_rms()
◆ init()
◆ clear_window()
◆ config_input()
◆ flush()
◆ filter_frame()
◆ request_frame()
◆ query_formats()
◆ uninit()
◆ silenceremove_options
Initial value:= {
{
"start_duration",
"set start duration of non-silence part",
OFFSET(start_duration_opt),
AV_OPT_TYPE_DURATION, {.i64=0}, 0, INT32_MAX,
AF },
{
"start_threshold",
"set threshold for start silence detection",
OFFSET(start_threshold),
AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, DBL_MAX,
AF },
{
"start_silence",
"set start duration of silence part to keep",
OFFSET(start_silence_opt),
AV_OPT_TYPE_DURATION, {.i64=0}, 0, INT32_MAX,
AF },
{
"stop_threshold",
"set threshold for stop silence detection",
OFFSET(stop_threshold),
AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, DBL_MAX,
AF },
{
"stop_silence",
"set stop duration of silence part to keep",
OFFSET(stop_silence_opt),
AV_OPT_TYPE_DURATION, {.i64=0}, 0, INT32_MAX,
AF },
}
Definition at line 106 of file af_silenceremove.c.
◆ silenceremove_inputs
◆ silenceremove_outputs
◆ ff_af_silenceremove
Initial value:= {
.name = "silenceremove",
.priv_class = &silenceremove_class,
}
Definition at line 671 of file af_silenceremove.c.