|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Multimedia Questions about media applications, codecs (DVD, music, video, pdf) configuration (usage, bugs) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I think I may be missing something simple here. I wrote a script to take multiple mp3 files and convert them to wav using sox. This script worked perfectly the last time I used it a couple months ago. Today, I found myself needing it again, but now sox will not run. Sox tells me that it cannot find the MAD decoder. I have both libmad and libmad0 installed. I used Yast to remove sox and tried to install sox from the source code. After ./configure, sox's build options summary says there will be no support for mad, despite the fact that I know it's installed.
I tried to downgrade to an older version of mad, but that didn't make any difference. What the heck am I missing? --chriscrutch |
|
|||
|
Code:
$ file test.mp3 test.mp3: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo $ sox -t mp3 test.mp3 test.wav $ file test.wav test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz Code:
rpm -qa sox "libmad*" libmad0-0.15.1b-1.pm.3.1 sox-14.3.0-99.pm.99.4
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
|||
|
My results:
Code:
$ file test.mp3 test.mp3: Audio file with ID3 version 2.3, MP3 encoding $ sox -t mp3 test.mp3 test.wav sox FAIL mp3: could not find MAD decoder library (libmad) sox FAIL formats: can't open input file `test.mp3': Code:
rpm -qa sox "libmad*" libmad0-0.15.1b-10.1 sox-14.3.0-99.pm.99.4 libmad0-32bit-0.15.1b-1.pm.3.1 libmad-0.15.1b-16.1 |
|
|||
|
Well, then you know what to remove and replace.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
|||
|
Changes made, still results in failure:
Code:
$ sox -t mp3 test.mp3 test.wav sox FAIL mp3: could not find MAD decoder library (libmad) sox FAIL formats: can't open input file `test.mp3': Code:
$ rpm -qa sox "libmad*" sox-14.3.0-99.pm.99.4 libmad0-0.15.1b-1.pm.3.1 |
|
|||
|
Code:
cat /etc/SuSE-release
file $(which sox)
rpm -qa --queryformat '%{name}-%{version}-%{arch}\n' "*sox*" "libmad*"
su - -c "zypper se -si |grep -v pattern |grep i586"
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
|||
|
Suse version: x86_64.
Sox version: sox-14.3.0-x86_64 Libmad version: libmad0-0.15.1b-x86_64 586 packages installed: flash-player, libflashsupport, master-boot-code, w32codec-all, wine. None of those packages have x86-64 versions available to install according to Yast and my subscribed repos. --chriscrutch |
|
|||
|
Did you build _anything_ else from source?
Code:
whereis libmad.so.0 libmad.so
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
|||
|
Sorry about the other output.
Code:
$ file $(which sox) /usr/bin/sox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not stripped Code:
$ whereis libmad.so.0 libmad.so libmad.so: /usr/lib64/libmad.so.0 libmad: |
|
|||
|
Now that's interesting:
Code:
whereis libmad.so.0 libmad.so libmad.so: /usr/lib64/libmad.so /usr/lib64/libmad.so.0 libmad: /usr/lib64/libmad.so I presume sox searches for libmad.so (instead of libmad.so.0) and does not find it. But here comes the real fun: Code:
ls -l /usr/lib64/libmad.so lrwxrwxrwx 1 root root 11 12. Jan 01:54 /usr/lib64/libmad.so -> libmad.so.0 rpm -qf /usr/lib64/libmad.so file /usr/lib64/libmad.so is not owned by any package However, some more research shows, that this file has been moved to the package "libmad-devel", so try installing that one and see what that does to your problem.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
![]() |
|
| Bookmarks |
| Tags |
| mad, sox |
| Thread Tools | |
| Display Modes | |
|
|