- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试安装ffmpeg
$ brew install ffmpeg
$ ffmpeg -i audio.m4a -ar 8000 -ab 12.2k audio.amr
Automatic encoder selection failed for output stream #0:0. Default encoder for format amr (codec amr_nb) is probably disabled. Please choose an encoder manually. Error selecting an encoder for stream 0:0
最佳答案
第 1 步:找到 ffmpeg Homebrew 包的 AMR 安装选项
列出 ffmpeg Homebrew 包的所有安装选项:
$ brew info ffmpeg
ffmpeg: stable 3.2.2 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/3.2.2 (239 files, 50.3M) *
Built from source on 2016-12-14 at 17:43:58 with: --with-opencore-amr
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb==> Dependencies
Build: pkg-config ✔, texi2html ✔, yasm ✔
Recommended: lame ✔, x264 ✔, xvid ✔
Optional: chromaprint ✘, fdk-aac ✘, fontconfig ✘, freetype ✘, frei0r ✘, game-music-emu ✘, libass ✘, libbluray ✘, libbs2b ✘, libcaca ✘, libebur128 ✘, libgsm ✘, libmodplug ✘, libsoxr ✘, libssh ✘, libvidstab ✘, libvorbis ✘, libvpx ✘, opencore-amr ✔, openh264 ✘, openjpeg ✘, openssl ✘, opus ✘, rtmpdump ✘, rubberband ✘, schroedinger ✘, sdl2 ✘, snappy ✘, speex ✘, tesseract ✘, theora ✘, two-lame ✘, wavpack ✘, webp ✘, x265 ✘, xz ✘, zeromq ✘, zimg ✘==> Options
...
--with-opencore-amr
Enable Opencore AMR NR/WB audio format
...
$ brew info ffmpeg | grep amr
--with-opencore-amr
$ brew install ffmpeg --with-opencore-amr
$ ffmpeg -i audio.m4a -ar 8000 -ab 12.2k audio.amr
关于audio - 如何在 OS X 上将 audio.m4a 转换为 audio.amr?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41144655/
我是一名优秀的程序员,十分优秀!