From 2d6bf9159f2602e1d76c1e0f5728bdab912be30a Mon Sep 17 00:00:00 2001 From: Weaver Date: Fri, 1 Feb 2019 15:53:36 -0800 Subject: [PATCH] change wording --- index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 75cb975..01f080d 100644 --- a/index.html +++ b/index.html @@ -1225,7 +1225,7 @@

Remove silent portion at the beginning of an audio file

ffmpeg -i input_file -af silenceremove=start_threshold=-57dB:start_duration=1:start_periods=1 -c:a your_codec_choice -ar your_sample_rate_choice output_file

This command will automatically remove silence at the beginning of an audio file. The threshold for what qualifies as silence can be changed - this example uses anything under -57 dB, which is a decent level for accounting for analogue hiss.

-

Note: Since this command uses a filter, the audio stream will be re-encoded for the output. If you do not specify an output sample rate and codec this command will use the defaults for your output format. Take care that you are getting your intended results!

+

Note: Since this command uses a filter, the audio stream will be re-encoded for the output. If you do not specify a sample rate or codec, this command will use the sample rate from your input and the codec defaults for your output format. Take care that you are getting your intended results!

ffmpeg
starts the command
-i input_file
path, name and extension of the input file (e.g. input_file.wav)
@@ -1234,7 +1234,6 @@
start_duration=1
This tells the filter how much non-silent audio must be detected before it stops trimming. With a value of 0 the filter would stop after detecting any non-silent audio. A setting of 1 allows it to continue trimming through short 'pops' such as those caused by engaging the playback device, or the recorded sound of a microphone being plugged in.
start_periods=1
This tells the filter to trim the first example of silence it discovers from the beginning of the file. This value could be increased to remove subsequent silent portions from the file if desired.
-c:a your_codec_choice
This tells the filter what codec to use, and must be specified to avoid defaults. If you want 24 bit PCM, your value would be -c:a pcm_s24le.
-
-ar your_sample_rate_choice
This tells the filter what sample rate to use, and must be specified to avoid defaults. If you want 96 kHz, your value would be -ar 96000.
output_file
path, name and extension of the output file (e.g. output_file.wav).
@@ -1247,7 +1246,7 @@

Remove silent portion from the end of an audio file

ffmpeg -i input_file -af areverse,silenceremove=start_threshold=-57dB:start_duration=1:start_periods=1,areverse -c:a your_codec_choice -ar your_sample_rate_choice output_file

This command will automatically remove silence at the end of an audio file. Since the silenceremove filter is best at removing silence from the beginning of files, this command used the areverse filter twice to reverse the input, remove silence and then restore correct orientation.

-

Note: Since this command uses a filter, the audio stream will be re-encoded for the output. If you do not specify an output sample rate and codec this command will use the defaults for your output format. Take care that you are getting your intended results!

+

Note: Since this command uses a filter, the audio stream will be re-encoded for the output. If you do not specify a sample rate or codec, this command will use the sample rate from your input and the codec defaults for your output format. Take care that you are getting your intended results!

ffmpeg
starts the command
-i input_file
path, name and extension of the input file (e.g. input_file.wav)
@@ -1258,7 +1257,6 @@
start_periods=1
This tells the filter to trim the first example of silence it discovers.
areverse
applies the audio reverse filter again to restore input to correct orientation.
-c:a your_codec_choice
This tells the filter what codec to use, and must be specified to avoid defaults. If you want 24 bit PCM, your value would be -c:a pcm_s24le.
-
-ar your_sample_rate_choice
This tells the filter what sample rate to use, and must be specified to avoid defaults. If you want 96 kHz, your value would be -ar 96000.
output_file
path, name and extension of the output file (e.g. output_file.wav).