我可以在VLC中打开流,但在OpenCV中我无法捕获帧。(Python2.7、OpenCV 3.4.3二进制发行版x86、Windows 10)。我一直在遵循这本指南:https://medium.com/@tomgrek/hackers-guide-to-the-aws-deeplens-1b8281bc6e24但我似乎无法在线阅读随机流(不确定我是否能够阅读,我看到了关于用ffmpeg编译的opencv videocapture can't open MJPEG stream问题,但我刚刚下载了Sourceforge中提供的二进制文件)。在我使用的是AWS的深镜头,更新到了最新版本。
已安装最新版本的ffmpeg。
然后,in/etc/ffserver.conf文件我补充道:
File "/opt/awscam/out/ch1_out.h264"
VideoFrameRate 6
VideoSize 320x240
NoAudio
File "/opt/awscam/out/ch2_out.mjpeg"
VideoFrameRate 3
VideoSize 640x480
Format mjpeg
NoAudio
我开始ffserver -f /etc/ffserver.conf
在我的Windows机器上,我使用WSL并打开一个SSH隧道到AWS Deeplensssh -L 8090:localhost:8090 aws_cam@192.168.0.10
此时,在我的Windows机器中,我可以打开VLC,如果我指向http://localhost:8090/camera.mjpeg,我可以从摄像机看到流。在