Quiero que SoX grabe audio en archivos .flac. Cuando lo hago:
rec -t flac ~/Desktop/myrec.flac
…da el siguiente error:
rec FAIL formats: no handler for given file type `flac'
He instalado SoX desde 'brew' y tengo flac 1.2.1 instalado.
Revisé las páginas del manual en http://sox.sourceforge.net/sox.pdf pero no obtuve la información que estaba buscando.
¿Cómo puedo agregar soporte para archivos .flac?
Estoy en OS X 10.9.3
Manteniéndolo simple.
Quitarlo usando cerveza así:
brew remove sox
Luego, instalarlo nuevamente con opciones específicas, así, funcionó para mí:
brew install sox --with-lame --with-flac --with-libvorbis
Es posible que desee eliminar la --with-lame
opción si no va a usar MP3 o --with-libvorbis
si no va a usar OGG.
Espero que esto ayude a alguien.
brew reinstall
en lugar de brew remove
, brew install
.Prueba esto:
brew remove libogg flac sox
brew update
brew doctor
brew install libogg flac
brew install sox
Esto debería volver a compilar sox con libogg y flac presentes, y luego encontrará el soporte 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
brew install libogg flac libsndfile libvorbis
brew remove
comandos separados).
Nombre para mostrar
sox
desde Homebrew (sin opciones adicionales), el soporte de FLAC funcionó de inmediato.