SoX가 .flac 파일로 오디오를 녹음하고 싶습니다. 내가 할 때 :
rec -t flac ~/Desktop/myrec.flac
… 다음과 같은 오류가 발생합니다.
rec FAIL formats: no handler for given file type `flac'
‘brew’에서 SoX를 설치했으며 flac 1.2.1이 설치되어 있습니다.
http://sox.sourceforge.net/sox.pdf의 매뉴얼 페이지를 방문 했지만 원하는 정보를 얻지 못했습니다.
.flac 파일에 대한 지원을 추가하려면 어떻게합니까?
OS X 10.9.3에 있습니다.
답변
간단하게 유지하십시오.
다음과 같이 brew를 사용하여 제거하십시오.
brew remove sox
그런 다음 특정 옵션으로 다시 설치하면 나에게 속임수가되었습니다.
brew install sox --with-lame --with-flac --with-libvorbis
--with-lame
MP3를 --with-libvorbis
사용하지 않거나 OGG를 사용하지 않는 경우 옵션 을 제거 할 수 있습니다 .
나는 이것이 누군가를 돕기를 바랍니다.
답변
이 시도:
brew remove libogg flac sox
brew update
brew doctor
brew install libogg flac
brew install sox
libogg와 flac가있는 상태에서 sox를 다시 컴파일하면 FLAC 지원을 찾을 수 있습니다.
~$ brew info sox
sox: stable 14.4.1
http://sox.sourceforge.net/
/usr/local/Cellar/sox/14.4.1_1 (15 files, 2.1M) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/sox.rb
==> Dependencies
Build: pkg-config ✔
Required: libpng ✔, mad ✔
Optional: opencore-amr ✘, libvorbis ✔, flac ✔, libsndfile ✔, libao ✘, lame ✔
==> Options
--with-flac
Build with flac support
--with-lame
Build with lame support
--with-libao
Build with libao support
--with-libsndfile
Build with libsndfile support
--with-libvorbis
Build with libvorbis support
--with-opencore-amr
Build with opencore-amr support