Audio silence detector.
More...
#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.
Audio silence detector.
Definition in file af_silencedetect.c.
Value:
int nb_samples, int64_t nb_samples_notify, \
{ \
const
type *p = (
const type *)insamples->data[0]; \
int i; \
\
for (i = 0; i < nb_samples; i++, p++) \
}
This structure describes decoded (raw) audio or video data.
AVRational time_base
Time base.
static av_always_inline void update(SilenceDetectContext *s, AVFrame *insamples, int is_silence, int64_t nb_samples_notify, AVRational time_base)
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
rational number numerator/denominator
Definition at line 96 of file af_silencedetect.c.
AVFILTER_DEFINE_CLASS |
( |
silencedetect |
| ) |
|
static char* get_metadata_val |
( |
AVFrame * |
insamples, |
|
|
const char * |
key |
|
) |
| |
|
static |
Initial value:= {
{ NULL }
}
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
Definition at line 50 of file af_silencedetect.c.
Initial value:= {
{
.name = "default",
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
static int config_input(AVFilterLink *inlink)
Definition at line 186 of file af_silencedetect.c.
Initial value:= {
.name = "silencedetect",
.priv_class = &silencedetect_class,
}
static const AVFilterPad outputs[]
static const AVFilterPad silencedetect_inputs[]
static const AVFilterPad silencedetect_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad inputs[]
static int query_formats(AVFilterContext *ctx)
Definition at line 204 of file af_silencedetect.c.