shell script / batch convert video to mp3

telah terinstall ffmpeg

telah terinstall lame atau ubuntu restricted extras

rm Thumbs.db
rename -v 'y/A-Z/a-z/' *
rename -v 's/ /_/g' *.avi

for i in *.avi;
do ffmpeg -i $i -vn -ar 44100 -ac 2 -ab 192 -f mp3 $i.mp3;
done

rm *.avi

rename -v 's/.avi//' *.mp3
rename -v 's/_/ /g' *.mp3
ls

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s