Re: mass conversion from ogg to mp3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/25/09 18:55, ZephyrQ wrote:
> I have a large number of music files (17 gig worth...yes, for all prying
> eyes they are legal...) that I find I need to convert from .ogg to .mp3.
>
> Not that I want to...but between a teenager with an iphone and being
> saddled with cell phone that won't play .ogg...well, you get the picture.
>
> What is the best way to do this? I would prefer a CLI option that I can
> run in the background, but I want to save as much sound quality as I can
> with the transfer...
>
>
>
Try using the following command in the CLI:
for i in *.ogg; do [[ ! -a "${i%ogg}mp3" ]] && oggdec "$i" -o - | lame
- --preset standard - "${i%ogg}mp3" ; done
Haven't tried it myself, but got if off the Ubuntu forums at
http://ubuntuforums.org/archive/index.php/t-299969.html. You'll obvously
have to have lame and oggdec installed.
Alternatively use ffmpeg:
ls *.ogg | while read file; do
echo $file
ffmpeg -i "$file" -acodec mp3 "$file"\.mp3
done
- --
Many thanks
Harry Rickards (GPG Key ID:646ED06A)
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C++++ UL++++ P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+ PE Y+ PGP++ t 5 X R tv-- b+++ DI D---- G e* h! !r y?
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkoa43QACgkQ1kZz3mRu0GoivACeO08iPhJOJLfKllvHIl0SThyf
Pn8AoLJ8grC7hIB6ltkxy1FY3YNeiS7P
=9Ssd
-----END PGP SIGNATURE-----
Reply to: