Skripta za WMA to MP3

Skripta za WMA to MP3

offline
  • Pridružio: 20 Apr 2003
  • Poruke: 2416
  • Gde živiš: NS

REQUIREMENTS:
mplayer
lame

1. create a text file called wmamp3 in your ~/

2. Open the file in your favorite editor and enter the following

#!/bin/bash

current_directory=$( pwd )

#remove spaces
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done

#remove uppercase
for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done

#Rip with Mplayer / encode with LAME
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i && lame -m s audiodump.wav -o $i; done

#convert file names
for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done

rm audiodump.wav


3. Save the file

4. In a console, give the command

chmod +x ~/wmamp3

5. as root, copy the file to your exec path (/usr/bin or /bin)

6. Now you can change to the directory containing your WMA files and give the command

wmamp3


It usually takes approx 30 seconds to convert a 4 min long file.

well i hope this has helped, if there are any improvements or comments please just let me know.
http://www.linuxquestions.org/questions/answers/352



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 25 Mar 2005
  • Poruke: 1456
  • Gde živiš: Tamo negde

pa ono, jel vazi to za zasticene wma? Smile



offline
  • Pridružio: 20 Apr 2003
  • Poruke: 2416
  • Gde živiš: NS

probaj pa nam javi Wink

Ko je trenutno na forumu
 

Ukupno su 618 korisnika na forumu :: 6 registrovanih, 4 sakrivenih i 608 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: Dorcolac, milenko crazy north, minmatar34957, pacika, voja64, zziko