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
46834683 or equal to a noise tolerance value for a duration greater or equal to the
46844684 minimum detected noise duration.
46854685
4686−The printed times and duration are expressed in seconds.
4686+The printed times and duration are expressed in seconds. The
4687+@code{lavfi.silence_start} or @code{lavfi.silence_start.X} metadata key
4688+is set on the first frame whose timestamp equals or exceeds the detection
4689+duration and it contains the timestamp of the first frame of the silence.
4690+
4691+The @code{lavfi.silence_duration} or @code{lavfi.silence_duration.X}
4692+and @code{lavfi.silence_end} or @code{lavfi.silence_end.X} metadata
4693+keys are set on the first frame after the silence. If @option{mono} is
4694+enabled, and each channel is evaluated separately, the @code{.X}
4695+suffixed keys are used, and @code{X} corresponds to the channel number.
46874696
46884697 The filter accepts the following options:
46894698
libavfilter/af_silencedetect.c+0−1
@@ -187,7 +187,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 186 unmodified lines
187187 s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples,
188188 (AVRational){ 1, s->last_sample_rate }, inlink->time_base);
189189
190− // TODO: document metadata
191190 s->silencedetect(s, insamples, nb_samples, nb_samples_notify,
192191 inlink->time_base);
193192

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