您的位置:首页 > 理论基础 > 计算机网络

ffmepg 指定RTSP网络连接模式UDP还是TCP

2014-12-10 15:08 260 查看
AVFormatContext *formatCtx = NULL;

formatCtx = avformat_alloc_context();

AVDictionary* options = NULL;

av_dict_set(&options, "rtsp_transport", "tcp", 0);

avformat_open_input(&formatCtx, pszURLPath, NULL, &options) < 0);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐