Logic Machine Forum
RTSP to MJPEG stream - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: RTSP to MJPEG stream (/showthread.php?tid=2099)



RTSP to MJPEG stream - Jayce - 30.05.2019

Hello,

A while back I asked if I can display RTSP stream on visualization. Since then, I managed to actively convert camera stream from RTSP to MJPEG through VLC media player, sending it to 192.168.1.100:8080. When I create html document with script to play it, I can see the live stream in Google Chrome. Same thing if I only browse to the IP address and port it starts downloading the footage (never ending download since it's a stream). Now that it should be MJPEG since Google Chrome can open it, I need to import it to visualization. I tried simply creating camera button and to URL I added:
Code:
http://192.168.1.100:8080/
It doesn't work though. Am I doing the final step wrong?


RE: RTSP to MJPEG stream - admin - 30.05.2019

Open dev tools in your browser via F12 and check network tab when you open camera in visualization. Post request details here.


RE: RTSP to MJPEG stream - Jayce - 30.05.2019

I have checked the requests as you said, as you can see at the very bottom of first screenshot (requests.png) with red text it has failed, it says 192.168.1.100 didn't respond. As I wrote earlier, when I type the IPTongueort into browser, it immediately starts downloading the footage. Second screenshot (html.png) is HTML script that shows the stream opened in Google Chrome.


RE: RTSP to MJPEG stream - admin - 30.05.2019

Visualization camera element uses img tag, but your example uses video tag. As a workaround you can use iframe with HTML uploaded to LM FTP instead of camera element.


RE: RTSP to MJPEG stream - Jayce - 31.05.2019

Works flawlessly. Thank you once again for help!


RE: RTSP to MJPEG stream - Joep - 05.11.2019

(31.05.2019, 07:24)Jayce Wrote: Works flawlessly. Thank you once again for help!

Hi Jayce,

Does this work as a cross browser solution for Mozilla Firefox, Google Chrome, Safari (IOS) and on any Android device?
Or does it only work with VLC installed on a Windows pc?


RE: RTSP to MJPEG stream - victor.back - 11.10.2023

(30.05.2019, 15:45)admin Wrote: Visualization camera element uses img tag, but your example uses video tag. As a workaround you can use iframe with HTML uploaded to LM FTP instead of camera element.

Hi
 
I have similur issue where camera stream works in web browser but not in camera visualisation url and not even in iFrame, where it says the content is blocked.
But the stream is open with http and not password.
Can it be a solution with FTP here? and if so how to set this up?
Camera strea URL looks like this and works in web browser, firefox.
http://192.168.1.201/


RE: RTSP to MJPEG stream - admin - 11.10.2023

Have you enabled "Allow external resources (JS/CSS)" in Utilities > Vis. configuration?


RE: RTSP to MJPEG stream - victor.back - 11.10.2023

(11.10.2023, 07:15)admin Wrote: Have you enabled "Allow external resources (JS/CSS)" in Utilities > Vis. configuration?

It worked by allowing external JS/CSS in one site with a http stream from a unifi protect, but in a second site with an alhua nvr it doesnt show "blocket" anymore though it doesnt show the live feed either.