Posted By

dogrizz on 11/22/10


Tagged

Bash flv linux audio convert mplayer MP4 extraction


Versions (?)

extract audio using mplayer


 / Published in: Bash
 

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

  1. 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

Report this snippet  

You need to login to post a comment.