A simple Youtube to mp3


This will extract yhe music of all Flash video you have downloaded  with konqueror or arora or or or.., they are on /tmp so it will select every file that starts with Flash***

and it uses mencoder to extract the sound track. good bye😀

#!/bin/bash

shopt -s extglob # turned extglob on
a=$(kdialog  --inputbox "Please insert a name"  Global-Name --title "Give me a name")

b=1

c=$(kdialog  --getexistingdirectory  $HOME --title "Give me a Output directory")

kdialog  --passivepopup "Work in progress "

for file in  /tmp/+(Flash)* ; #this should filter names and extglob is on

###########################################################################

###########################################################################

do mencoder $file -ovc raw -oac mp3lame -of rawaudio -o "$c"/"$a"-$b.mp3

############################################################################

############################################################################

b=$(($b+1))

done

kdialog  --passivepopup "All music is on $c "

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

%d bloggers like this: