Skip to main content

How to set the audio bitrate using FFmpeg

· One min read

Setting up

First make sure you have FFmpeg installed. Follow this guide if you haven't already:

https://docs.tdarr.io/blog/how-to-install-ffmpeg

Running the CLI

To set the audio bitrate of a stream using FFmpeg, use the -b:a flag. For example, to set the bitrate of the first audio stream in the example file to 128k, use the following:

ffmpeg -i "C:\Transcode\input.mkv" -map 0 -c copy -b:a:0 128k "C:\Transcode\output.mkv"

To set the bitrate of the second audio stream to 256k, use the following:

ffmpeg -i "C:\Transcode\input.mkv" -map 0 -c copy -b:a:1 256k "C:\Transcode\output.mkv"

You can automate this process on your files using Tdarr

info

Get started using Tdarr transcode automation for free with this link:

https://tdarr.io/download/