#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) |
|
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 |
( |
silenceremove |
| ) |
|
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.
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static int config_input(AVFilterLink *inlink)
Definition at line 648 of file af_silenceremove.c.
Initial value:= {
{
.name = "default",
},
}
static int request_frame(AVFilterLink *outlink)
Definition at line 658 of file af_silenceremove.c.
Initial value:= {
.name = "silenceremove",
.priv_class = &silenceremove_class,
}
static const AVFilterPad silenceremove_outputs[]
static av_cold int init(AVFilterContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad silenceremove_inputs[]
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
static av_cold void uninit(AVFilterContext *ctx)
Definition at line 667 of file af_silenceremove.c.