我尝试将视频从ip-camera流式传输到HDMI。 我在python 3上用opencv编写了一个代码,但帧之间的时间是~0.075
import cv2 as cv
from time import time
vcap = cv.VideoCapture("rtsp://192.168.0.88:554/user=admin&password=&channel=1&stream=0.sdp?")
current_time = time()
delta_time = 0
while(1):
delta_time = time() - current_time
print(delta_time)
current_time = time()
ret, frame = vcap.read()
cv.imshow('VIDEO', frame)
cv.waitKey(1)
nmap my ip-camera&#39>
Starting Nmap 6.47 ( http://nmap.org ) at 2017-07-05 14:11 UTC
Nmap scan report for 192.168.0.88
Host is up (0.00063s latency).
Not shown: 996 closed ports
PORT STATE SERVICE VERSION
23/tcp open telnet Busybox telnetd
80/tcp open tcpwrapped
554/tcp open rtsp?
8899/tcp open soap gSOAP soap 2.7
当我尝试使用OMXPlayer进行流式传输时
omxplayer rtsp://192.168.0.88:554/user=admin&password=&channel=1&stream=0.sdp?
我得到了
[1] 1473
[2] 1474
[3] 1475
[1]+ Stopped sudo omxplayer rtsp://192.168.0.88:554/user=admin
[2] Done password=
[3] Done channel=1
如何在raspberry pi 3上更快地传输视频?