Skip to main content

Audio Add Track

FFmpeg Builder: Add Add Track

This flow element will add a new audio track to `FFmpeg Builder``.

It will find the best source track (even from ones marked as deleted by previous nodes) to create this new track.

It looks first at language (if specified), then at the number of channels, then by the original order of the tracks in the working file.

It will insert this new track at the index specified. If the index specified is greater than the number of tracks it will be added as the last track.

Source Track Selection

Allows you to specific which track to use as the source track when converting.

Automatic

FileFlows will automatically select the best track based on channels, bitrate, codec and language.

Custom

Allows you to specific exactly the track you wish to use for the source of this new track.

You can specific which track to use based on the Channels, Codec, Language and Title.

PropertyDescription
ChanenlsCan use Math Operations or specific how many channels exactly
CodecCan use String Operations
LanguageWill compare the language specified using the Language Helper which compares languages based on their names and ISO codes, so 'en' will match English and eng
TitleCan use String Operations

If no tracks match the given conditions, then no track will be added and output 2 will be called

Index

The index where to insert the new audio track. 0 based, so to insert the new audio track as the first track set this to 0.

Codec

The codec to use to encode the audio

Channels

The number of channels this new audio track will be.

If you specify more channels than the source, FFMPEG will automatically upmix it.

If you specify fewer channels than the source, FFMPEG will automatically down mix it.

Bitrate

Bitrate of the audio track

Automatic

This leaves the bitrate up to FFmpeg to decide and is the default option.

Same as source

This will use the same bitrate as the original audio.

Bitrate Per Channel

If the bitrate specified should be per channel.

For example if checked and bitrate is set to 100K, and there are 6 channels, then the audio bitrate will be 600K.

Sample Rate

The sample rate to use for the new audio track

Automatic

This leaves the sample rate up to FFmpeg to decide and is the default option.

Same as source

This will use the same sample rate as the original audio.

Language

Optional language code to use. It is recommended (but not mandatory) that a ISO 639-2 code be used.

Will attempt to find an audio track with this language code if not the best audio track will be used.

Filter

Specifies a custom filter to apply to this new audio track.

Example filters:

FilterDescription
volume=2.0Adjusts the audio volume to 200% (twice the original volume).
volume=0.5Reduces the audio volume to 50% (half the original volume).
aecho=0.8:0.88:1000:0.4Adds echo with 1000ms delay and 0.4 decay factor.
acompressor=threshold=-12dB:ratio=3:attack=5:release=50Compresses audio by reducing the dynamic range.
highpass=f=300Applies a high-pass filter that removes frequencies below 300Hz.
lowpass=f=3000Applies a low-pass filter that removes frequencies above 3000Hz.
aformat=channel_layouts=stereoForces the audio output to be stereo, regardless of the input's channel layout.
`pan=monoc0=FL`
afade=t=in:ss=0:d=5Adds a fade-in effect starting at 0 seconds, lasting 5 seconds.
treble=g=5Boosts the treble (high frequencies) by 5dB.
bass=g=-5Reduces the bass (low frequencies) by 5dB.
silenceremove=start_periods=-1:start_threshold=-50dB:detection=peakRemoves silence periods from the audio.
atempo=1.5Speeds up the audio by 1.5x.
asetrate=44100Sets the sample rate to 44.1kHz.
dynaudnormApplies dynamic audio normalization to even out volume levels.
earwaxSimulates the "earwax" effect, which reduces high frequencies.

Remove Title

If the source title should be removed and the track should have no title

New Title

Optional title for the newly created audio track. If left blank the source title will be used


Outputs

  1. Audio track added to FFmpeg Builder Model
  2. No suitable source audio track found to create new audio track from