Return to Snippet

Revision: 36523
at March 10, 2011 00:34 by dogrizz


Updated Code
for f in *.flv; do  newname=`echo $f | tr ' ' '_' `;  mv "$f" $newname;  f=$newname;  mplayer $f -vo null -ao pcm:file=tmp.wav; lame -b 320 -q 0 tmp.wav $newname.mp3; rm tmp.wav; done

Revision: 36522
at November 22, 2010 20:40 by dogrizz


Initial Code
for f in *.flv; do  newname=`echo $f | tr ' ' '_' `;  mv "$f" $newname;  f=$newname;  mplayer $f -ao pcm:file=tmp.wav; lame -b 320 -q 0 tmp.wav $newname.mp3; rm tmp.wav; done

Initial URL

                                

Initial Description
Script will extract all flv's or other videos specified to mp3.
You can change *.flv to prob. any other extension.
Tested on *.mp4 and *.flv

Initial Title
extract audio using mplayer

Initial Tags
Bash, linux, convert

Initial Language
Bash