# \[p5 WEB\] Is there a library capable of CCTV Mjpeg?

**URL:** <https://discourse.processing.org/t/p5-web-is-there-a-library-capable-of-cctv-mjpeg/41486>\
**Category:** Development\
**Created:** [March 28, 2023, 1:25am UTC](https://discourse.processing.org/t/p5-web-is-there-a-library-capable-of-cctv-mjpeg/41486 "2023-03-28T01:25:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [March 28, 2023, 1:25am UTC](https://discourse.processing.org/t/p5-web-is-there-a-library-capable-of-cctv-mjpeg/41486/1 "2023-03-28T01:25:22Z")

</div>

[p5 WEB] Is there a library capable of CCTV Mjpeg?

Hello. Nice to meet you.  
I want to express real-time streaming video of CCTV on ‘p5 WEB’.  
In ‘JAVA Mode’

1. Library-IPCature: Mjpeg executable
  - url exam : http://  
[[id]] : [[pw]] @ [[camera ip]] :80/ISAPI/Streaming/channels/101/httppreview

2. Library-VLCJVideo: RTSP Executable (H.265/264)

It can be driven through the library in 1) and 2). (In JAVA Mode)

By any chance, is there a library that enables RTSP of CCTV in ‘p5 WEB’? If any, please share.

1. Confirmed that it does not work in the ‘p5.vida’ library.

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [March 28, 2023, 5:01pm UTC](https://discourse.processing.org/t/p5-web-is-there-a-library-capable-of-cctv-mjpeg/41486/2 "2023-03-28T17:01:21Z")

</div>

[UPDATE:230329]

1. I was able to run it through the VLC protocol.

- VLC protocol.

```auto
<!DOCTYPE html>
<html>

<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://download.videolan.org/pub/videolan/vlc/2.2.4/win32/vlc-2.2.4-win32.exe"
width="100%" height="100%" id="vlc" events="True">
    <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" name="vlc" />
    <param name="Src" value="http://
[[id]] : [[pw]] @ [[camera ip]] :80/ISAPI/Streaming/channels/101/httppreview" />
    <param name="autostart" value="true" />
    <param name="ShowDisplay" value="false" />
    <param name="AutoLoop" value="false" />
    <param name="AutoPlay" value="true" />
</OBJECT>

</html>

```

1. However, it does not work in HTML5. It works only in the old Internet IE.

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [March 28, 2023, 10:49pm UTC](https://discourse.processing.org/t/p5-web-is-there-a-library-capable-of-cctv-mjpeg/41486/3 "2023-03-28T22:49:23Z")

</div>

[UPDATE:230330]

link : [[Tutorial] Easiest Way to Play RTSP Streams on HTML5 Webpage Without Plugin - VLC RTSP HTML5 Transcoding](https://www.videoconverterfactory.com/tips/rtsp-html5.html)

The way to create is to use the ‘VLC STREAM’ function.

1. STREAM CCTV’s ‘RTSP’.

2. Configure as HTTP server.  
` http://127.0.0.1:8080/stream`

3. Make it in ogg format.

4. Start the stream.

5. Create HTML.  
`<video id="video" src="http://127.0.0.1:8080/stream" type="video/ogg; codecs=theora" autoplay="autoplay"/>`

6. It becomes a stream as shown in the picture.
