<div dir="ltr"><div>I m trying to retrieve Frame rate in following manner.<br><br><br>        context = avformat_alloc_context();<br><br>        int err;<br>        err = avformat_open_input (&context, "<rtsp IP>", NULL, NULL);<br>
        for (i = 0; i < context->nb_streams; i++)<br>        {<br>                codec = avcodec_find_decoder(context->streams[i]->codec->codec_id);<br>                if (codec->type  == AVMEDIA_TYPE_VIDEO ) {<br>
                        videoStreamIndex = i;<br>                        video_stream = context->streams[videoStreamIndex];<br>                      AVRational fr = av_guess_frame_rate(context, video_stream, NULL);<br>
                     LOGD(" Frame RAte = %d/%d ", fr.num, fr.den);<br><br>                }<br>        }<br><br><br><br><br></div>I am getting ways 0/0   printed. What am i doing wrong?<br><br><br></div>