I want to show a list of codecs that are supported by a specified file extension (for example .avi or .mp4).
> What I need, are all codec that are supported > by a AVOutputFormat. There is AVOutputFormat->codec_tag but you are to some degree expected to know what you put into a container. Please explain your exact usecase. Carl Eugen Hi, is there any way to iterate through all codec_tags of an AVOutputFormat without using the private header internal.h? I need that header because AVCodecTag is there. Currently I'm trying something like: auto enumFormat = av_guess_format(nullptr, qPrintable(extension), nullptr ); for (uint32 i = 0; enumFormat->codec_tag && enumFormat->codec_tag[i]; ++i) { auto tag = enumFormat->codec_tag[i]; while (tag->id != AV_CODEC_ID_NONE) { encoder = avcodec_find_encoder(tag->id); if (encoder && encoder->type == AVMEDIA_TYPE_VIDEO && av_codec_is_encoder(encoder)) { //... } ++tag; } } What I need, are all codec that are supported by a AVOutputFormat. Kind regards Steffen Hella Aglaia Mobile Vision GmbH Steffen Roeber Firmware & Tools Treskowstr. 14, D-13089 Berlin Amtsgericht Berlin-Charlottenburg HRB 66976 B Geschäftsführer: Kay Talmi Fon: +49 30 200 04 29– 412 Fax: +49 30 200 04 29– 109 Mail: steffen.roe...@hella.com URL: www.aglaia-gmbh.de URL: www.mobilevision.de 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. 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.
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user