Ask Your Question

Revision history [back]

Expose OpenCV stream

Hello, I want to build a simple pipeline where I receive the stream from a ffmpeg server and then expose that stream to other machines to access (in this case it will be a TV). I am capturing the ffmpeg stream using OpenCV, then I will run some processing on it and I would like to know what is the best approach to expose that output.

For example, in this script I am reading from port 5000 at localhost. How can I send the result stream to the port 5001?

import cv2
import numpy as np
import os
vcap = cv2.VideoCapture("udp://@", cv2.CAP_FFMPEG)
    ret, frame =
    if ret == False:
        print("Frame is empty")
        cv2.imshow('VIDEO', frame)

Is there any work done on this topic?

Kind regards