<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 17 мар. 2020 г. в 22:50, Giuseppe Torelli <<a href="mailto:giutorcom@gmail.com">giutorcom@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Carl,<div><br></div><div>many thanks for replying. I'm really surprised there is no way to get all the encoders linked to a particular container. I was able to use avcodec_find_encoder(28) where 28 is the ID for MPEG-4 Part 14 and I correctly get "libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10" but of course there is also libx265 that encodes a video in the MP4 format. I thought it was possible to get sich a list.</div><div><br></div><div>Many thanks for replying.</div><div>Giuseppe<br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">--</div><div dir="ltr"><div>Youtube: <a href="http://www.youtube.com/giutor73" target="_blank">www.youtube.com/giutor73</a><br></div><div>Instagram: the.italian.dude</div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 17 Mar 2020 at 20:45, Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Di., 17. März 2020 um 20:42 Uhr schrieb Giuseppe Torelli<br>
<<a href="mailto:giutorcom@gmail.com" target="_blank">giutorcom@gmail.com</a>>:<br>
<br>
> I want to fill two combo boxes in a GTK+3 program with the container and its relevant codecs.<br>
<br>
You cannot use AVCodecTag to achieve this, library users are not<br>
supposed to access it.<br>
<br>
FFmpeg does not export information about supported codecs in containers, this<br>
information is not even always available within libavformat, users are allowed<br>
to abuse the library.<br>
<br>
I believe you - as gui author - are responsible to offer compatible<br>
combinations to<br>
your users.<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote><div><br></div><div>I'm not sure if this is completely sane but I'm using this method for testing how FFMpeg can mix codec and container: create memory writing context, prepare writing of container, add single stream with the specific encoding format, try to finish. <br></div><div>If there is any error assume the format is not supported in the container.</div><div> </div></div></div>