[Libav-user] How to access the struct AVCodecTag?
giutorcom at gmail.com
Tue Mar 17 23:17:38 EET 2020
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...
On Tue, 17 Mar 2020 at 20:50, Giuseppe Torelli <giutorcom at gmail.com> wrote:
> Hi Carl,
> 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.
> Many thanks for replying.
> Youtube: www.youtube.com/giutor73
> Instagram: the.italian.dude
> On Tue, 17 Mar 2020 at 20:45, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>> Am Di., 17. März 2020 um 20:42 Uhr schrieb Giuseppe Torelli
>> <giutorcom at gmail.com>:
>> > I want to fill two combo boxes in a GTK+3 program with the container
>> and its relevant codecs.
>> You cannot use AVCodecTag to achieve this, library users are not
>> supposed to access it.
>> FFmpeg does not export information about supported codecs in containers,
>> information is not even always available within libavformat, users are
>> to abuse the library.
>> I believe you - as gui author - are responsible to offer compatible
>> combinations to
>> your users.
>> Carl Eugen
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> To unsubscribe, visit link above, or email
>> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user