Read the statement by Michael Teeuw here.
Magic Mirror - RTSP not integrated
-
@Ronald video feeds in MM is one of the biggest issues known. People have tried and failed all over the place. Personally, I gave up myself on the modules, and load OMX (for now, as it’s dead software) on top of the MM with a blank space provided by MMM-Block. VLC for my feed is forced full screen and I can’t figure out how to shrink it and position it.
If I could get a modern piece of software to play nicely with MM - I’d switch for sure.
-
@BKeyport
Where are you getting OMX so that it installs for MM?
Everywhere I look it fails to install or has dead links to the program’s dependents.
Please explain like you are talking to a child. I am still trying to figure this all out, one of these days it will hit me like a brick and I will not be bugging you all so much…I have the same issue with VLC it is out of control on the size issue on my screen.
-
@plainbroke I don’t. Gave up on an internal solution, built a blank space module, and launch OMX independently so it sits on top of the blank space.
-
@BKeyport Ok thanks for the information…
-
Most browser doesn’t support RTSP protocol natively. There would be several plugins/extensions to enable that feature, but not for RPI (I have not found yet.)
One available approach would be real-time transcoding RTSP to affordable formats (for example, MJPEG) to be handled by the browser itself. Maybe
ffmpegcould do that in the background. I think it could be done as MagicMirror module, but I believe as an independent background daemon, it will work better.Hmmm. I have no RTSP device at this moment, so I cannot prove this by myself. Anyway, in my opinion, this method will work.
-
I scratch up a very simple module to prove my theory;

It seems working.
But;
- There would be some delay. (even almost 2s on my M1MaxMBP. So in RPI, it would be more. not yet tested.)
- Some old/weak SBCs might not have enough power to handle real-time converting.
- multi cam’s streaming would be too burdensome, more tests be needed
Anyway after some adjustment, I’ll release the module in a few days.
- There would be some delay. (even almost 2s on my M1MaxMBP. So in RPI, it would be more. not yet tested.)
-
@Ronald @plainbroke @BKeyport (or any others)
Do you guys still have an interest in this issue? (RTSP implements on MM).
I build up a simple module, and It looks to be working, but my Home IP cams don’t support long-live RTSP streaming (Because it is not wire-powered, thus to protect from battery draining, the feature has limited.), And at this moment, I don’t have any RPI to test. (I tested this module on Mac, VIM3(Ubuntu) but not on RPI.
So, I need the help of a real-world test. Anyone who has interests and has RTSP-streamable cams, Give me DM, please. (in this forum or eouia0819@ gmail. com)
-
@MMRIZE I would be happy to test when I get back home in a week. I’m out of town on business.
-
@MMRIZE
I will be happy to test when I get back home. You have my email already.
Send me a link or whatever so I can try it when I get back or if can get this chrome book changed over so i can run a MagicMirror on it… -
@MMRIZE
Hey I am back where I can test this RTSP module you have whipped up…
Heck I would be fine if I could get RTSPStream to work with vlc since I use full screen when the camera feeds come around in the MMM-Carousel module.
email same as user @gmail.com. What you are showing would be great if I can use it at full screen above or something like that… -
@BKeyport
Where can I get your blank space module and the whatever Player you use? -
@plainbroke the blank space module is “MMM-Block” - on the 3rd party module list.
I then use OMX, so you have to use either pre-current RPI OS, or figure out how to install it, as it’s abandon-ware.
-
@BKeyport
I have been looking at both and neither will work with my MM.
I thank you for the information though I thought for a bit I could make it work, but I finally just gave up. My head was hurting from all the reading and searching to get it all to work. You must have the patients of Job to get that to work. More likely you understand code WAY better than I do… All this code is way above my understanding… -
@MMRIZE ,
You get that RTSP module to work yet. I am very interested in it since MMM-RTSPStream has quit working altogether for me.
Not sure what I did different this time but even vlc fails to show a picture… -
@plainbroke
I’m still testing for optimal setting of rpi3. My approach(real time transcoding rtsp 2 mpeg to be implemented on html) seems somewhat burden for weak/old SBCs. Other more powered devices have enough to deal however. I’m not using rpi3 anymore, but not everyone.
Anyway I’m in summer leaves, so not have time at this moment. Maybe after 2 weeks I’ll continue. Plz wait a while. -
@MMRIZE
That is great to know. Thanks for the update, no worries.
I actually have RTSPStream up and running now using VLC.
So I am in no rush. -
@mmrize It working perfectly within my mirror, other than occasional pauses in stream… I use a PI4, and I’m currently in a heat wave, so it’s not running at full bore (I don’t have AC where the mirror is)
– edit:
OK - after a bit of burn-in, it’s falling all over itself. :(I think I’d be better off using snapshots. Problem is, only module I can find that can work with the snapshot system of my camera is RTSPStream, which just blows chunks otherwise.
-
-
@plainbroke I’m on Buster. RTSPStream blows chunks all over the place. MMRize’s module is better, but sadly, I don’t think the Pi’s have enough power to handle my stream effectively, and I can’t turn it down.
If I could do the re-encoding on a dedicated pi or something, it could work…
-
@BKeyport
Yup, My approach has looked so quite promising, but the usual RPI has not had enough power to deal. I haven’t tested RPI4 yet, but even RPI3B+ couldn’t; this approach would not be a general solution at that point. I was so disappointed.The dead points I found were these;
- HTML5 on Chrome(Chromium) cannot handle any standard LIVE Streaming format itself by default. (What a surprise!), It means additional player components are needed.(I tried to use JSMPEG and WebSocket.) It takes some resources.
FFmpeg(or VLC) is needed to transcode RTSP to MPEG in the background. It is not light process for RPI.
Normal PC (and some modern powerful SBCs) easily handle these works, but not RPI3. So I am stopping the project at this moment. I wish I have a better idea about this thing.
Thanks guys.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
