Questions tagged [libfaac]

libfaac is an open source, cross platform, AAC encoder. Use this tag for any questions related to libfaac; add the `aac` tag when using this tag.

FAAC is an open source, MPEG-4 and MPEG-2 AAC encoder.

Some of the features are

  1. Portable
  2. Reasonably fast
  3. Support AAC-LC, AAC-Main and AAC-LTP

More details at

  1. http://www.audiocoding.com/faac.html
  2. Libfaac page in Wikipedia
  3. Libfaac project page in SourceForge
16 questions
12
votes
1 answer

Unable to convert .mp3 to .m4a using ffmpeg

I am fully aware the legal constraints in using libfaac but this is just for my testing purpose. I have compiled ffmpeg with faac enabled. So when I tried to convert an .mp3 to a .m4a here is the error that I am getting. Please provide a resolution…
rahulg
  • 2,183
  • 3
  • 33
  • 47
7
votes
5 answers

How to encode resampled PCM-audio to AAC using ffmpeg-API when input pcm samples count not equal 1024

I am working on capturing and streaming audio to RTMP server at a moment. I work under MacOS (in Xcode), so for capturing audio sample-buffer I use AVFoundation-framework. But for encoding and streaming I need to use ffmpeg-API and libfaac encoder.…
Aleksei2414904
  • 143
  • 1
  • 2
  • 7
4
votes
0 answers

How to save/encode recorded raw PCM Data as AAC/MP4 format file in Android

i want to save recorder pcm data as aac/mp4 format file. i am using AudioRecord class for recording audio in android. i have success fully saved it as wave file by adding a wave header to raw data. but dont know how to save it as aac/mp4 file,…
4
votes
0 answers

libfaac imposes bitrate limits?

I'm trying to encode some audio on Ubuntu 12.04 Linux. I need to use libfaac (using version 1.28) to encode and I want to encode at a very low bitrate - the total including transport stream overhead must be below 64kbps. The input audio is: PCM,…
lightdee
  • 487
  • 4
  • 11
3
votes
1 answer

libfaac: Queue input is backward in time

I am using libav along with libfaac to encode audio into aac. following is the logic: frames[n] i = 0 ; while (there are frames) { cur_frame = frames[i]; av_encode_audio(frame, ...., &frame_finished); if( frame_finished ) { i++; …
Harit Vishwakarma
  • 2,338
  • 4
  • 21
  • 36
1
vote
1 answer

libfaad2.dll is not a valid win32 application - dependency error kernel32.dll

Win7 Service Pack 1 Matlab 2013b Hello I am trying to include a libfaad2.dll lib (which I got ready compiled) to Matlab so I can use the functions. I try this with the loadlibrary command. But I get the error message libfaad.dll is not a valid…
1
vote
2 answers

ffmpeg carrierwave-video always returns "unknown encoder libfaac"

I can give ffmpeg videos to convert via command line, and it converts them happily, but when I ask it to convert things in rails, it returns "Unknown encoder libfaac" no matter the video I give it. I call it using this line: process encode_video:…
Olga
  • 186
  • 3
  • 15
1
vote
0 answers

Error Cross-compiling libfaac for Android NDK r8d on Mac OS X

I am trying to cross-compile libfaac for android on an mac machine and am running into some difficulty. The Setup Android NDK r8d Mac OS X 10.7.5 (64-bit) libfaac 1.28 I found this link: Android NDK r6b Cross-compiling libfaac for android (linking…
Jannon
  • 113
  • 1
  • 7
0
votes
1 answer

AAC audio files play faster than normal speed

I sampled the raw PCM data from the device, encoded it through libfaac to an audio file in ".aac" format(ADTS format), and when I sampled it in 16KHZ or 41KHZ the encoded ".aac" file played faster than normal. What's the reason? The parameter…
YuanDa.Yu
  • 127
  • 7
0
votes
4 answers

ERROR: libfaac not found while compiling FFMPEG library

I was trying to compile FFMPEG library under ubuntu for android with including all possible codecs. i followed this tutorial http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/. but when i execute ./build_android.sh it gives me this…
SaidTagnit
  • 115
  • 3
  • 14
0
votes
1 answer

mencoder FAAC support on Ubuntu 14.04

I am trying to get FAAC support in mencoder on Ubuntu 14.04 (server). These are the steps I took. apt-get install libfaac-dev libfaad-dev faac faad apt-get install mplayer mencoder After that I run: ldd /usr/bin/mencoder | grep faac No results. …
Tool Man
  • 311
  • 4
  • 13
0
votes
0 answers

how to use self-defined inputSamples for trasforming pcm to aac with facc

I'm trying to transform a live stream with g726 and h264 to mp4. I decode g726 to pcm then use faac to encode pcm to aac. Every g726 audio packet I receive is 320 bytes. After decoding, the pcm size is 1280 bytes, so the sample number is 640. But…
ncubrian
  • 421
  • 1
  • 3
  • 14
0
votes
1 answer

Compile ffmpeg with libfaac on Windows

I'm using ffmpeg, and I need it to have libfaac, and I understand the only way to make that happen is to compile it from source. I read a bunch of tutorials, and installed mingw, but I can't run the commands ./configure or make. Is there something…
Olga
  • 186
  • 3
  • 15
0
votes
0 answers

libfaac encoding weird output

I'm trying to encode a 16-bit RAW PCM file to MPEG-4 MAIN AAC File using libfaac in my C program.I don't know what i'm doing wrong so i get 2 times longer file and in audacity when i record silence it looks like this _| _| _| _| _ when raw file…
hub2
  • 11
  • 1
  • 4
0
votes
0 answers

faacEncOpen why maxOutput bytes is unsigned long*

I'm trying to use libfaac and I'm curious why faacEncOpen() receives maxOutputBytes as unsigned long* as it's only to say how many bytes can write to output buffer. So why it is a pointer?
hub2
  • 11
  • 1
  • 4
1
2