How to read in an image from a live web video stream?

Hello,

I’m new to opencv and I got a problem I don’t know how to solve.

So I got a link to a livestream (something like this: https://www.blitzvideoserver.de/player_strassennrw.html?serverip=62.113.210.7&serverapp=strassennrw-rtplive&streamname=10101636665487592635) and I want to load an image from the stream and save it into a Mat.

I know how to load in images from a webcam device but not how to do it from a web-live-stream.

Im working in Java but some C/ C++ or python Code will help me too.

Greetings.

unfortunately, your link is not a video url, but a html page, loading a js video player (clappr) and providing that with the “real” url. but good luck, parsing 783 lines of html to find out, how exactly !

however, if you only need single images, you can use:

VideoCapture("https://www.verkehr.nrw/webcams/10101636665487592635.jpg", CAP_FFMPEG);