Wed Nov 4 15:05:12 CET 2009
ffmpeg external codecs
does ffmpeg have an mp3 encoder?
no : use lame
ac3, aac, vorbis are built-in
apparently all configuration data is stored in the AVContext struct.
the ffmpeg code is quite error prone.. a bit of abstraction around it
next: write encoded audio to buffer. there is no data structure for
audio - just a flat array of short int.
int avcodec_encode_audio(AVCodecContext *avctx,
const short *samples);