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

**URL:** <https://forum.opencv.org/t/how-to-read-in-an-image-from-a-live-web-video-stream/6133>\
**Category:** Uncategorized\
**Created:** [November 10, 2021, 11:26am UTC](https://forum.opencv.org/t/how-to-read-in-an-image-from-a-live-web-video-stream/6133 "2021-11-10T11:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wingster](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@Wingster](https://forum.opencv.org/u/Wingster)\
**Post date:** [November 10, 2021, 11:26am UTC](https://forum.opencv.org/t/how-to-read-in-an-image-from-a-live-web-video-stream/6133/1 "2021-11-10T11:26:56Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 10, 2021, 1:31pm UTC](https://forum.opencv.org/t/how-to-read-in-an-image-from-a-live-web-video-stream/6133/2 "2021-11-10T13:31:57Z")

</div>

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);
```
