0

我尝试将视频从 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 我的网络摄像机

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

如何在树莓派 3 上更快地流式传输视频?

4

0 回答 0