GNOME Bugzilla – Bug 361041
can't play old AAC (m4a) files encoded in iTunes
Last modified: 2006-10-10 06:14:38 UTC
faad on the commandline decodes the file with a couple of warnings (Warning: No standard extension payload allowed in DRM) into a wav file which plays through gst-launch. gst-launch cannot play the m4a file though: %gst-launch-0.10 playbin uri=file:///home/jdiaz/Desktop/Downloads/03Stratagem.m4a --gst-debug="*faad*:5" Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:00.403152000 65566 0x84c8170 LOG faad gstfaad.c:758:gst_faad_sink_event:<faad0> Handling tag event 0:00:01.093238000 65566 0x84c8170 LOG faad gstfaad.c:758:gst_faad_sink_event:<faad0> Handling newsegment event 0:00:01.093614000 65566 0x84c8170 DEBUG faad gstfaad.c:781:gst_faad_sink_event: Got NEWSEGMENT event in GST_FORMAT_TIME, passing on (0:00:00.000000000 - 0:08:06.249070000) 0:00:01.094116000 65566 0x84c8170 DEBUG faad gstfaad.c:289:gst_faad_setcaps:<faad0> channels=2, rate=44100 0:00:01.094334000 65566 0x84c8170 LOG faad gstfaad.c:326:gst_faad_setcaps:<faad0> created fake codec data (44100,2): 0x22 0x10 0:00:01.094610000 65566 0x84c8170 LOG faad gstfaad.c:1114:gst_faad_chain:<faad0> Timestamp on incoming buffer: 0:00:00.000000000, next_ts: 0:00:00.000000000 0:00:01.094939000 65566 0x84c8170 DEBUG faad gstfaad.c:1202:gst_faad_chain:<faad0> decoding error, reopening with faacDecInit2() 0:00:01.095146000 65566 0x84c8170 WARN faad gstfaad.c:1318:gst_faad_chain:<faad0> error: faacDecInit2() failed ERROR: from element /playbin0/decoder/faad0: Could not decode stream. Additional debug info: gstfaad.c(1318): gst_faad_chain (): /playbin0/decoder/faad0: faacDecInit2() failed ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... gstreamer-0.10.10 gstreamer-plugins-faad-0.10.3_2,2 The file can be found at: http://homepage.mac.com/joeldiaz/freebsd/03Stratagem.m4a Encoded with iTunes 4.1.1.54. If I reencode the file with iTunes 7.0.1, the resulting file plays just fine.
This is not a raw AAC file, it's muxed in a quicktime container. This plays fine for me: gst-launch filesrc location=~/data/03Stratagem.m4a ! qtdemux ! faad ! alsasink playbin also plays it correctly. This is with CVS of gstreamer.