Unified · Split
| @@ -4683,7 +4683,16 @@ This filter logs a message when it detects that the input audio volume is less · 4682 unmodified lines | ||
| 4683 | 4683 | or equal to a noise tolerance value for a duration greater or equal to the |
| 4684 | 4684 | minimum detected noise duration. |
| 4685 | 4685 | |
| 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. | |
| 4687 | 4696 | |
| 4688 | 4697 | The filter accepts the following options: |
| 4689 | 4698 | |
| @@ -187,7 +187,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 186 unmodified lines | ||
| 187 | 187 | s->frame_end = insamples->pts + av_rescale_q(insamples->nb_samples, |
| 188 | 188 | (AVRational){ 1, s->last_sample_rate }, inlink->time_base); |
| 189 | 189 | |
| 190 | − // TODO: document metadata | |
| 191 | 190 | s->silencedetect(s, insamples, nb_samples, nb_samples_notify, |
| 192 | 191 | inlink->time_base); |
| 193 | 192 | |