extract audio using mplayer


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.