LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

AW:[ILUG] Ogg -> MP3

AW:[ILUG] Ogg -> MP3

p.slabiak at linux-services.org p.slabiak at linux-services.org
Tue Jun 20 10:58:28 IST 2006


>
>

Hi,
i've found this script in my script collection, hope it will help you ;=)
#!/bin/sh
# ------------------------------------
# ogg to mp3 converter script
# Requirements:
# - ogg123 (the command!)
# - lame
# ------------------------------------
# step1: ogg to wav
#
for i in *.ogg; do
        input=$(ls $i | sed -e 's/ /_/g')
        out=$(ls $input | sed -e 's/.ogg//g')
        ogg123 -d wav -f "$out.wav" $input
done
#
# step2: wav to mp3
#
for i in *.wav; do
        out=$(ls $i | sed -e 's/.wav//g')
        lame -v -h -b 192 "$i" "$out.mp3"
done
rm *.wav
echo "Conversion done! :)"
#
# end

>I have googled and I must be using the wrong search as all I can find is Win32 apps. Whats the best way to convert a ogg file to an mp3 file?
>
>The nearest I can find is mp32ogg but no ogg2mp3 script
>Thanks
>Jason
>-- 
>Jason.
>
>Fortune :
>hardware stress fractures
>-- 
>Irish Linux Users' Group mailing list
>About this list : http://mail.linux.ie/mailman/listinfo/ilug
>Who we are : http://www.linux.ie/
>Where we are : http://www.linux.ie/map/
--
Pawel Slabiak 
Linux Services
Systemingenieur
http://www.linux-services.org
mail: p.slabiak at linux-services.org

Linux Services - Dienste rund um Linux...




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell