<div dir="ltr"><pre style="color:rgb(0,0,0)">I am trying to open input stream,and I found an example which seems to be pretty</pre><pre style="color:rgb(0,0,0)">old : <a href="https://lists.libav.org/pipermail/libav-user/2009-May/003034.html">https://lists.libav.org/pipermail/libav-user/2009-May/003034.html</a></pre><pre style="color:rgb(0,0,0)">So I am moving step by step converting the old API to the new one.</pre><pre style="color:rgb(0,0,0)">Now I have this part: </pre><pre style=""><font color="#0000ff">AVFormatParameters params, *ap = &params;
    memset(ap, 0, sizeof(*ap));
    ap->time_base.num = 1;
    ap->time_base.den = 25;


    DEBUG << "Opening stream" << endlog;

    if( av_open_input_stream( &ic, &io, "",
                              fmt, ap ) )
    {
        DEBUG << "Can't open input stream " << endlog;
        return 0;

    }</font></pre><pre style=""><font color="#0000ff"><br></font></pre><pre style=""><font color="#000000">I see that instead of AVFormatParameters I should use AVDictionary. But withint the</font></pre><pre style=""><font color="#000000">context struct I can't see any options like time_base.num or den,which if I get it right,</font></pre><pre style=""><font color="#000000">set frame rate of the incoming stream.</font></pre><pre style=""><font color="#000000">So how do I pass the frame rate into this dictionary?</font></pre><pre style=""><font color="#000000">I also noticed that in almost every possible example in the web NULL is passed instead</font></pre><pre style=""><font color="#000000">of the dictionary.Is it optional?</font></pre><pre style=""><font color="#000000"><br></font></pre></div>