Skip to content

Instantly share code, notes, and snippets.

@b9AcE
Last active October 17, 2022 13:21
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 b9AcE/cd506ceb3c182b7c1a427d26e1333e15 to your computer and use it in GitHub Desktop.
Save b9AcE/cd506ceb3c182b7c1a427d26e1333e15 to your computer and use it in GitHub Desktop.
FFmpeg compand DOS batch file
@ECHO off
REM c.bat
REM
REM DOS batch file that takes all the files with the mp4 suffix in the current working directory and runs
REM FFmpeg's "compress and expand"-filter with pre-selected parameters to the FDK-based AAC encoder
REM at 320k requested bitrate on them with output to a subdirectory named "compand".
mkdir compand
for %%f in ("*.mp4") do ffmpeg -i "%%f" -n -filter_complex "compand=attacks=0:points=-80/-900|-45/-15|-27/-9|0/-7|20/-7" -c:a libfdk_aac -b:a 320k -vcodec copy "compand\%%f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment