Skip to content

Instantly share code, notes, and snippets.

@seamonkey420
Created January 1, 2025 20:49
Show Gist options
  • Select an option

  • Save seamonkey420/2fa0d49f451d9b187e542b5853efcd20 to your computer and use it in GitHub Desktop.

Select an option

Save seamonkey420/2fa0d49f451d9b187e542b5853efcd20 to your computer and use it in GitHub Desktop.
FFMPEG - Convert audio to aac
:: below will encode audio as AAC (nice for eac3 audio tracks!)
:: move ffmpmeg to c:\windows\system32
::----------------------------------------
setlocal EnableExtensions DisableDelayedExpansion
::get filename and extensions as variables
set _name=%~n1
set _ext=%~x1
ffmpeg -i "%_name%%_ext%" -map 0:v -c:v copy -map 0:a -c:a aac -ac 6 -b:a 640k -map 0:s? -c:s copy "%_name%.NEW%_ext%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment