Created
July 9, 2013 03:15
-
-
Save iandexter/5954408 to your computer and use it in GitHub Desktop.
ffmpeg conversions
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 | |
# | |
usage() { | |
echo "Usage: `basename $0` filename"; | |
} | |
[ $# -eq 0 ] && usage && exit 65; | |
fn=`basename "$1" .avi` | |
echo "Converting ${1} to ${fn}.mp4" | |
/usr/bin/ffmpeg -i "${1}" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "${fn}.mp4" |
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 | |
# | |
usage() { | |
echo "Usage: `basename $0` filename"; | |
} | |
[ $# -eq 0 ] && usage && exit 65; | |
fn=`basename "$1" .flv` | |
echo "Converting ${1} to ${fn}.mp3" | |
/usr/bin/ffmpeg -i "${1}" -acodec copy "${fn}.mp3" |
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 | |
# | |
usage() { | |
echo "Usage: `basename $0` filename"; | |
} | |
[ $# -eq 0 ] && usage && exit 65; | |
fn=`basename "$1" .m4a` | |
echo "Converting ${1} to ${fn}.mp3" | |
/usr/bin/ffmpeg -i "${1}" -acodec libmp3lame -ac 2 -ab 131072 "${fn}.mp3" |
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 | |
# | |
usage() { | |
echo "Usage: `basename $0` filename"; | |
} | |
[ $# -eq 0 ] && usage && exit 65; | |
fn=`basename "$1" .m4b` | |
echo "Converting ${1} to ${fn}.mp3" | |
/usr/bin/ffmpeg -i "${1}" -acodec libmp3lame -ar 22050 "${fn}.mp3" |
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 | |
# | |
usage() { | |
echo "Usage: `basename $0` filename"; | |
} | |
[ $# -eq 0 ] && usage && exit 65; | |
fn=`basename "$1" .mp4` | |
echo "Converting ${1} to ${fn}.mp3" | |
/usr/bin/ffmpeg -i "${1}" -f mp3 -ab 192000 -vn "${fn}.mp3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment