<div dir="ltr">Hello again,<div><br></div><div>Olive Video Editor allows the user to choose the codec according to the selected container. I went into the sources and I couldn't find the codec names hardcoded into it. So there must be a way as this editor uses libav*. Unfortunately I couldn't understand how it does...<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><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:50, Giuseppe Torelli <<a href="mailto:giutorcom@gmail.com">giutorcom@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"><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>
</blockquote></div>