Does anyone know how to embed a CCTV livestream (RTSP) into a micropython web server? Thanks for any advice.
I think you just need to create a “regular” web server and embed the RSTP URL in an image tag source.
I use an RTSP video feed in my project; the webRTC server I use is the “UnrealMediaServer” which will need to run on a Windows pc. All major web browsers support “webRTC.”
Although not “Micropython”; technigue may be the same, since basically it is just a web page.
Be sure to #import your "index7.h."
RTSP Video feed project discussed in more detail with resource links here in this forum.
Thank you so much for sharing this.
But, can you please share your code using GitHub gist? The formatting won’t be messed up.
Code posted to “Gist.”
First use of “Gist”; will use it often, thank you for suggesting “Gist.”
I edited earlier post here with the link:
Web page for “WebRTC” player to display RTSP “live” video feed
Thanks for all you and Rui do for the RNT Forum Community!
This is very informative. Thanks a lot! I was able to follow your instructions and I am now able to get the UMS to stream internally but I cannot stream from outside my network despite opening ports 5119 & 5135 in both my Windows Firewall and router and changing the IP address to my external IP address. Any ideas I am not getting? I am really impressed at how much these small microcontrollers can do. The project I am doing is getting my garage doors to open and close. I have a camera in the garage that is pointing to the doors. With RNT’s Micropython tutorial, I can now do this. Embedding the IP camera feed into theESP8266 webserver will complete the project. As soon as I complete the project and clean up the code (esp the HTML), I can post it if anyone is interested. Really cool (IMHO for a newbie anyway). Thanks again.
Congratulations on your project.
Follow the steps listed in the section: “Test the WebRTC Stream via the Internet,” of the article from: How to stream an ip camera to a website via WebRTC (Free software)
Open port for your webserver in your router and open web server port in your firewall; be it Windows Firewall or third-party Firewall provider.
Thanks, William and Sara. I followed the Unreal Media Server instructions and it worked! I am now able to live stream my garage camera to the ESP8266 server and can open/close my garage doors with a real time video of what I’m doing.
True, opening ports allow nefarious organizations and/or individuals to snoop inside your network and see video feeds. I realized it when I noticed connections from Russia and other places into the ESP server in the Thonny terminal shell. It seems these people troll the more common ports, e.g. ports 80, 8080, etc. I now use OpenVPN to connect to my home network when I’m away. I also open and use less common and random ports. Hope this helps others.
Thank you for sharing your WebRTC experience and your project details.
Project approach is interesting.
We all started the learning process as “newbies,” you have an impressive project; keep up the good work!
How would you like to add voice control to your project? Check out “Sinric Pro” on Github.com.
Specifically their Relay example.