[MPlayer-users] Problems with AAC (facc-1.23.5) and FFMpeg-20040308
ross.alexander at uk.neceur.com
ross.alexander at uk.neceur.com
Mon Mar 8 16:37:40 CET 2004
I'm trying to get AAC encoding working using the FAAC library (1.23.5).
OS: Linux-2.6.4-rc2
Libc: glibc-2.3.2
gcc: 3.3.3.
There are two problem I have encountered. The first is a name clash
between
faac and libavcodec. This involves fft.c (same file respectively). It
seems that
faac calls fft_init but picks up fft_init from libavcodec. It all goes
horribly wrong.
I have worked around this by prefixing the faac fft functions with faac_.
The other
problem is below. Please check to see if this is okay.
*** libavformat/movenc.c.orig 2004-02-14 19:08:09.000000000 +0000
--- libavformat/movenc.c 2004-03-08 14:34:20.000000000 +0000
***************
*** 958,964 ****
}
if ((enc->codec_id == CODEC_ID_MPEG4 || enc->codec_id ==
CODEC_ID_AAC)
! && trk->vosLen == 0) {
assert(enc->extradata_size);
trk->vosLen = enc->extradata_size;
--- 958,964 ----
}
if ((enc->codec_id == CODEC_ID_MPEG4 || enc->codec_id ==
CODEC_ID_AAC)
! && trk->vosLen != 0) {
assert(enc->extradata_size);
trk->vosLen = enc->extradata_size;
Also output_example abc.mp4 now produces good AAC audio but the video is
seriously broken (attleast, if I play the resulting file using xine).
Still investigating but
here is some output from xine.
make[1]: Leaving directory `/home/ralexand/FFMpeg-20040308/vhook'
mig27 15:26:03$ ./output_example aa.mp4
Output #0, mp4, to 'aa.mp4':
Stream #0.0: Video: mpeg4, 352x288, 25.00 fps, q=2-31, 400 kb/s
Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s
mig27 15:33:30$ xine aa.mp4
This is xine (X11 gui) - a free video player v0.9.23.
(c) 2000-2003 The xine Team.
Marker bit missing before vop_coded
ac-tex damaged at 21 17
Error at MB: 412
concealing errors
Error, header damaged or not MPEG4 header (f_code=0)
header damaged
Marker bit missing before vop_coded
Error, header damaged or not MPEG4 header (f_code=0)
header damaged
Error, header damaged or not MPEG4 header (f_code=0)
header damaged
Marker bit missing before vop_coded
Error, header damaged or not MPEG4 header (f_code=0)
header damaged
Error, header damaged or not MPEG4 header (f_code=0)
If I create the output as mpeg1 first and then convert it then xine does
not
recognise the audio stream but the video is fine.
Output #0, mpeg, to 'aa.mpg':
Stream #0.0: Video: mpeg1video (hq), 352x288, 25.00 fps, q=2-31, 400
kb/s
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 64 kb/s
mig27 15:37:18$ !ff
ffmpeg -y -i aa.mpg -vcodec mpeg4 -acodec mp3 aa.mp4
Input #0, mpeg, from 'aa.mpg':
Duration: 00:00:02.0, bitrate: 1679 kb/s
Stream #0.0: Video: mpeg1video, 352x288, 25.00 fps
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Output #0, mp4, to 'aa.mp4':
Stream #0.0: Video: mpeg4, 352x288, 25.00 fps, q=2-31, 200 kb/s
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mpeg4 @ 0x82d6438]removing common factors from framerate
Press [q] to stop encoding
frame= 125 q=22.7 Lsize= 232kB time=5.0 bitrate= 380.1kbits/s
---------------------------------------------------------------------------------
Ross Alexander "We demand clearly defined
MIS - NEC Europe Limited boundaries of uncertainty and
Work ph: +44 20 8752 3394 doubt."
More information about the MPlayer-users
mailing list