#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<unistd.h>
#include<string.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
//#ifdef __cplusplus
extern "C"
{
//#endif
/*Include ffmpeg header file*/
#include <stdio.h>
#include <stdlib.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
#include <libavutil/imgutils.h>
#include <libav
ffmpeg+opencv,rtsp拉流保存jpg图片
最新推荐文章于 2024-06-26 15:14:58 发布
本文介绍了如何结合ffmpeg和opencv库,从rtsp视频流中实时拉取并保存为jpg静态图片的过程,适用于视频监控、图像分析等场景。
摘要由CSDN通过智能技术生成