Created
August 19, 2020 10:38
-
-
Save juzam/acd8d0a0f17ad534ccbdb0b1cbbcae30 to your computer and use it in GitHub Desktop.
ffmpeg wrapper to transcode audio to aac format (copying video track)
This file contains 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
#!/bin/bash | |
set -x | |
FULLFILE=$@ | |
EXTENSION=${FULLFILE##*.} | |
EXTENSIONLESS_FILE=$(basename -s .$EXTENSION $FULLFILE ) | |
ffmpeg -i "$FULLFILE" -f matroska -vcodec copy -acodec aac -ac 2 -strict -2 -map 0 -map -0:s "$EXTENSIONLESS_FILE-converted.mkv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment