ffmpeg如何减少解码的延迟


    av_dict_set(&optionsDict, "rtsp_transport", "udp", 0);
    av_dict_set(&optionsDict, "stimeout", "200000", 0);
    av_dict_set(&optionsDict, "fflags", "nobuffer", 0);

    if (avformat_open_input(&pFormatCtx, filepath, 0, &optionsDict) != 0) {
        printf("Couldn't open input stream.\n");
        return -1;
    }

我最近还发现可以把avformat_find_stream_info()去掉,然后再补充pFormatCtx的参数加上,比如宽高等。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM