This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

RTSP to MJPEG stream
#1
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?
Reply
#2
Open dev tools in your browser via F12 and check network tab when you open camera in visualization. Post request details here.
Reply
#3
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.

Attached Files Thumbnail(s)
       
Reply
#4
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.
Reply
#5
Works flawlessly. Thank you once again for help!
Reply
#6
(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?
Reply
#7
(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/
Reply
#8
Have you enabled "Allow external resources (JS/CSS)" in Utilities > Vis. configuration?
Reply
#9
(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.
Reply


Forum Jump: