MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Magic Mirror - RTSP not integrated

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    31 Posts 5 Posters 12.5k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MMRIZE @plainbroke
      last edited by MMRIZE

      @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.

      plainbrokeP 1 Reply Last reply Reply Quote 0
      • plainbrokeP Offline
        plainbroke @MMRIZE
        last edited by

        @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.

        Slow learner. But trying anyways.
        MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
        Running Trixie and the latest MM version.

        1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @BKeyport
          last edited by BKeyport

          @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.

          The "E" in "Javascript" stands for "Easy"

          plainbrokeP 1 Reply Last reply Reply Quote 0
          • plainbrokeP Offline
            plainbroke @BKeyport
            last edited by plainbroke

            @BKeyport @MMRIZE
            I went back to Buster (10) and my Mirror with rtspstream is working great now. Using OMXplayer. I will stick with buster until someone can get rtsp to work with bullseye (11) or whatever 12 is going to be called when it comes out…

            Slow learner. But trying anyways.
            MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
            Running Trixie and the latest MM version.

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @plainbroke
              last edited by

              @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…

              The "E" in "Javascript" stands for "Easy"

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MMRIZE @BKeyport
                last edited by

                @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.

                BKeyportB 1 Reply Last reply Reply Quote 0
                • BKeyportB Offline
                  BKeyport Module Developer @MMRIZE
                  last edited by

                  @MMRIZE Thanks for the attempt. We’ll get there, somehow.

                  The "E" in "Javascript" stands for "Easy"

                  plainbrokeP 1 Reply Last reply Reply Quote 0
                  • plainbrokeP Offline
                    plainbroke @BKeyport
                    last edited by plainbroke

                    @MMRIZE
                    Darn, I am on a RPi 4 with 8gb ram, it has a 120gb ssd on a x825 expansion board. I think it should have enough umph to run a lot more than it does. Any chance I can get a preview of the module you where working on.?
                    @BKeyport
                    Maybe my setup is why RTSPStream seems to work well for my 5 different wyze cams that I am streaming from. I only stream one at a time and only for 45 seconds at a time, but they show up in a few seconds running MMM-Carousel as the page viewer. VLC works ok but takes way too long to populate and then I can’t control the size/zoom not sure which, So I only get part of the cameras view.

                    So I guess I will stick with RTSPStream until one of these guinues coders come up with something that works better…
                    I appreciate the effort @MMRIZE

                    Slow learner. But trying anyways.
                    MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                    Running Trixie and the latest MM version.

                    BKeyportB 1 Reply Last reply Reply Quote 0
                    • BKeyportB Offline
                      BKeyport Module Developer @plainbroke
                      last edited by

                      @plainbroke https://github.com/MMRIZE/MMM-RTSP is where he kept his attempt.

                      It’s still there for now. :)

                      The "E" in "Javascript" stands for "Easy"

                      plainbrokeP 2 Replies Last reply Reply Quote 0
                      • plainbrokeP Offline
                        plainbroke @BKeyport
                        last edited by

                        @BKeyport
                        Thank you.

                        Slow learner. But trying anyways.
                        MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                        Running Trixie and the latest MM version.

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          Laz
                          last edited by

                          I also have a problem displaying the flow from the MMM-RTSPStream module after turning on the screen on the motion sensor. The stream image does not return to the frame of the desired location. Was it possible to somehow defeat the image shift? I know that the module is no longer supported, but maybe who was able to find a solution? ((
                          This is the kind of screen I have after the motion sensor is triggered… (((

                          https://forum.magicmirror.builders/topic/17389/the-problem-of-displaying-the-flow-from-the-mmm-rtspstream-module-after-turning-on-the-screen-by-the-motion-sensor

                          BKeyportB 1 Reply Last reply Reply Quote 0
                          • BKeyportB Offline
                            BKeyport Module Developer @Laz
                            last edited by

                            @Laz If you’re using VLC, likely not. There’s too many programs being run to make it work.

                            The "E" in "Javascript" stands for "Easy"

                            1 Reply Last reply Reply Quote 0
                            • plainbrokeP Offline
                              plainbroke @BKeyport
                              last edited by

                              @BKeyport said in Magic Mirror - RTSP not integrated:

                              @plainbroke https://github.com/MMRIZE/MMM-RTSP is where he kept his attempt.

                              It’s still there for now. :)

                              Hey,
                              I pulled that to my mirror but all I get is the header. Which tells me I have something wrong in my config file but, He did not put much for how to setup the config file… I know the module is working since it shows the header on my mirror, just not the actual rtsp of the camera.
                              Do you have time to show me what I need to setup in the config file?
                              Here is what I put in my config.js file.

                              {
                                      module: "MMM-RTSP",
                                      position: "middle_center",
                                      header: "RTSP - Garage",
                                      config: {
                                              streams: [
                                              {
                                              rtsp: "rtsp://admin:admin@192.168.1.35:554/live",
                                              }
                                                      ],
                                                      wsPort: 2000, // should be unique.
                                                      startStreamId: 1,
                                              }
                              },
                              

                              Slow learner. But trying anyways.
                              MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                              Running Trixie and the latest MM version.

                              BKeyportB 1 Reply Last reply Reply Quote 0
                              • BKeyportB Offline
                                BKeyport Module Developer @plainbroke
                                last edited by

                                @plainbroke sorry, unsupported due to excessive load on Pi.

                                I’d recommend something else. What that else is, I have no clue.

                                The "E" in "Javascript" stands for "Easy"

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  Laz
                                  last edited by

                                  It turns out that, in principle, the RTSP module works in a mirror via VNC, but only if you do not dampen the screen (and sometimes overload the raspberry).
                                  If you turn off the screen by the motion sensor, the RTSP module does not return the flow picture to the desired place…

                                  So the stream from the remote camera cannot be connected correctly in the mirror? (((
                                  Especially if there is a desire to extinguish the screen in the long-term absence of movement near the mirror…

                                  1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    Laz
                                    last edited by

                                    Tell me what I’m doing wrong?
                                    I installed the old version of OS Raspberry 10.13, installed a mirror with standard modules, and installed the MMM-RTSPStream module. Made camera settings. If I choose a VLC player, then I hear sound from the camera, there are Stream1 in tasks, but there is no video in the module frame. When choosing other players (OMX and ffmpeg), there is no video either.
                                    Although I have the same settings for this module and with a VLC player on another flash drive with the latest version of OS, the video raspberry works. But it happens that when the raspberry is rebooted, the video stream does not always fall into the module frame.

                                    1 Reply Last reply Reply Quote 0

                                    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
                                    • 1
                                    • 2
                                    • 2 / 2
                                    • First post
                                      Last post
                                    Enjoying MagicMirror? Please consider a donation!
                                    MagicMirror created by Michael Teeuw.
                                    Forum managed by Sam, technical setup by Karsten.
                                    This forum is using NodeBB as its core | Contributors
                                    Contact | Privacy Policy