Created
April 3, 2021 10:22
-
-
Save syniuhin/1d95d3c07f387bd5abb9a7bc9148c29e to your computer and use it in GitHub Desktop.
ffmpeg to aiff
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
source $HOME/scripts/ffgen.sh | |
ffaif "$@" |
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
ffmp3() { | |
for filename_ext in "${@:2:1}" | |
do | |
filename="${filename_ext%.*}" | |
/usr/local/bin/ffmpeg -y -i "${filename_ext}" -ab $1k -map_metadata 0 -id3v2_version 3 "${filename}.mp3" | |
done | |
} | |
ffaif() { | |
for filename_ext in "${@:1:1}" | |
do | |
filename="${filename_ext%.*}" | |
/usr/local/bin/ffmpeg -y -i "${filename_ext}" -write_id3v2 1 -id3v2_version 3 "${filename}.aiff" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment