Skip to content

Instantly share code, notes, and snippets.

@wteuber
Last active February 3, 2024 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wteuber/30fcc8103736a3f4b1f2d903564a0e06 to your computer and use it in GitHub Desktop.
Save wteuber/30fcc8103736a3f4b1f2d903564a0e06 to your computer and use it in GitHub Desktop.
FFmpeg - Audio Volume Manipulation

Audio Volume Manipulation

ffmpeg -i input.mp4 -af "volume=<volume_level>" output.mp4
input.mp4: The input video file.
-af: Stands for audio filter. This option tells FFmpeg to apply an audio filter.
"volume=<volume_level>": This is where you specify the volume adjustment. <volume_level> can be a positive or negative number, where a positive value increases the volume, and a negative value decreases it.
output.mp4: The output video file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment