[FFmpeg-devel] [PATCH 3/3] lavd/alsa_audio_enc: implementation of query_codec

Lukasz M lukasz.m.luki at gmail.com
Sat Nov 2 12:18:07 CET 2013

On 2 November 2013 12:00, Nicolas George <george at nsup.org> wrote:

> Le duodi 12 brumaire, an CCXXII, Reimar Döffinger a écrit :
> > I'm not sure what the point of it is.
> > It doesn't cover all possibilities (e.g. AC3, DTS etc. in SPDIF is often
> > supported), while it also contains formats that are
> > almost never supported (especially the reverse endianness
> > formats, but most of the time only AV_CODEC_ID_PCM_S16LE
> > actually works).
> They are the formats supported by the wrapper code, i.e. the ffmpeg CodecID
> values that are mapped to an ALSA format enum value.
> Inside ALSA, it is likely that all formats are supported because the
> devices
> usually contain a "plug" plugin that converts from any format.

I found few that are not supported. At least write header function returns
Regardless it is working for alsa or not, some more generic solution would
be better anyway.
Some sound systems may not provide internal conversion and in this case it
really may be a bit pointless.

More information about the ffmpeg-devel mailing list