以下是一段C语言代码供参考:// 声明一个AVFormatContext结构体指针 AVFormatContext *pFormatCtx;// 声明一个AVCodecContext结构体指针 AVCodecContext *pCodecCtx;// 打开rtsp流 if(avformat_open_input(&pFormatCtx, rtsp_url, NULL, NULL) != 0) { return -1; }// 检索流信息 if(avformat_find_stream_info(pFormatCtx,NULL) < 0) { return -1; }// 根据流信
ffmpeg获取rtsp流并解析成矩阵,给我写一段C语言代码
最新推荐文章于 2024-07-13 09:37:05 发布