0
:
How-To & F.A.Q

 

 

wma to mp3

  
: 0
wma , .
.
PHP:
  1. #!/bin/bash
  2.  
  3. current_directory=$( pwd )
  4.  
  5. #
  6. for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done
  7.  
  8. #
  9. for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
  10.  
  11. # wav mp3
  12. 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
  13.  
  14. #
  15. for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done; rm audiodump.wav
( ).
.
1. , , gedit wmatomp3
2.
PHP:
  1. sudo chmod +x wmatomp3
3. usr/bin
PHP:
  1. sudo mv wmatomp3 /usr/bin
4. lame
PHP:
  1. sudo apt-get install lame
* , mplayer,
PHP:
  1. sudo apt-get install mplayer
5. .wma cd ( , _ )
PHP:
  1. cd /Mystic_collection
6.
PHP:
  1. wmatomp3 imya_fayla.wma
* (*), .wma
PHP:
  1. wmatomp3 *.wma
7. imya_faila.mp3 ( (imya_faila.wma) )
: 1 (: 24 2012 13:09)
 
|
:
, .