Unknown encoder 'libfaac'

前端 未结 2 727
失恋的感觉
失恋的感觉 2020-12-02 22:42

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\'

Error         


        
相关标签:
2条回答
  • 2020-12-02 23:30

    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:

    • FFmpeg Wiki: AAC
    0 讨论(0)
  • 2020-12-02 23:31

    hopefully this helps :

    Download medibuntu repository list: Code:

    sudo wget http://www.medibuntu.org/sources.list.d/lsb_release -cs.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update

    Grab the extras with restricted codecs: Code:

    sudo apt-get install ffmpeg libavcodec-extra-52

    0 讨论(0)
提交回复
热议问题