[FFmpeg-user] Compiled latest-git ffmpeg with --enable-decoder=libfaad but then is an unknown decoder

Oren Elrad orenelrad at gmail.com
Sat Sep 3 21:15:05 CEST 2011


Hi all,

Backstory: I'm trying to decode a Quicktime movie and I get a repeated
stream error message until I ctrl-C (see
http://lzone.de/aac+decoding+with+ffmpeg+doesn't+work ). That site
suggest that I use acodec libfaad instead of the built in aac decoder,
so I downloaded and compiled libfaad from latest source and then
recompiled ffmpeg from the latest git like so:

./configure --enable-gpl --enable-nonfree --enable-version3
--disable-dxva2 --enable-libfaac --enable-libxvid --enable-pthreads
--enable-decoder=libfaad --enable-libmp3lame --enable-encoder=libfaad
&& make -j12 install

That completed with no error messages. Now when I try to follow the
instructions there for using libfaad instead of acc, it cannot find it
as a decoder, nor is faad listed anywhere on the -codecs

XXXXX at YYYYYYY:~$ ffmpeg -acodec libfaad -i Most.mov -ss 00:01:00
-vframes 1 test.png
ffmpeg version N-32299-g23a287e, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep  3 2011 21:06:21 with gcc 4.3.2
  configuration: --enable-gpl --enable-nonfree --enable-version3
--disable-dxva2 --enable-libfaac --enable-libxvid --enable-pthreads
--enable-decoder=libfaad --enable-libmp3lame --enable-encoder=libfaad
  libavutil    51. 14. 0 / 51. 14. 0
  libavcodec   53. 12. 0 / 53. 12. 0
  libavformat  53. 10. 0 / 53. 10. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 37. 0 /  2. 37. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Unknown decoder 'libfaad'

Trying without it gives the same symptoms in the lzone.de thread:

XXXXX at YYYYYYY:~$ ffmpeg-i Most.mov -ss 00:01:00 -vframes 1test.png
ffmpeg version N-32299-g23a287e, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep  3 2011 21:06:21 with gcc 4.3.2
  configuration: --enable-gpl --enable-nonfree --enable-version3
--disable-dxva2 --enable-libfaac --enable-libxvid --enable-pthreads
--enable-decoder=libfaad --enable-libmp3lame --enable-encoder=libfaad
  libavutil    51. 14. 0 / 51. 14. 0
  libavcodec   53. 12. 0 / 53. 12. 0
  libavformat  53. 10. 0 / 53. 10. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 37. 0 /  2. 37. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate:
2997.00 (2997/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Most.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2009-11-07 23:30:44
  Duration: 00:43:41.83, start: 0.000000, bitrate: 2302 kb/s
    Stream #0.0(eng): Audio: wmav2 (WMA2 / 0x32414D57), 48000 Hz, 2
channels, s16, 346 kb/s
    Metadata:
      creation_time   : 2009-11-07 23:30:44
    Stream #0.1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p,
480x360, 1952 kb/s, 27.19 fps, 29.97 tbr, 2997 tbn, 2997 tbc
    Metadata:
      creation_time   : 2009-11-07 23:30:44
Incompatible pixel format 'yuv420p' for codec 'png', auto-selecting
format 'rgb24'
[buffer @ 0x13ddfc0] w:480 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x13e0a20] auto-inserting filter 'auto-inserted scaler
0' between the filter 'src' and the filter 'out'
[scale @ 0x13d39a0] w:480 h:360 fmt:yuv420p -> w:480 h:360 fmt:rgb24 flags:0x4
Output #0, image2, to 'test.png':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2009-11-07 23:30:44
    encoder         : Lavf53.10.0
    Stream #0.0(eng): Video: png, rgb24, 480x360, q=2-31, 200 kb/s,
90k tbn, 29.97 tbc
    Metadata:
      creation_time   : 2009-11-07 23:30:44
Stream mapping:
  Stream #0.1 -> #0.0 (wmv3 -> png)
Press [q] to stop, [?] for help
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
[..... GOES ON UNTIL YOU CONTROL+C .... ]
video:0kB audio:0kB global headers:0kB muxing overhead -inf%
Received signal 2: terminating.

Thanks for reading!


More information about the ffmpeg-user mailing list