Gstreamer or FFMPEG as video streamer to work with OpenCV in Docker Container

Hi! I’m looking to run an RTSP/HTTP Web stream in a docker container alongside another docker service webapp to be embedded in a html tag. This is all on the same machine, just different ports.

NVARGUS -> OpenCV -> gstreamer server? ffserver? flask tcp server?

Ideally the end output should be a html tag I can use to be embedded within my webpage.
Either <video> or <img src>.

Does anyone know what would be a good way to go about serving the stream content in a lightweight manner?

You may utilize test-launch. Please refer to

In the pipeline, it uses nvcamerasrc and omxh264enc, which are deprecated. Please use nvarguscamerasrc and nvv4l2h264enc.

Ok I’ll try these out and let you know how it goes. Do I need any other linux binaries?
I was libgstrtspserver-1.0 and libgstreamer1.0-dev


Yes, you should need the packages for building test-launch
Please refer to