[FFmpeg-user] avformat_find_stream_info does not provide me information.

whoami Jils get2jils at gmail.com
Tue Feb 25 11:17:38 CET 2014


1) What i am trying?  ->  understanding ffmpeg, writting new video player
in android.
2)  avformat_find_stream_info returns nothing. :(


     if (avformat_open_input(&pFormatCtx, "rtsp://<ip>:<port>", NULL, NULL)
!= 0)  {
                return -1;
        }

        AVDictionary *opts=NULL;

        if (avformat_find_stream_info(pFormatCtx, &opts) < 0)
        {
                LOGD (" uNABLE TO GET STREAM INFO ..");
                return -1; // Couldn't find stream information
        }


3) print av_dict_count(opts)  , and it give me the value zero [ 0 ].


Is it expected behavior or did i  miss something?


More information about the ffmpeg-user mailing list