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.
> D A adpcm_4xm
> ...
>
> Thanks,
HTH, regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user