Created
April 8, 2015 01:31
-
-
Save Miliox/816b163fe0e9974dc685 to your computer and use it in GitHub Desktop.
Generate Audio AAC For Profiles
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
| #! /bin/bash | |
| # | |
| # genaac.sh | |
| # Copyright (C) 2015 Emiliano Firmino <emiliano.firmino@gmail.com> | |
| # | |
| # Distributed under terms of the MIT license. | |
| # | |
| aac_enc() { | |
| # $1 - audio input | |
| # $2 - aac profile [low, he, he_v2] | |
| # $3 - channel number | |
| # $4 - frequency in KHZ | |
| ffmpeg -i $1 -c:a libfdk_aac -profile:a aac_${2} -ac $3 -ar ${4}k ${1%.*}_ch${3}_${4}k_${2}.mp4 | |
| } | |
| for prof in low he he_v2; do | |
| for ch in 1 2; do | |
| for freq in 24 48; do | |
| aac_enc $1 $prof $ch $freq | |
| done | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment