mjpg-opencv-视频广播
在python中使用mjpg流媒体广播opencv输出视频
为了使用该项目,需要安装mjpg-streamer并在linux终端上运行
遵循此步骤
1.安装构建依赖项
sudo apt-get install libjpeg8-dev imagemagick libv4l-dev
2.添加缺少的videodev.h
sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
3.解压MJPG-Streamer源代码
unzip mjpg-streamer-code-182.zip
4.构建MJPG-Streamer
cd mjpg-streamer-code-182/mjpg-streamer
make mjpg_streamer input_file.
2021-11-08 21:56:55
2.88MB
Python
1