Last active
March 20, 2022 08:12
-
-
Save bobbicodes/3cbdd20ab6767e746f0e6d0f0af114f0 to your computer and use it in GitHub Desktop.
Dynamic audio compression with ffmpeg in Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i 'in.mp4' -af acompressor=threshold=-30dB:ratio=20:makeup=10 -c:v copy out.mp4 |
Using dynaudnorm
:
ffmpeg -i in.mkv -map 0:0 -map 0:1 -map 0:2 -af "dynaudnorm=s=30:m=100:g=15" -c:v copy out.mkv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example with mapping when needing to select specific streams (check info using
ffprobe
):In the above case, the
-map 0:0 -map 0:1 -map 0:2
was necessary for the subtitles to be included. I kinda can't watch Star Trek without subtitles.