[FFmpeg-devel] [PATCH] lavu: Add av_dict_from_string()

Andrey Utkin andrey.krieger.utkin at gmail.com
Thu Feb 16 22:32:34 CET 2012

2012/2/16 Alexander Strasser <eclipse7 at gmx.net>:
>  Also could you explain to me how you use it in your application. That would help
> me to reason about it.

In apps that do any encoding, it's fine to implement single
command-line option --video_encoding_opts, which takes a tuple of
things like "profile=baseline,tune=zerolatency", rather than too much
specific --x264_encoding_preset, --x264_encoding_profile,
--x264_encoding_level, --x264_encoding_tune (because they have sense
for x264 encoder, but not for others). Anything can be given to
AVCodecContext in form of AVOptions, thus application maker can
decrease need to code things inside.
Not only AVCodecContext take AVDictionary on its init, but also
AVFormatContext, maybe sth else.

Andrey Utkin

More information about the ffmpeg-devel mailing list