Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

ubuntu - Unknown encoder 'libfaac'

I'm using carrierwave-video to upload video with my ruby on rails app. But I have this problem when try encode the video:

Unknown encoder 'libfaac'

Errors: no output file created.

I have tried with:

sudo apt-get install libfaac-dev

but I get the same error.

Updated:

After compile ffmpeg, I get the same error:

Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2011-10-13 18:54:50
    encoder         : HandBrake 0.9.5 2011010300
  Duration: 00:06:43.28, start: 0.000000, bitrate: 380 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x600 [SAR 1:1 DAR 8:5], 279 kb/s, 9.25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2011-10-13 18:54:50
      handler_name    : 
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, s16, 97 kb/s
    Metadata:
      creation_time   : 2011-10-13 18:54:50
      handler_name    : 
Please use -q:a or -q:v, -qscale is ambiguous
Unknown encoder 'libfaac'

Errors: no output file created. 
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

FFmpeg removed libfaac support in 2016 because the other AAC encoders are better. Use a different encoder.

Native FFmpeg AAC Encoder (-c:a aac)

Use the native, built-in FFmpeg AAC encoder:

ffmpeg -i input.wav -c:a aac output.m4a
  • Included by default in all ffmpeg versions.
  • Has many features, fairly good quality, supports the most channel layouts and sample rates.
  • See more details and specific options with ffmpeg -h encoder=aac.

Fraunhofer FDK AAC Encoder (-c:a libfdk_aac)

ffmpeg -i input.wav -c:a libfdk_aac output.m4a
  • Provides excellent quality.
  • Supports HE-AAC.
  • Not compatible with the GPL, and therefore not often made available by distributors, so you'll need to compile ffmpeg to use it.
  • See more details and specific options with ffmpeg -h encoder=libfdk_aac.

Apple AudioToolbox AAC (-c:a aac_at)

  • Only available for macOS/iOS users.
  • See more details and specific options with ffmpeg -h encoder=aac_at.

Microsoft Media Foundation AAC (-c:a aac_mf)

  • Only available for Windows users with ffmpeg compiled with --enable-mediafoundation.
  • See more details and specific options with ffmpeg -h encoder=aac_mf.

Also see:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...