|
Home > Archive > Linux Debian support > September 2007 > how to add mp3 encoding in sox ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to add mp3 encoding in sox ?
|
|
| Henk Oegema 2007-09-20, 1:14 pm |
| In have been using sox (in SuSE) to convert wav files to mp3 files like
this:
for a in *.wav; do sox "$a" -r 14400 ${a/wav/mp3} resample -ql; done
Now I have changed to Debian4.0r1 and I can't get it working. (yet, I hope)
The error is:
sox: Failed writing filename.mp3: Sorry, no MP3 encoding support.
Question: How can I add MP3 coding support for sox ??
Rgds
Henk
| |
| Henk Oegema 2007-09-20, 7:12 pm |
| Henk Oegema wrote:
> In have been using sox (in SuSE) to convert wav files to mp3 files like
> this:
> for a in *.wav; do sox "$a" -r 14400 ${a/wav/mp3} resample -ql; done
>
>
> Now I have changed to Debian4.0r1 and I can't get it working. (yet, I
> hope)
>
> The error is:
> sox: Failed writing filename.mp3: Sorry, no MP3 encoding support.
>
> Question: How can I add MP3 coding support for sox ??
>
> Rgds
> Henk
On this site:
http://sox.sourceforge.net/
I found (under Release Information)
a Debian package:
i386 13.0.0-1+b1 192.5 kB 460 kB [list of files]
so, I downloaded that one.
asterisk:/home/henkoegema/Desktop# dpkg -i sox_13.0.0-1+b1_i386.deb
(Reading database ... 96588 files and directories currently installed.)
Preparing to replace sox 13.0.0-1+b1 (using sox_13.0.0-1+b1_i386.deb) ...
Unpacking replacement sox ...
dpkg: dependency problems prevent configuration of sox:
sox depends on libasound2 (>> 1.0.14); however:
Version of libasound2 on system is 1.0.13-2.
sox depends on libc6 (>= 2.5-5); however:
Version of libc6 on system is 2.3.6.ds1-13etch2.
sox depends on libflac8; however:
Package libflac8 is not installed.
dpkg: error processing sox (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sox
asterisk:/home/henkoegema/Desktop#
Aren't the dependencies automatically taken care of?
If not. what is than the purpose of downloading a Debian packages?
Henk
| |
| Mumia W. 2007-09-20, 7:12 pm |
| On 09/20/2007 03:16 PM, Henk Oegema wrote:
> [...]
>
> asterisk:/home/henkoegema/Desktop# dpkg -i sox_13.0.0-1+b1_i386.deb
> (Reading database ... 96588 files and directories currently installed.)
> Preparing to replace sox 13.0.0-1+b1 (using sox_13.0.0-1+b1_i386.deb) ...
> Unpacking replacement sox ...
> dpkg: dependency problems prevent configuration of sox:
> sox depends on libasound2 (>> 1.0.14); however:
> Version of libasound2 on system is 1.0.13-2.
> sox depends on libc6 (>= 2.5-5); however:
> Version of libc6 on system is 2.3.6.ds1-13etch2.
> sox depends on libflac8; however:
> Package libflac8 is not installed.
> dpkg: error processing sox (--install):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> sox
> asterisk:/home/henkoegema/Desktop#
>
>
> Aren't the dependencies automatically taken care of?
> If not. what is than the purpose of downloading a Debian packages?
>
> Henk
>
>
The dependencies are automatically taken care of--when you're installing
packages that are meant for your Debian distribution, and when you're
using apt-get or aptitude to install. But it looks like you're trying to
install a Lenny package onto an Etch system; that won't work.
The Sourceforge web site suggests that an add-on library is needed to
enable mp3 on sox. Perhaps you only need to install that library. Read
the documents in /usr/share/doc/sox.
Or you could take the source from Sid and compile it.
| |
| Kai-Martin Knaak 2007-09-20, 7:12 pm |
| On Thu, 20 Sep 2007 20:16:48 +0000, Henk Oegema wrote:
> dpkg: dependency problems prevent configuration of sox:
> sox depends on libasound2 (>> 1.0.14); however:
[...]
> Aren't the dependencies automatically taken care of?
They are. But the package manager cannot magically provide versions of
libs that are not in the repository known to him. Look at the messages
you got. At some point it tells you:
> sox depends on libc6 (>= 2.5-5); however:
> Version of libc6 on system is 2.3.6.ds1-13etch2.
If you want this dependency to resolved, you should give to the package
manager access to a repository that contains a version of libc6 greater
than 2.5-5 . I this particular case it would be sufficient to add
deb ftp://debian.tu-bs.de/debian/ testing contrib main non-free
to the list of repositories in /etc/apt/sources.list
The missing library libflac8 is also missing in etch but included in
lenny/testing.
> If not. what is
> than the purpose of downloading a Debian packages?
The messages you see are the results of the dependencies taken care of.
If the package manager would ignore them and install anyway, the
appluication would most likely crash.
Why don't you install sox from the Debian repository your box uses,
anyway? If you really need sox v13.0 rather than sox v12.17 from sarge,
I'd recommand to add lenny/testing to your list of repository and let the
package manager resolve the dependencies.
---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
| |
| Kai-Martin Knaak 2007-09-20, 7:12 pm |
| On Thu, 20 Sep 2007 22:02:25 +0000, Kai-Martin Knaak wrote:
>
> They are. But the package manager cannot magically provide versions of
> libs that are not in the repository known to him.
In addition dpkg just tells you about unresolved dependencies but does
not try to resolve them. Use apt-get or aptitude for this kind of magic.
---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
| |
|
| Henk Oegema <henk@oegema.com> writes:
>In have been using sox (in SuSE) to convert wav files to mp3 files like
>this:
>for a in *.wav; do sox "$a" -r 14400 ${a/wav/mp3} resample -ql; done
>Now I have changed to Debian4.0r1 and I can't get it working. (yet, I hope)
>The error is:
>sox: Failed writing filename.mp3: Sorry, no MP3 encoding support.
>Question: How can I add MP3 coding support for sox ??
MP3 is a proprietary patented protocol, and they do not allow people to
encode without paying them royalties. Debian takes such proprietary stuff
seriously.
There does exist something called lame, which was developed in countries
where the mp3 was not patented. You can do one of four things.
a)If you live in the USA, obey the patent law and find an encoder which has
paid the license fees.
b) Break the law, open yourself up to a patent infringement suit and
incorporate lame into sox.
c) If you do not live in the USA (or rather a jurisdiction where mp3 is not
patented, incorporate lame into sox and do not
worry.
d) Use ogg vorbis, which is not patented and is free for anyone to use.
man sox
" MP3 support in SoX is optional and requires access to either
or both the external libmad and libmp3lame libraries. To see
if there is support for Mp3 run sox -h and look for it under
the list of supported file formats as "mp3"."
>Rgds
>Henk
| |
| Henk Oegema 2007-09-21, 7:12 pm |
| Kai-Martin Knaak wrote:
> Why don't you install sox from the Debian repository your box uses,
> anyway?
I finally managed to remove my installed sox and want to start all over
again.
What you propose(Why don't you install sox from the Debian repository your
box uses) is that : apt-get install sox ??
And after that:How do I add mp3 support? (I'm only a beginner :-) )
> If you really need sox v13.0 rather than sox v12.17 from sarge,
I don't care which sox version I'm using, as long as I can convert wav to
mp3. 
> I'd recommand to add lenny/testing to your list of repository and let the
> package manager resolve the dependencies.
>
Henk
| |
| AJackson 2007-09-22, 1:17 am |
| On Sep 21, 9:12 pm, Henk Oegema <h...@oegema.com> wrote:
> Kai-Martin Knaak wrote:
>
> I finally managed to remove my installed sox and want to start all over
> again.
> What you propose(Why don't you install sox from the Debian repository your
> box uses) is that : apt-get install sox ??
> And after that:How do I add mp3 support? (I'm only a beginner :-) )> If you really need sox v13.0 rather than sox v12.17 from sarge,
>
> I don't care which sox version I'm using, as long as I can convert wav to
> mp3. 
>
>
> Henk
Try add this into file /etc/apt/source.list.d/10-I-know-what-I-do-I-
want-MP3.list
# Add contrib and non-free
#
deb http://ftp.debian.org/debian etch contrib non-free
deb-src http://ftp.debian.org/debian etch contrib non-free
#
# eof
#
The do 'sudo aptitude update' and 'sudo aptitude install lame' or
something like that.
You could also try to add this inte /etc/apt/source.list.d/debian-
multimedia-etch.list
########################################
##########
#
# Extra multimedia packages Debian
# from http://www.debian-multimedia.org/
#
##############################
#
# Etch
#
# Need to add key for debian-multimedia (or the key package for debian-
multimedia)
# Add key for a repository
# gpg --recv-keys <key number>
# gpg --export | sudo apt-key add -
#
deb http://www.debian-multimedia.org etch main
deb-src http://www.debian-multimedia.org etch main
# Mirror:
#deb http://ftp.sunet.se/pub/os/Linux/di...bian-multimedia
etch m
ain
#deb-src http://ftp.sunet.se/pub/os/Linux/di...bian-multimedia
etch m
ain
#
# eof
#
This will bring more non-free stuff into your debian.
|
|
|
|
|