Tag Archives: FFmpeg

(FFmpeg) How to Remove Audio From a Video?

Although this next command isn’t exactly a filter, it’s still useful to know how to remove or mute, audio in an MP4. Below is the quickest way to remove audio from any form of video using the ​-an​ option: Tip:​ ​-an​ indicates no audio output. Documentation https://ffmpeg.org/ffmpeg-all.html#Examples

(FFmpeg) How to Add a High-Pass Filter to an Audio Track?

A high-pass filter is an audio filter that cuts off frequencies that are lower than the desired cutoff frequency. This is often used to cut out bass from an audio source while leaving the treble side of the audio. The filter in FFmpeg is called highpass and is used by setting the desired cut off […]

(ffmpeg) How to Add a Low-Pass Filter to an Audio Track?

A low-pass filter is an audio filter that cuts off frequencies that are higher than the desired cutoff frequency. This filter is popular in music production as it can be used to soften audio or remove undesired noise.  With FFmpeg the filter lowpass is used by setting the desired cutoff frequency in Hz. In this […]

How to install flite / flitevox for FFmpeg?

Flitevox or Flitelib is an open source small run time speech engine. Pass it text and create an audio file with a robot saying it. Really cool and useful for some projects. Flitelib is not a native filter available in FFmpeg build nor inside the source. Although the documentation states that –enable-libflite is required for […]

(FFmpeg) How to Generate Text to Speech Audio?

Tip: You’ll need to enable –enable-libflite for this filter to work.  Generating text to speech is a great feature to have locally on a computer. From using it in a YouTube video to making memes on Twitter, once you learn this filter, you’re creating content at new speeds. There are two methods to set text […]

How to Generate an Audio Tone in FFmpeg?

FFmpeg also has the ability to generate sounds or tones natively. With the right kind of scripting you could make chiptune like music straight from the terminal. In this example, generating a single 2000Hz sound for 10 seconds is enough for now: A new argument, lavfi, needs to be introduced here as this time there […]

(FFmpeg) How to Change the Pitch / Sample Rate of an Audio Track (Mp3)?

Changing the pitch of an audio track means the tempo stays the same but the audio pitch increases/decreases. There isn’t a native way to change the pitch without also changing the playback speed. Luckily, chaining the atempo and asetrate filters together can achieve this effect. In this example, the pitch of the audio decreases by […]

(FFmpeg) How to Change the Tempo of an (Mp3) Audio Track?

Changing the tempo of an audio file is easy with atempo. This filter only accepts one value, a number between 0.5 and 100. In this example, the audio tempo is increased by 50%: So how does 1.50 equal 50%? That’s because any value above 1.0 will increase the tempo and any value below 1.0 will […]

(FFmpeg) How to Add an Echo to an Audio Track?

Adding an echo (or reflected sound) to an audio track is a great way to add more ambience or smoothness to a choppy playback. It’s a personal desired effect but for how simple it is to use, it’s a nice filter to have in the back pocket. Here aecho uses gain, delays and decays make […]

(FFmpeg) How to normalize audio?

Ever get an audio file that just isn’t loud enough but when the volume is edited it peaks? The solution for this problem is to run the audio through a normalization algorithm. Normalization with loudnorm, uses a true peak loudness to increase the maximum volume for each bit. For audio signals on radio and tv […]