Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84264 - media-video/ffmpeg-0.4.9_p20050226 aac in mp4 decoding problems
Summary: media-video/ffmpeg-0.4.9_p20050226 aac in mp4 decoding problems
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-05 21:12 UTC by PL Hayes
Modified: 2005-08-04 09:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PL Hayes 2005-03-05 21:12:37 UTC
Input #0, mov,mp4,m4a,3gp,3g2, from 'doa_1949_256kb.mp4':
  Duration: 01:23:09.7, start: 0.000000, bitrate: 347 kb/s
  Stream #0.0: Video: mpeg4, 320x240, 29.97 fps
  Stream #0.1: Audio: aac, 48000 Hz, stereo
File 'rubbish.mp4' already exists. Overwrite ? [y/N] Output #0, mp4, to 'rubbish.mp4':
  Stream #0.0: Video: mpeg4, 320x240, 29.97 fps, q=2-31, 200 kb/s
  Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[aac @ 0xb7f1bf28]faac: frame decodinf failed: Array index out of range
--- last line repeated until process killed ---

The output above is from ffmpeg but ffplay does the same thing and with other mp4s I have: the video works but there is no audio - just the error messages. This is ffmpeg built with faac-1.24 and faad2 2.0-r3. I noticed this bug with ffmpeg-4.9_pre1 earlier but just didn't get around to filing a report until now. The error message text was different with 4.9_pre1: "Unexpected channel configuration change". With a different mp4 from a different source, the error messages from this latest version of ffmpeg/ffplay were:

"[aac @ 0xb7f2af28]faac: frame decodinf failed: Gain control not yet implemented"

You probably know this but despite the "faac" in the messages, it is faad doing the (attempted) decoding: when ffmpeg is built without "--enable-faad" the video plays without sound but without error messages either.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-03-05 21:32:59 UTC
this is probably an upstream problem. Can you please help by searching around to see if this is reported elsewhere?
Comment 2 PL Hayes 2005-03-05 22:24:31 UTC
Yes I already had a look and found nothing much except for these:

http://sourceforge.net/mailarchive/forum.php?thread_id=6538087&forum_id=40741

http://lists.suse.com/archive/suse-multimedia/2004-Dec/0360.html

xine-lib plays the files without errors but I think it uses it's own internal faad anyway. I couldn't see anything on the ffmpeg lists or in the audiocoding.com forums that match this problem.  
Comment 3 Chris White (RETIRED) gentoo-dev 2005-03-15 14:39:48 UTC
What about the cvs snapshots?  Still the same issue?
Comment 4 PL Hayes 2005-03-15 17:42:33 UTC
Yes - I tried the latest one available from the ffmpeg project on the day I made this report.
Comment 5 Luca Barbato gentoo-dev 2005-05-06 08:46:21 UTC
please report upstream OR/AND provide a sample
Comment 6 PL Hayes 2005-05-08 03:55:33 UTC
http://www.archive.org/details/doa_1949 
http://www.archive.org/details/isforAto1953
http://www.archive.org/details/volcanoes

[all as 256Kb/s file downloads]

The first is audible in xine but not ffplay. The second is audible in neither. The third yields a tiny fragment of audio in ffplay followed by the usual errors but is fine in xine. The curious thing is that according to the faq at archive.org, all their mp4s contain mp3 encoded audio components - not aac - but both xine and ffplay  seem to be always using faad, so if the audio is mp3, why would it /ever/ work? I really don't understand what is going on and I don't know which upstream project to send a bug report to (if any). Is it a format/codec recognition problem by ffmpeg/xine/faad or a faad bug or something peculiar to the way archive.org has made their mp4s or something I'm doing wrong?   
Comment 7 Luca Barbato gentoo-dev 2005-05-09 15:39:40 UTC
Please report upstream
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-04 09:47:40 UTC
Upstream issue, will see when we have a new snapshot.