[FFmpeg-user] Possibility to dump AVCodecContext, AVFormatContext fields for a command line?

Robert Krüger krueger at lesspain.de
Fri Jul 18 19:07:39 CEST 2014


On Jul 18, 2014 6:32 PM, "Carl Eugen Hoyos" <cehoyos at ag.or.at> wrote:
>
> Robert Krüger <krueger <at> lesspain.de> writes:
>
> > >> is there any way to see the AVCodecContext, AVFormatContext fields
> > >> used for a given command line other than using a debugger? Maybe a
> > >> compile flag of some sort?
> > >
> > > It is currently not easily possible but could you explain your
> > > usecase?
> > > This would make a patch more likely imo.
> > >
> >
> > The use case is simply when working with the api doing
> > encoding/muxing and running into a problem in many
> > cases the key is some field value in one of those
> > contexts not being set correctly, where correctly is
> > not always obvious (see the posting on libav-user
> > yesterday where you helped me).
>
> I don't think this new feature would have helped you
> in that case.
>
> I am a little surprised that you always mention
> gdb, I personally find printf much easier to use.
> (But that may be just me.)
I have done that as well a few times when I knew what I was looking for but
those two structs have a _lot_ of fields.

>
> I suggest you write a patch yourself, it should be
> trivial and you probably learn something about
> FFmpeg internals.

Fair enough. I'll think about it.


More information about the ffmpeg-user mailing list