URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 89884
[ Назад ]

Исходное сообщение
" Cent OS 5.5 проблема поддержки mp3 в программе sox"

Отправлено Eugeny , 24-Сен-10 15:06 
Приветствую! Столкнулся с такой проблемой:
1. Установлена программа sox:
[root@asterisk-org etc]# sox -h
sox: Version 12.18.1

Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ]

gopts: -e -h -p -q -S -V

fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l/-d -v volume -x

effect: avg band bandpass bandreject chorus compand copy dcshift deemph earwax echo echos fade filter flanger highp highpass lowp lowpass mask mcompand noiseprof noisered pan phaser pick pitch polyphase rate repeat resample reverb reverse silence speed stat stretch swap synth trim vibro vol

effopts: depends on effect

Supported file formats: aiff al alsa au auto avr cdr cvs dat vms gsm hcom la lu maud nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw ub ul uw voc vorbis vox wav wve


2. Там есть строчка - Supported file formats в которой отсутствует формат mp3
3. В мане sox вычитал следующее в разделе FILE TYPES:
.mp3      MP3 Compressed Audio
                 MP3  audio files come from the MPEG standards for audio and video compression.  They are a lossy compression format that achieves good compression rates with a minimum amount of quality loss.  Also see Ogg Vorbis for a simi-
                 lar format.  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".

4. Ясно, что нужно поставить две либы libmad\libmp3lame и подружить их с sox.
5. Поставил  libmad (нашел вот такую доку: [url="http://www.bog.pp.ru/dw/audiolib.html#libmad"]http..., поставил либу)
6. Поставил libmp3lame (Вот тут нашел rpm: [url="http://www.rpmfind.net/linux/rpm2html/search.php?query=libmp... поставил «libmp3lame-3.96.1-4.i386.rpm»

Sox по прежнему не понимает mp3 вывод sox -h остался такой же, как я приводил выше.
Ну и собственно вопрос - как сбороть сию оказию?


Содержание

Сообщения в этом обсуждении
" Cent OS 5.5 проблема поддержки mp3 в программе sox"
Отправлено lavr , 24-Сен-10 15:20 
>[оверквотинг удален]
>simi-
>     lar format.  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".

>
>4. Ясно, что нужно поставить две либы libmad\libmp3lame и подружить их с
>sox.

<skipped>

>Sox по прежнему не понимает mp3 вывод sox -h остался такой же,
>как я приводил выше.
>Ну и собственно вопрос - как сбороть сию оказию?

ясно что кроме указанных библиотек, нужно пересобрать sox с их линковкой.

# ldd /path/sox | grep libmad