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.
FFmpeg removed libfaac support in 2016 because the other AAC encoders are better. Use a different encoder.
-c:a aac
)Use the native, built-in FFmpeg AAC encoder:
ffmpeg -i input.wav -c:a aac output.m4a
ffmpeg
versions.ffmpeg -h encoder=aac
.-c:a libfdk_aac
)ffmpeg -i input.wav -c:a libfdk_aac output.m4a
ffmpeg
to use it.ffmpeg -h encoder=libfdk_aac
.-c:a aac_at
)ffmpeg -h encoder=aac_at
.-c:a aac_mf
)ffmpeg
compiled with --enable-mediafoundation
.ffmpeg -h encoder=aac_mf
.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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With