<tt><font size=3>I want to show a list of codecs that are supported by
a specified file extension (for example .avi or .mp4).</font></tt>
<br>
<br>
<br><tt><font size=3>><i> What I need, are all codec that are supported<br>
</i>><i> by a AVOutputFormat.<br>
</i><br>
There is AVOutputFormat->codec_tag but <br>
you are to some degree expected to <br>
know what you put into a container.<br>
<br>
Please explain your exact usecase.<br>
<br>
Carl Eugen</font></tt>
<br>
<br><tt><font size=3>Hi,<br>
is there any way to iterate through all codec_tags of an AVOutputFormat
<br>
without using the private header internal.h? I need that header because
<br>
AVCodecTag is there.<br>
Currently I'm trying something like:<br>
auto enumFormat = av_guess_format(nullptr, qPrintable(extension), nullptr<br>
);<br>
for (uint32 i = 0; enumFormat->codec_tag && enumFormat->codec_tag[i];
++i)<br>
        {<br>
          auto tag = enumFormat->codec_tag[i];<br>
<br>
          while (tag->id != AV_CODEC_ID_NONE)<br>
          {<br>
            encoder = avcodec_find_encoder(tag->id);<br>
<br>
            if (encoder && encoder->type
== AVMEDIA_TYPE_VIDEO && <br>
av_codec_is_encoder(encoder))<br>
            {<br>
//...<br>
            }<br>
<br>
            ++tag;<br>
          }<br>
        }<br>
What I need, are all codec that are supported by a AVOutputFormat.<br>
<br>
Kind regards<br>
Steffen</font></tt>
<br>
<br>
<br><font size=2 face="sans-serif">Hella Aglaia Mobile Vision GmbH<br>
Steffen Roeber<br>
Firmware & Tools<br>
Treskowstr. 14, D-13089 Berlin<br>
Amtsgericht Berlin-Charlottenburg HRB 66976 B<br>
Geschäftsführer: Kay Talmi<br>
<br>
Fon:  +49 30 200 04 29– 412<br>
Fax:  +49 30 200 04 29– 109<br>
Mail: Steffen.Roeber@hella.com<br>
URL: </font><a href="www.aglaia-gmbh.de"><font size=2 face="sans-serif">www.aglaia-gmbh.de</font></a><font size=2 face="sans-serif"><br>
<br>
URL: </font><a href=www.mobilevision.de><font size=2 face="sans-serif">www.mobilevision.de</font></a><font size=2 face="sans-serif"><br>
<br>
Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe sowie Vervielfältigung,
Verwertung und Mitteilung seines Inhalts ist nur mit unserer ausdrücklichen
Genehmigung gestattet. Alle Rechte vorbehalten, insbesondere für den Fall
der Schutzrechtsanmeldung.<br>
This document has to be treated confidentially. Its contents are not to
be passed on, duplicated, exploited or disclosed without our express
permission. All rights reserved, especially the right to apply for protective
rights.</font>