On date Tuesday 2008-05-27 19:36:40 +0200, Thomas Rehaag wrote: > > > Stefano Sabatini schrieb: > > > > On date Friday 2008-05-23 15:59:36 +0200, Thomas Rehaag wrote: > > > Stefano Sabatini schrieb: > > > > On date Friday 2008-05-16 15:30:41 +0200, Thomas Rehaag wrote: > > > > > Hi, > > > > > > > > Don't hijack threads. > > > > > > > > > my code has got problems with AC3 audio material in Mpeg2 files. > > > > > avcodec_find_decoder(CODEC_ID_AC3) returns 0. > > > > > Shouldn't libav be able to find the AC3 codec? Or is AC3 encoding > > > > > switched off because of license problems? > > > > > > > > > > I've had a look into ffmpeg's config.mak and found the lines: > > > > > CONFIG_AC3_ENCODER=yes > > > > > > > > > > CONFIG_AC3_PARSER=yes > > > > > > > > > > CONFIG_AC3_DEMUXER=yes > > > > > > > > > > CONFIG_AC3_MUXER=yes > > > > > > > > > > Is there something missing like: > > > > > CONFIG_AC3_DECODER=yes > > > > > > > > > > ? > > > > > > > > Did you register what you want to use when your application starts > > > > (e.g. with av_register_all)? > > > > > > > > > > > > > I used av_register_all(). > > > > > > > > > > Also you can check which components are installed on your ffmpeg > > > > installation trying for example ffmpeg -formats, or reading the output > > > > of your configure line. > > [...] > > > > > > among other things ffmpeg -formats returned: > > > > > > File formats: > > > ... > > > D aac ADTS AAC > > > DE ac3 raw ac3 > > > E adts ADTS AAC > > > ... > > > > > > Codecs: > > > ... > > > D V D aasc > > > EA ac3 > > ^ > > > > OK, so you have an Encoder but not a Decoder. > > Then you need to compile with --enable-libfaad.
Sorry, I was wrong I meant liba52!!! Anyway it looks strange to me, since I have an ffmpeg not compiled with --enable-liba52 yet I have in my -formats: DEA ac3 ATSC A/52 / AC-3 (though I never tested it). Which ffmpeg version are you using? Here I have: [EMAIL PROTECTED] ~> ffmpeg -version FFmpeg version SVN-r13462, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/home/stefano --enable-libschroedinger --enable-libx264 --enable-pthreads --enable-gpl --enable-debug=3 --enable-libtheora --enable-libvorbis --enable-avfilter --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libfaad --enable-libfaac --enable-x11grab --enable-libmp3lame --disable-optimizations --disable-mmx libavutil version: 49.6.0 libavcodec version: 51.57.0 libavformat version: 52.14.0 libavdevice version: 52.0.0 libavfilter version: 0.0.0 built on May 27 2008 09:32:23, gcc: 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) FFmpeg SVN-r13462 libavutil 3212800 libavcodec 3356928 libavformat 3411456 libavdevice 3407872 > configure returned "FAAD test failed". Sourcecode missing? > configure params are: > ./configure --enable-shared --disable-static --enable-memalign-hack > --enable-libfaad So you need --enable-liba52 (have a careful look at configure --help), and the problem here is caused likely by some missing headers (in debian/ubuntu install the corresponding libXXX-dev packages). > > Best Regards, Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
