History

avfilter/af_silencedetect: document metadata

Limin Wang committed 7 years ago

Commit 0afc1fe1 parent 09581f72 files · +10 −2Browse files

Unified · Split

2 files
  1. doc/filters.texi +10 −1
  2. libavfilter/af_silencedetect.c +0 −1
doc/filters.texi+10−1
@@ -4683,7 +4683,16 @@ This filter logs a message when it detects that the input audio volume is less · 4682 unmodified lines
4683or equal to a noise tolerance value for a duration greater or equal to the4683or equal to a noise tolerance value for a duration greater or equal to the
4684minimum detected noise duration.4684minimum detected noise duration.
4685 4685
4686The printed times and duration are expressed in seconds.4686The printed times and duration are expressed in seconds. The
4687@code{lavfi.silence_start} or @code{lavfi.silence_start.X} metadata key
4688is set on the first frame whose timestamp equals or exceeds the detection
4689duration and it contains the timestamp of the first frame of the silence.
4690
4691The @code{lavfi.silence_duration} or @code{lavfi.silence_duration.X}
4692and @code{lavfi.silence_end} or @code{lavfi.silence_end.X} metadata
4693keys are set on the first frame after the silence. If @option{mono} is
4694enabled, and each channel is evaluated separately, the @code{.X}
4695suffixed keys are used, and @code{X} corresponds to the channel number.
4687 4696
4688The filter accepts the following options:4697The filter accepts the following options:
4689 4698
libavfilter/af_silencedetect.c+0−1
@@ -187,7 +187,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 186 unmodified lines
187 s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples,187 s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples,
188 (AVRational){ 1, s->last_sample_rate }, inlink->time_base);188 (AVRational){ 1, s->last_sample_rate }, inlink->time_base);
189 189
190 // TODO: document metadata
191 s->silencedetect(s, insamples, nb_samples, nb_samples_notify,190 s->silencedetect(s, insamples, nb_samples, nb_samples_notify,
192 inlink->time_base);191 inlink->time_base);
193 192

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t