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.
    • R Offline
      rhopkins7428 @Hram2008
      last edited by

      @Hram2008

      TLDR, I switched from VLC to omxplayer and my previously working config started working again

      I’m using hikvision cameras,
      I was having a similar issue, migrating from an working configuration on an old PI3 to a new fresh image on PI4,
      fresh Magic Mirror/ and MMM-RTSPStream install, copied original config over but both VLC windows black.

      You can click pause on each window, (then shows correct window name) but when you resume it’s just black windows. I confirmed running VLC standalone, using the open network URL, pasted same URL in config and it worked fine. (Like I mentioned running on an older PI no problems)

      Anyway, I changed player to omxplayer in the config and it worked immediately, not sure why VLC in MM not working…

      my config:

      {
      module: “MMM-RTSPStream”,
      position: “top_left”,
      config: {
      autoStart: true,
      rotateStreams: false,
      rotateStreamTimeout: 10,
      moduleWidth: 354,
      moduleHeight: 240,
      localPlayer: ‘omxplayer’,
      remotePlayer: ‘none’,
      showSnapWhenPaused: true,
      remoteSnaps: false,
      shutdownDelay: 12,
      stream1: {
      name: ‘Driveway’,
      url: ‘rtsp://admin:secret@10.99.98.101:554//Streaming/Channels/2’,
      frameRate: ‘undefined’,
      snapshotType: ‘url’,
      snapshotRefresh: 10,
      width: undefined,
      height: undefined,
      },
      stream2: {
      name: ‘Front Door’,
      url: ‘rtsp://admin:secret@10.99.98.37:554//Streaming/Channels/2’,
      frameRate: ‘undefined’,
      snapshotType: ‘url’,
      snapshotRefresh: 10,
      width: undefined,
      height: undefined,
      },
      }
      },

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

        Sometimes with this app you gotta jiggle the handle.

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

        1 Reply Last reply Reply Quote 1
        • bheplerB Offline
          bhepler Module Developer
          last edited by bhepler

          This may be a bit weird, but I’m trying to install this on a non-RaspberryPi piece of hardware running Ubuntu 20. Is there a manual installation process that doesn’t require OMXPlayer?I realize that it will limit my options to VLC, but I’m willing to try. I’m getting caught up on it trying to install a player that isn’t available on Ubuntu.

          I tried installing OMXPlayer through the Snap store, but because the hardware is AMD64, it’s not available.

          1 Reply Last reply Reply Quote 0
          • E Offline
            Egnos
            last edited by Egnos

            Hi everyone,
            I believe that the MMM - RTSPStream module is incompatible with the MMM-Pages multi page module!
            By removing MMM-Pages, the RTSPStream module works again.
            The link for the video stream works correctly both with VLC and with the “omxplayer” command.

            The version of MM I am using is the latest available 2.14.0.

            The error I find in the console is the following:

            MMM-RTSPStream.js:164 MMM-RTSPStream has resumed... rotateStreams: true, autoStart: true
            MMM-RTSPStream.js:368 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
                at Class.playStream (MMM-RTSPStream.js:368)
                at Class.rotateStream (MMM-RTSPStream.js:123)
                at Class.setupStreamRotation (MMM-RTSPStream.js:94)
                at Class.resumed (MMM-RTSPStream.js:168)
                at newCallback (MMM-RTSPStream.js:186)
                at main.js:324
            

            Here is my configuration:

            {
            		   module: "MMM-RTSPStream",
            		   position: "bottom_right",
            		   header: "Test",
            		   config: {
            			    //initialSetup: true,
            				autoStart: true,
            				rotateStreams: true,
            				rotateStreamTimeout: 10,
            				moduleWidth: 354,
            				moduleHeight: 240,
            				localPlayer: 'omxplayer',
            				remotePlayer: 'none',
            				showSnapWhenPaused: false,
            				remoteSnaps: false,
            				
            				stream1: {
            					name: 'Ingresso',
            					url: 'rtsp://xxxxxxxxxxx:xxxxxxxxx@xxx.xxx.x.xxx:554/stream1',
            					frameRate: 'undefined',
            					//width: undefined,
            					//height: undefined,
            						},
            				}
            		},
            

            In the “bottom_right” region what I see:
            alt text

            Have any of you noticed this incompatibility?

            Any advice / help is welcome.
            Thanks.

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            BKeyportB JerryPJ 2 Replies Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @Egnos
              last edited by

              @Egnos Don’t have a clue myself, and this module is no longer supported. :(

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

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                Egnos @BKeyport
                last edited by

                @BKeyport thanks.
                Do you know any other module that can show the stream of surveillance cameras?

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                Cr4z33C 1 Reply Last reply Reply Quote 0
                • Cr4z33C Offline
                  Cr4z33 @Egnos
                  last edited by

                  @Egnos as I wrote already some pages ago there’s MMM-FreeboxTV.

                  Similar this module, but most of all it works.

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    Egnos @Cr4z33
                    last edited by

                    @Cr4z33 many thanks.
                    If I understand correctly the stream is started only if I ask the Google assistant to launch it, correct?

                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                    Cr4z33C 1 Reply Last reply Reply Quote 0
                    • E Offline
                      Egnos
                      last edited by Egnos

                      …maybe I can use this “onStart” parameter to launch the stream that interests me at startup without asking the assistant.

                      With this parameter it would also be possible to launch multiple streams at startup?

                      Many thanks.

                      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                      1 Reply Last reply Reply Quote 0
                      • Cr4z33C Offline
                        Cr4z33 @Egnos
                        last edited by

                        @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

                        @Cr4z33 many thanks.
                        If I understand correctly the stream is started only if I ask the Google assistant to launch it, correct?

                        It’s up to you.

                        Either have it streaming 24/7 or upon command. :)

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          drx1984 @Cr4z33
                          last edited by

                          @Cr4z33 how does a config look like with MMM-FreeboxTV?
                          can I insert a link under stream: rtsp-stream?

                          Cr4z33C 1 Reply Last reply Reply Quote 0
                          • Cr4z33C Offline
                            Cr4z33 @drx1984
                            last edited by

                            @drx1984 find out by yourself and… happy studying. ;)

                            https://github.com/bugsounet/MMM-FreeboxTV/

                            D 1 Reply Last reply Reply Quote 1
                            • D Offline
                              drx1984 @Cr4z33
                              last edited by

                              @Cr4z33 Unfortunately it does not work. can you help me?
                              is the MMM-RTSPstream module no longer functional?

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

                                @drx1984 Consider it abandonware… It’s dead.

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

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  Sh4wn9
                                  last edited by

                                  Im using the module with ffmpeg, everything is working fine until i try and use MMM-ModuleSchedule. The module will hide no problem but when its time to show the module i get just a grey screen where the stream should be. If anyone could help i can provide whatever logs needed. I have just done a fresh install as of yesterday…

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

                                    @Sh4wn9 I believe that using any sort of hiding breaks the module, long standing bug.

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

                                    1 Reply Last reply Reply Quote 0
                                    • JerryPJ Offline
                                      JerryP @Egnos
                                      last edited by

                                      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

                                      Hi everyone,
                                      I believe that the MMM - RTSPStream module is incompatible with the MMM-Pages multi page module!
                                      By removing MMM-Pages, the RTSPStream module works again.
                                      The link for the video stream works correctly both with VLC and with the “omxplayer” command.

                                      The version of MM I am using is the latest available 2.14.0.

                                      The error I find in the console is the following:

                                      MMM-RTSPStream.js:164 MMM-RTSPStream has resumed... rotateStreams: true, autoStart: true
                                      MMM-RTSPStream.js:368 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
                                          at Class.playStream (MMM-RTSPStream.js:368)
                                          at Class.rotateStream (MMM-RTSPStream.js:123)
                                          at Class.setupStreamRotation (MMM-RTSPStream.js:94)
                                          at Class.resumed (MMM-RTSPStream.js:168)
                                          at newCallback (MMM-RTSPStream.js:186)
                                          at main.js:324
                                      

                                      Here is my configuration:

                                      {
                                      		   module: "MMM-RTSPStream",
                                      		   position: "bottom_right",
                                      		   header: "Test",
                                      		   config: {
                                      			    //initialSetup: true,
                                      				autoStart: true,
                                      				rotateStreams: true,
                                      				rotateStreamTimeout: 10,
                                      				moduleWidth: 354,
                                      				moduleHeight: 240,
                                      				localPlayer: 'omxplayer',
                                      				remotePlayer: 'none',
                                      				showSnapWhenPaused: false,
                                      				remoteSnaps: false,
                                      				
                                      				stream1: {
                                      					name: 'Ingresso',
                                      					url: 'rtsp://xxxxxxxxxxx:xxxxxxxxx@xxx.xxx.x.xxx:554/stream1',
                                      					frameRate: 'undefined',
                                      					//width: undefined,
                                      					//height: undefined,
                                      						},
                                      				}
                                      		},
                                      

                                      In the “bottom_right” region what I see:
                                      alt text

                                      Have any of you noticed this incompatibility?

                                      Any advice / help is welcome.
                                      Thanks.

                                      Goodmorning, I belive.

                                      rtsp://gebruikersnaam:wachtwoord@IPCAM:554/cam/realmonitor?channel=1&subtype=2

                                      Pleas run this line in a VLC player. if you can see the camera screen than you know that the connection is oke.
                                      After that we kan see what’s wrong whit the config.js
                                      bur first check if you see the camera feet…
                                      pleas

                                      Whits type camera you use???

                                      Jerry frome Holland

                                      E 1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        Egnos @JerryP
                                        last edited by

                                        @JerryP thank you for answering me!
                                        The stream is ok, I think the problem is the coexistence between MMM-Pages and this module. For now I have managed using the omxplayer command which he launched from the terminal outside of MM.

                                        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

                                          @Egnos that’s the best method, it seems. Only way i can keep my streams from crashing.

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

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sophia787
                                            last edited by

                                            Sorry at this time I don’t have any solution.

                                            https://racketsblog.com/best-tennis-rackets/

                                            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
                                            • 27
                                            • 28
                                            • 29
                                            • 30
                                            • 31
                                            • 30 / 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