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.

    [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

    Scheduled Pinned Locked Moved Utilities
    602 Posts 67 Posters 2.1m Views 68 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.
    • evroomE Offline
      evroom @bill22
      last edited by

      @bill22

      I will look if there is a module that can trigger linux commands at will.
      Would be interested in that myself.

      MagicMirror version: 2.33.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.33.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      1 Reply Last reply Reply Quote 0
      • B Offline
        bill22
        last edited by

        @evroom

        if we could find one, it could be probably used to start/stop the stream. On the other hand it could be an option to define several “stand alone streams” and call those individually. Position of the streams could be even offset to each other…Just a thought…

        1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom @bill22
          last edited by

          @bill22

          Btw, do you “fancy” stuff like Voice Control or Alexa ?
          I don’t, but those would be modules that could trigger something.

          MagicMirror version: 2.33.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.33.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 0
          • B Offline
            bill22
            last edited by

            @evroom
            me neither

            evroomE 1 Reply Last reply Reply Quote 0
            • evroomE Offline
              evroom @bill22
              last edited by

              @bill22

              Hi,

              I used this Sunday to setup a second Pi, whilst watching F1.
              Used a new SD, installed Debian Buster and Magic Mirror v2.8.0.

              After I made sure I did not have any errors after rebooting, restarting MM, etc, I setup MMM-RTSPStream.
              It now works for Bucks Bunny, my IP cam and my SAT receiver.
              I can even rotate 2 SAT channels.

              I also tested the little fix with --audio_queue 4and that works to (although I cannot check audio, as I have no speaker).

              It does not say that this method will work for you (my RTSP was dead as a dodo), but it could be something to consider.
              I will play a bit with single quotes, double quotes, etc, as that is a potential problem in your URL.

              And it still leaves the issue with selecting a channel at will, through a trigger.

              MagicMirror version: 2.33.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.33.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              1 Reply Last reply Reply Quote 0
              • B Offline
                bill22
                last edited by bill22

                @evroom

                Hi and sorry for the late response.

                Sounds pretty good and promising!

                How do you “rotate” your SAT channels? Does it change based on time (after x seconds)?
                For me it could be good enough to have a few channels to change, of course better to select from a small list.

                evroomE 1 Reply Last reply Reply Quote 0
                • evroomE Offline
                  evroom @bill22
                  last edited by

                  @bill22
                  In the config part add

                  rotateStreams: true,
                  rotateStreamTimeout: 60,
                  

                  and add 2 or more streams (stream1 and stream2).

                  MagicMirror version: 2.33.0
                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  Test environment:
                  MagicMirror version: v2.33.0
                  Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

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

                    Silly question - is there a way within the RTSP protocal to detect when the camera detects motion, so you can trigger something? What I was thinking is to flash the screen background if the camera sees motion…

                    Thanks!

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

                    1 Reply Last reply Reply Quote 0
                    • twosquirrelsT Offline
                      twosquirrels
                      last edited by twosquirrels

                      Is there a way to hide the play/pause button? I’m not using a mouse on my mirror so it’s useless. Also, i’s creating its own separate gigantic white box that doesn’t line up with my actual video stream (which I have to force its position using moduleOffset).

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

                        The white box is easy to get rid of:

                        In ~/MagicMirror/css/custom.css

                        /* This removes the white border around the RTSP feed(s). */
                        .MMM-RTSPStream .innerWrapper {
                          border: 0;
                        }
                        

                        As far as the play button, I’ve never seen it, so I don’t know how to get rid of it, I don’t use keyboard or mouse on my mirror.

                        FYI, other css that might be useful:

                        /* This shrinks the left and right regions so that RTSPStream don't overlap. */
                        .region.right .module-content,
                        .region.left .module-content {
                          min-width: 450px;
                          max-width: 450px;
                        }
                        

                        – B

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

                        twosquirrelsT 1 Reply Last reply Reply Quote 0
                        • twosquirrelsT Offline
                          twosquirrels @BKeyport
                          last edited by

                          @BKeyport That worked to remove the white box, thanks!

                          I’m still struggling with getting the module to just show where I want it. I don’t know why it doesn’t just listen to “position” like every other module where I can tell them all to be top_right and they’d all line up in the appropriate order. I’m fighting with moduleOffset entering random numbers to see if I can find a decent spot, but it still overlaps, causes indentation, and is just a mess. Then often times the module will just disappear after being on screen for a couple minutes.

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

                            Odd - I’m having no problem moving it around - although, if you’re using OMXPlayer, it’s overlaying on top of the screen, it won’t play nice with other modules in the same position…

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

                            1 Reply Last reply Reply Quote 0
                            • O Offline
                              osnapus
                              last edited by osnapus

                              Hello, I’m Peter,
                              when I add RTSTStream to my MagicMirror, I have a little problem with RTSPStream module.

                              When display is in normal mode on 27’ screen, everything is ok, picture from Cam is good, normal dimensions etc
                              https://photos.app.goo.gl/czoZvwryGmqfJRDg6

                              But when in /boot/config.txt in rpi3 the display_rotation=1, picture form cam is cut like on screen.

                              https://photos.app.goo.gl/VRycUb7zMw9LQVxh6

                              Someone could help me with this problem?

                              Many thanks to You All
                              Peter

                              buzzkcB 1 Reply Last reply Reply Quote 0
                              • buzzkcB Offline
                                buzzkc @osnapus
                                last edited by

                                @osnapus

                                Try using the GL driver to rotate…
                                https://github.com/michmich/magicmirror/wiki/configuring-the-raspberry-pi#enable-the-open-gl-driver-to-decrease-electrons-cpu-usage

                                I’ll post my config.txt and autostart settings tonight, don’t have access to them right now.

                                Darren

                                My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  acimail01
                                  last edited by

                                  Is it possible to define a stream for playing a local file (e.g. .mp4 or .avi)?

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    acimail01
                                    last edited by acimail01

                                    works with

                                    		{
                                    			module: "MMM-RTSPStream",
                                    			position: "middle_center",
                                    			config: {
                                    				autoStart			: true,
                                    				rotateStreams		: false,
                                    				rotateStreamTimeout	: 30,
                                    				moduleWidth			: 354,
                                    				moduleHeight		: 240,
                                    				localPlayer			: 'omxplayer',
                                    				shutdownDelay		: 0,
                                    
                                    					stream1: {
                                    						name: 'Test Stream',
                                    						url: 'file:///home/pi/MagicMirror/modules/MMM-RTSPStream/Videos/Feuer.mp4',
                                    					},
                                    				}
                                    		},
                                    

                                    but no sound !

                                    in bash console works with: omxplayer -o alsa Feuer.mp4
                                    How to set hdmi sound as default ?

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      p4lsec
                                      last edited by

                                      Just wanted to cross-post this in case people are looking in this thread for a way to monitor and restart streams that have stopped:

                                      https://forum.magicmirror.builders/topic/11828/short-script-to-monitor-and-restart-your-mmm-rtspstreams

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kris1208
                                        last edited by

                                        hello, I have a problem with this module, I have the displays which are truncated and this since the update.
                                        bonjour, j’ai un probleme avec ce module, j’ai les affichages qui sont tronqué et ce depuis la mise a jour.
                                        0_1577120359595_erreur miroir.jpg

                                        Merci.

                                        1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          kris1208
                                          last edited by

                                          nobody to tell me how to solve my cut image problem? Thank you

                                          evroomE 1 Reply Last reply Reply Quote 0
                                          • evroomE Offline
                                            evroom @kris1208
                                            last edited by

                                            @kris1208

                                            Perhaps you can share the config.js part for MMM-RTSPStream with us?

                                            The pm2 log output for this module is useful too.
                                            The part where it shows the applied coordinates.

                                            MagicMirror version: 2.33.0
                                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            Test environment:
                                            MagicMirror version: v2.33.0
                                            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 30
                                            • 31
                                            • 2 / 31
                                            • 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