Go to the source code of this file.
◆ OFFSET
◆ AF
◆ AFR
◆ DEPTH [1/2]
◆ DEPTH [2/2]
◆ SilenceDetect
Enumerator |
---|
D_AVG | |
D_RMS | |
D_PEAK | |
D_MEDIAN | |
D_PTP | |
D_DEV | |
D_NB | |
Definition at line 33 of file af_silenceremove.c.
◆ TimestampMode
◆ ThresholdMode
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
silenceremove |
| ) |
|
◆ init()
◆ clear_windows()
◆ config_input()
◆ config_output()
◆ filter_frame()
◆ activate()
◆ uninit()
◆ silenceremove_options
Initial value:= {
{
"start_periods",
"set periods of silence parts to skip from start",
OFFSET(start_periods),
AV_OPT_TYPE_INT, {.i64=0}, 0, 9000,
AF },
{
"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,
AFR },
{
"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_periods",
"set periods of silence parts to skip from end",
OFFSET(stop_periods),
AV_OPT_TYPE_INT, {.i64=0}, -9000, 9000,
AF },
{
"stop_threshold",
"set threshold for stop silence detection",
OFFSET(stop_threshold),
AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, DBL_MAX,
AFR },
{
"stop_silence",
"set stop duration of silence part to keep",
OFFSET(stop_silence_opt),
AV_OPT_TYPE_DURATION, {.i64=0}, 0, INT32_MAX,
AF },
{
"rms",
"use root mean squared values of samples", 0,
AV_OPT_TYPE_CONST, {.i64=
D_RMS}, 0, 0,
AF, .unit =
"detection" },
{
"ptp",
"use absolute of max peak to min peak difference", 0,
AV_OPT_TYPE_CONST, {.i64=
D_PTP}, 0, 0,
AF, .unit =
"detection" },
{
"dev",
"use standard deviation from values of samples", 0,
AV_OPT_TYPE_CONST, {.i64=
D_DEV}, 0, 0,
AF, .unit =
"detection" },
{
"window",
"set duration of window for silence detection",
OFFSET(window_duration_opt),
AV_OPT_TYPE_DURATION, {.i64=20000}, 0, 100000000,
AF },
{
"write",
"full timestamps rewrite, keep only the start time", 0,
AV_OPT_TYPE_CONST, {.i64=
TS_WRITE}, 0, 0,
AF, .unit =
"timestamp" },
{
"copy",
"non-dropped frames are left with same timestamp", 0,
AV_OPT_TYPE_CONST, {.i64=
TS_COPY}, 0, 0,
AF, .unit =
"timestamp" },
}
Definition at line 129 of file af_silenceremove.c.
◆ silenceremove_inputs
◆ silenceremove_outputs
◆ ff_af_silenceremove
Initial value:= {
.name = "silenceremove",
.priv_class = &silenceremove_class,
}
Definition at line 481 of file af_silenceremove.c.
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.