<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello, I have several questions about using av_dict_set(AVDictionary
**pm, const char *key, const char *value, int flags) to set the
options for input and output videos.<br>
<br>
I am trying to translate several options from the FFmpeg binary
usage to the libav-api, and I have trouble with some of them.<br>
<br>
1. If I have multiple options to set (e.g. "-preset ultrafast", and
"-tune zerolatency"), do I just use av_dict_set repeatedly, one
after the other? Will they overwrite each other? I believe they do,
since the documentation says "Set the given entry in *pm,
overwriting an existing entry." How do I add more options then?<br>
<br>
2. I used "-re" on FFmpeg. av_dict_set requires a key and value. How
do I apply this option?<br>
<br>
3. How would I translate this to an option: <br>
"-x264opts crf=2:vbv-maxrate=4000:vbv-buf<wbr>size=160:intra-refresh=1:slice<wbr>-max-size=2000:keyint=30:ref=1"<br>
I have a feeling I have to set all these manually on my
AVCodecContext object. True? Problem is, I can't find most of these
options on the object.<br>
<br>
Thank you.<br>
</body>
</html>