HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: hlzhang on 2011-09-28 07:57:55

Title: libfaac+mencoder: cannot set bitrate (want 32 kbps, get 58)
Post by: hlzhang on 2011-09-28 07:57:55
I use libfaac with mencoder,and i found it can't set the bitrate of audio.
My Command :
  mencoder input.avi -ovc copy -oac lavc -lavcopts acodec=libfaac:abitrate=32:aglobal=1 -o  abc.flv

When finished,i check the abc.flv file :
  Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 58 kb/s

But my setting is 32bit. Anyone who can help me to set the bitrate to 32kbps,thanks
Title: libfaac+mencoder: cannot set bitrate (want 32 kbps, get 58)
Post by: smok3 on 2011-09-28 10:40:46
abitrate=32k ?

(just a wild guess from a working ffmpeg example: ffmpeg -i file.avi -vcodec libx264 -crf 21 -preset veryslow -tune film -threads 0 -acodec libvo_aacenc -ab 192k test4.mp4 )
Title: libfaac+mencoder: cannot set bitrate (want 32 kbps, get 58)
Post by: LithosZA on 2011-09-28 15:47:12
I wouldn't recommend using libfaac for anything even at 192Kbit/s. Use Apple's or Nero's AAC encoders instead.
For 32Kbit/s you can use libaacplus so that you can get AAC-HE instead of AAC-LC, or Apple/Nero HE-AAC encoders.