B
B
bezvozni2020-05-27 22:37:47
Python
bezvozni, 2020-05-27 22:37:47

How to stream from ffmpeg to opencv?

I'm trying to write to .ts, but cv refuses to take the used file. Only if you stop recording.

What are the real-time transmission options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-05-28
@Zarom

Refine the task. OpenCV can accept an rtsp stream as input without the need to use ffmpeg.

vcap = cv.VideoCapture("rtsp://192.168.1.2:8080/out.h264")
while(1):
    ret, frame = vcap.read()
    cv.imshow('VIDEO', frame)
    cv.waitKey(1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question