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.
    • 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
        • K Offline
          kris1208
          last edited by kris1208

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

          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.

          Thank you for your response, could you tell me the file I need to post to you?
          {
          module: “MMM-RTSPStream”,
          position: “top_center”,
          config: {
          rotateStreamTimeout: 20, // Seconds
          stream1: {
          name: “Portail”,
          url: “rtsp://MDP@192.168.1.16/MediaInput/h264”
          },
          stream2: {
          name: “Dome”,
          url: “rtsp://MDP@192.168.1.17/12”
          },
          }
          },

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

            @kris1208

            Hi, bonjour, to be honest I do not see the problem right away. With truncated you mean you expect to see more? Of the top stream or the bottom stream, or both? What resolution(s) do you expect to see?

            I suppose you followed the instructions from this repository:
            https://github.com/shbatm/MMM-RTSPStream
            Including the “To use this module, use the configuration builder tool included.” part to produce a recommended config for your stream(s).

            I think your config defaults to the vlc player. Could you please do:

            ps -eaf | grep -v grep | egrep 'omxplayer|vlc'
            

            If you (re)start MagicMirror (or mm), then you will find some MMM-RTSPStream module related info.

            pm2 logs --lines 200
            

            It will start with something like this:

            Starting stream stream1 with args:
            

            I personally use omxplayer, but standalone, without using MMM-RTSPStream. Since it is an overlay anyway, I feel I can control it more.

            Good luck gathering the information.

            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
            • K Offline
              kris1208
              last edited by kris1208

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

              ps -eaf | grep -v grep | egrep ‘omxplayer|vlc’

              0|mm | Whoops! There was an uncaught exception…
              0|mm | TypeError: Cannot convert undefined or null to object
              0|mm | at Function.keys ()
              0|mm | at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:469:32)
              0|mm | at pm2.list (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:498:17)
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2/lib/API.js:606:19
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon-rpc/lib/client.js:45:10
              0|mm | at Parser. (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon/lib/sockets/req.js:67:8)
              0|mm | at Parser.emit (events.js:182:13)
              0|mm | at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/amp/lib/stream.js:91:16)
              0|mm | at doWrite (_stream_writable.js:410:12)
              0|mm | at writeOrBuffer (_stream_writable.js:394:5)
              0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment.
              0|mm | Create new news fetcher for url: https://www.bfmtv.com/rss/info/flux-rss/flux-toutes-les-actualites/ - Interval: 300000
              0|mm | Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://MDP@192.168.1.16/MediaInput/h264…
              0|mm | Starting stream stream2 using VLC with args --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream2 rtsp://MDP@192.168.1.17/12…
              0|mm | DP2: Running window resizers…
              0|mm | DP2: Running window resizers…

              0|mm | TypeError: Cannot convert undefined or null to object
              0|mm | at Function.keys ()
              0|mm | at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_ helper.js:469:32)
              0|mm | at pm2.list (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_h elper.js:498:17)
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 /lib/API.js:606:19
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 -axon-rpc/lib/client.js:45:10
              0|mm | at Parser. (/home/pi/MagicMirror/modules/MMM-RTSPStr eam/node_modules/pm2-axon/lib/sockets/req.js:67:8)
              0|mm | at Parser.emit (events.js:182:13)
              0|mm | at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/n ode_modules/amp/lib/stream.js:91:16)
              0|mm | at doWrite (_stream_writable.js:410:12)
              0|mm | at writeOrBuffer (_stream_writable.js:394:5)
              0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment.
              0|mm | npm ERR! code ELIFECYCLE
              0|mm | npm ERR! errno 1
              0|mm | npm ERR! magicmirror@2.9.0 start: sh run-start.sh
              0|mm | npm ERR! Exit status 1
              0|mm | npm ERR!
              0|mm | npm ERR! Failed at the magicmirror@2.9.0 start script.
              0|mm | npm ERR! This is probably not a problem with npm. There is likely a dditional logging output above.
              0|mm |
              0|mm | npm ERR! A complete log of this run can be found in:
              0|mm | npm ERR! /home/pi/.npm/logs/2019-12-27T19_17_29_282Z-debug.log
              0|mm | getrandom indicates that the entropy pool has not been initialized. Rather than continue with poor entropy, this process will block until entropy i s available.
              0|mm | TypeError: Cannot convert undefined or null to object
              0|mm | at Function.keys ()
              0|mm | at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node
              helper.js:469:32)
              0|mm | at pm2.list (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_h elper.js:498:17)
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 /lib/API.js:606:19
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 -axon-rpc/lib/client.js:45:10
              0|mm | at Parser. (/home/pi/MagicMirror/modules/MMM-RTSPStr eam/node_modules/pm2-axon/lib/sockets/req.js:67:8)
              0|mm | at Parser.emit (events.js:182:13)
              0|mm | at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/n ode_modules/amp/lib/stream.js:91:16)
              0|mm | at doWrite (_stream_writable.js:410:12)
              0|mm | at writeOrBuffer (stream_writable.js:394:5)
              0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment.
              0|mm | TypeError: Cannot convert undefined or null to object
              0|mm | at Function.keys ()
              0|mm | at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node
              helper.js:469:32)
              0|mm | at pm2.list (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_h elper.js:498:17)
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 /lib/API.js:606:19
              0|mm | at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2 -axon-rpc/lib/client.js:45:10
              0|mm | at Parser. (/home/pi/MagicMirror/modules/MMM-RTSPStr eam/node_modules/pm2-axon/lib/sockets/req.js:67:8)
              0|mm | at Parser.emit (events.js:182:13)
              0|mm | at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/n ode_modules/amp/lib/stream.js:91:16)
              0|mm | at doWrite (_stream_writable.js:410:12)
              0|mm | at writeOrBuffer (_stream_writable.js:394:5)
              0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment.
              0|mm | fatal: unable to access ‘https://github.com/shbatm/MMM-RTSPStream.g it/’: Could not resolve host: github.com
              0|mm |
              0|mm | fatal: unable to access ‘https://github.com/prysme01/MMM-Jeedom.git /’: Could not resolve host: github.com

              here is what i found. before it worked well, I think the best is to delete the plugin properly but I do not know how?

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

                @kris1208

                Okay, this looks like a bit more than a “truncated stream” issue.
                That you see something at all is a miracle, I would say :-)

                First of all, please use the </> button when providing output or pieces of config.
                Select the text and press on the </> button.
                Makes it a bit easier to read.

                You can disable the module by putting ‘disabled: true’ in the config.js.
                With the value false you can enable it again later.

                module: "MMM-RTSPStream",
                    disabled: true,
                

                Or remove the whole module entry, but this is not necessary when there are no syntax errors.

                Then restart mm.
                I always use

                pm2 restart mm
                

                provided mm is the pm2 app name.
                See

                pm2 status
                

                To remove the module completely you can simply remove or disable it from the config.js and then delete the structure

                rm -rf ~/MagicMirror/modules/MMM-RTSPStream
                

                Or move it out of the way when you want to attempt a second try:
                mv ~/MagicMirror/modules/MMM-RTSPStream ~/MagicMirror/modules/MMM-RTSPStream.old

                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 Offline
                  BKeyport Module Developer
                  last edited by

                  OK, it’s appearing more and more like the author of this module is MIA, and the module isn’t working well enough anymore to get a consistent stream (ffmpeg is the only thing that works at all in my installs, and even that will crash and burn every 3-6 hours, or get corrupted) - is there anything out there to replace this module?

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

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

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

                    OK, it’s appearing more and more like the author of this module is MIA, and the module isn’t working well enough anymore to get a consistent stream (ffmpeg is the only thing that works at all in my installs, and even that will crash and burn every 3-6 hours, or get corrupted) - is there anything out there to replace this module?

                    I redid an installation of the module but it is the same, the display is partial. Do you have another module to advise me? Thank you

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

                      @BKeyport
                      Depends on what you want to stream and with what you want to stream it with.
                      I, for example, am streaming a single Axis IP cam (supposing it is h.264) using omxplayer. Standalone, controlled by pm2.
                      The MMM-RTSPStream does work, but I was having problems placing the stream on the screen to my likings.
                      You may need to check this list if there is a module that suites your needs:
                      https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules#utility--iot--3rd-party--integration

                      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
                      • evroomE Offline
                        evroom
                        last edited by

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

                        I redid an installation of the module but it is the same, the display is partial. Do you have another module to advise me?

                        So you got rid of the errors in the pm2 log?

                        pm2 flush
                        pm2 restart mm
                        pm2 logs --lines 200
                        

                        Do you see an entry like this?

                        Starting stream stream1 with args:
                        

                        If yes, what are the arguments?

                        Using vlc or omxplayer?

                        ps -eaf | grep -v grep | egrep 'omxplayer|vlc'
                        

                        Still difficult to determine what you mean by partial.
                        I think it is looking good.
                        Perhaps you want to get rid of the white frame?

                        vi ~/MagicMirror/css/custom.css
                        

                        Add:

                        .MMM-RTSPStream .innerWrapper {
                          border-style: none;
                          //border: 1px solid red;
                        }
                        

                        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
                        • K Offline
                          kris1208
                          last edited by

                          Merci de votre aide,
                          J’ai mis quelques post plus avant le resultat du log pm2.
                          Pareil pour l’affichage on vois sur les copies ecran qu’il manque une partie de l’image sur la droite.
                          C’est VLC qui est utilisé mais j’ai mis omx et c’est pareil.

                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            iorifly
                            last edited by

                            Dear, I need help!

                            I am experiencing the following error while trying to start module configuration. When adding the line in config.js:

                            {
                                                module: 'MMM-RTSPStream',
                                                position: 'middle_center',
                                                config: {
                                                    initialSetup: true
                                               }
                                            },
                            

                            I have the following error

                            [14:14:56.732] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/semver/semver.js:1
                            (function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { !
                                                                                                                                                                                        ^
                            
                            SyntaxError: Invalid or unexpected token
                                at new Script (vm.js:74:7)
                                at createScript (vm.js:246:10)
                                at Object.runInThisContext (vm.js:298:10)
                                at Module._compile (internal/modules/cjs/loader.js:678:28)
                                at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                                at Module.load (internal/modules/cjs/loader.js:620:32)
                                at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                                at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                                at Module.require (internal/modules/cjs/loader.js:658:17)
                                at require (internal/modules/cjs/helpers.js:20:18)
                            [14:14:56.735] [LOG]    Loading module helpers ...
                            
                            
                            evroomE 1 Reply Last reply Reply Quote 0
                            • evroomE Offline
                              evroom @iorifly
                              last edited by

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

                              'MMM-RTSPStream

                              Hi,
                              what do you expect to happen with this particular config?
                              Did you execute all the steps from the “Using the module” paragraph in
                              https://github.com/shbatm/MMM-RTSPStream
                              ?
                              I would suggest to read the instructions once more and then let us know the result.

                              Success.

                              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)

                              I 1 Reply Last reply Reply Quote 0
                              • I Offline
                                iorifly @evroom
                                last edited by iorifly

                                @evroom Hello, how are you ?

                                Thanks for answering me.

                                So if I didn’t have the error. I was hoping to be able to access the URL:

                                http: // your-mirror-ip: 8080 / MMM-RTSPStream / config.html

                                and proceed with the setup. However, the server does not go up. I can’t access the url. I believe the error I described is preventing it.

                                If you can, help me.

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

                                  @iorifly
                                  Okay, that makes sense.
                                  Has been a while since I set it up myself, but I will take a look.
                                  Cannot promise anything :-)

                                  What are you trying / hoping to stream?

                                  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)

                                  I 1 Reply Last reply Reply Quote 0
                                  • I Offline
                                    iorifly @evroom
                                    last edited by

                                    @evroom Thanks for trying to help me.

                                    My intention is to stream the video stream from my UBIQUITI cameras. In particular I would like to call a camera.

                                    evroomE 2 Replies Last reply Reply Quote 0
                                    • evroomE Offline
                                      evroom @iorifly
                                      last edited by evroom

                                      @iorifly

                                      Hi,

                                      had troubles opening that config.html myself.
                                      Try this:

                                      1/ Install the module using:

                                      sh -c "$(curl -s https://raw.githubusercontent.com/shbatm/MMM-RTSPStream/develop/scripts/installer.sh)"
                                      

                                      2/ Add the module to the config.js:

                                      vi ~/MagicMirror/config/config.js
                                      
                                      {
                                              module: 'MMM-RTSPStream',
                                      	disabled: false,
                                              position: 'middle_center',
                                              config: {
                                                  initialSetup: true,
                                              }
                                       }
                                      

                                      3/ Restart mm:

                                      pm2 restart mm
                                      

                                      4/ Start Chromium Web Browser on Pi (direct or using VNC).
                                      Use URL:

                                      http://localhost:8080/MMM-RTSPStream/config.html
                                      

                                      5/ Follow the instructions and save the config.

                                      6/ Add the module to the config.js (replace the initial one):

                                      vi ~/MagicMirror/config/config.js
                                      

                                      7/ Flush the logs:

                                      pm2 flush
                                      

                                      8/ Restart mm:

                                      pm2 restart mm
                                      

                                      9/ Check the logs:

                                      pm2 logs --lines 200
                                      

                                      10/ Look for this line (when there are no blocking errors):

                                      Starting stream stream1 using:
                                      

                                      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
                                      • evroomE Offline
                                        evroom @iorifly
                                        last edited by

                                        @iorifly

                                        You can try this config for testing:

                                        {
                                            module: "MMM-RTSPStream",
                                            position: "middle_center",
                                            header: "MMM-RTSPStream Test",
                                                config: {
                                                autoStart: true,
                                                rotateStreams: false,
                                                rotateStreamTimeout: 10,
                                                moduleWidth: 640,
                                                moduleHeight: 360,
                                                localPlayer: 'omxplayer',
                                                remotePlayer: 'none',
                                                showSnapWhenPaused: true,
                                                remoteSnaps: true,
                                                stream1: {
                                                    name: 'Buck Bunny',
                                                    url: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov',
                                                    frameRate: 'undefined',
                                                    snapshotType: 'url',
                                                    snapshotRefresh: 10,
                                                    width: 640,
                                                    height: 360,
                                                    },
                                                }
                                        },
                                        

                                        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
                                        • C Offline
                                          claudia003
                                          last edited by

                                          The following forum is illustrative and commendable. I just want to add on that I am facing a vigorous circumstances regarding my home security camera Arlo pro 2 about the video streaming.I have been trying to fix this issues regarding the video streaming is not working in arlo pro add on camera.=by following the manuals as guided by the help desk support.Suggest us if we have to add on anything.

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            Number_5
                                            last edited by

                                            Hello i have a similar problem,

                                            I can’t see my ip- camera stream on the mirror. The stream can be seen by entering the IP in the VLC player but not in MagicMirror. In the MagicMirror i can only see a white frame.

                                            The recommendation
                                            rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
                                            implement in config.js i followeld.
                                            After a restart I could see the film in the mirror, but unfortunately only once, I swear I don’t have anything in the config. changed. Now I have only a white frame on the Mirror.

                                            I had to adjust the script from the configurator by a comma, otherwise the file config.js could not be found.

                                            My entry in the config.js for IP.camera:
                                            {
                                            module: “MMM-RTSPStream”,
                                            position: “middle_center”,
                                            header: “test1”,
                                            config: {
                                            autoStart: true,
                                            rotateStreams: true,
                                            rotateStreamTimeout: 10,
                                            moduleWidth: 354,
                                            moduleHeight: 240,
                                            localPlayer: ‘vlc’,
                                            remotePlayer: ‘none’,
                                            showSnapWhenPaused: true,
                                            remoteSnaps: true,
                                            shutdownDelay: 12,
                                            stream1: {
                                            name: ‘HaustÃr’,
                                            url: ‘rtsp://XXXX:XXXXX@192.XXX.2.108:80/cam/realmonitor?channel=2&subtype=0’,
                                            frameRate: ‘undefined’,
                                            snapshotType: ‘url’,
                                            snapshotRefresh: 10,
                                            width: undefined,
                                            height: undefined,
                                            },
                                            }
                                            },

                                            My entry in the config.js for Testvideo:

                                            {
                                            module: “MMM-RTSPStream”,
                                            position: “middle_center”,
                                            header: “MMM-RTSPStream Test”,
                                            config: {
                                            autoStart: true,
                                            rotateStreams: false,
                                            rotateStreamTimeout: 10,
                                            moduleWidth: 640,
                                            moduleHeight: 360,
                                            localPlayer: ‘omxplayer’,
                                            remotePlayer: ‘none’,
                                            showSnapWhenPaused: true,
                                            remoteSnaps: true,
                                            stream1: {
                                            name: ‘Buck Bunny’,
                                            url: ‘rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov’,
                                            frameRate: ‘undefined’,
                                            snapshotType: ‘url’,
                                            snapshotRefresh: 10,
                                            width: 640,
                                            height: 360,
                                            },
                                            }
                                            },

                                            step 7) pm2 flush

                                            pi@raspberrypi:~ $ pm2 flush
                                            [PM2] Flushing /home/pi/.pm2/pm2.log
                                            [PM2] Flushing:
                                            [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                                            [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                                            [PM2] Flushing:
                                            [PM2] /dev/null
                                            [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
                                            [PM2] Logs flushed
                                            pi@raspberrypi:~ $

                                            step 8) restart MM

                                            pi@raspberrypi:~ $ pm2 restart MagicMirror
                                            Use --update-env to update environment variables
                                            [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                                            [PM2] MagicMirror ✓
                                            ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                                            │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                                            ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                                            │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8828 │ 0s │ 1 │ online │ 0% │ 2.5mb │ pi │ disabled │
                                            │ 1 │ omx_stream1 │ default │ N/A │ fork │ 8774 │ 4s │ 226 │ online │ 0% │ 2.5mb │ pi │ disabled │
                                            └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                                            pi@raspberrypi:~ $

                                            step 9) check the logs

                                            pi@raspberrypi:~ $ pm2 logs --lines 200
                                            [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
                                            /home/pi/.pm2/pm2.log last 200 lines:
                                            PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:00: PM2 log: Stopping app:MagicMirror id:0
                                            PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
                                            PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
                                            PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
                                            PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
                                            PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=process killed
                                            PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] online
                                            PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:09: PM2 log: Stopping app:omx_stream1 id:1
                                            PM2 | 2020-02-01T16:05:09: PM2 log: App [omx_stream1:1] exited with code [0] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:09: PM2 log: pid=8949 msg=process killed
                                            PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] online
                                            PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] starting in -fork mode-
                                            PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] online

                                            /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
                                            /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
                                            /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
                                            0|MagicMir | [16:05:00.464] [LOG] Shutting down server…
                                            0|MagicMir | [16:05:00.465] [LOG] Stopping module helper: updatenotification
                                            0|MagicMir | [16:05:00.466] [LOG] Shutting down MMM-RTSPStream streams that were using vlc
                                            0|MagicMir | [16:05:00.467] [LOG] Killing DevilsPie2…
                                            0|MagicMir | [16:05:00.471] [LOG] Killing All VLC Streams…
                                            0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: MMM-PublicTransportHafas
                                            0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: calendar
                                            0|MagicMir | [16:05:00.473] [LOG] Stopping module helper: newsfeed
                                            0|MagicMir |
                                            0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
                                            0|MagicMir | > ./run-start.sh
                                            0|MagicMir |
                                            0|MagicMir | [16:05:07.112] [LOG] Starting MagicMirror: v2.10.0
                                            0|MagicMir | [16:05:07.122] [LOG] Loading config …
                                            0|MagicMir | [16:05:07.129] [LOG] Loading module helpers …
                                            0|MagicMir | [16:05:07.131] [LOG] No helper found for module: alert.
                                            0|MagicMir | [16:05:07.187] [LOG] Initializing new module helper …
                                            0|MagicMir | [16:05:07.189] [LOG] Module helper loaded: updatenotification
                                            0|MagicMir | [16:05:08.315] [LOG] Initializing new module helper …
                                            0|MagicMir | [16:05:08.315] [LOG] Module helper loaded: MMM-RTSPStream
                                            0|MagicMir | [16:05:08.628] [LOG] Initializing new module helper …
                                            0|MagicMir | [16:05:08.629] [LOG] Module helper loaded: MMM-PublicTransportHafas
                                            0|MagicMir | [16:05:08.630] [LOG] No helper found for module: clock.
                                            0|MagicMir | [16:05:08.631] [LOG] No helper found for module: currentweather.
                                            0|MagicMir | [16:05:08.632] [LOG] No helper found for module: weatherforecast.
                                            0|MagicMir | [16:05:08.706] [LOG] Initializing new module helper …
                                            0|MagicMir | [16:05:08.706] [LOG] Module helper loaded: calendar
                                            0|MagicMir | [16:05:08.740] [LOG] Initializing new module helper …
                                            0|MagicMir | [16:05:08.741] [LOG] Module helper loaded: newsfeed
                                            0|MagicMir | [16:05:08.741] [LOG] All module helpers loaded.
                                            0|MagicMir | [16:05:08.743] [LOG] Starting server on port 8080 …
                                            0|MagicMir | [16:05:08.758] [LOG] Server started …
                                            0|MagicMir | [16:05:08.760] [LOG] Connecting socket for: updatenotification
                                            0|MagicMir | [16:05:08.761] [LOG] Connecting socket for: MMM-RTSPStream
                                            0|MagicMir | [16:05:08.762] [LOG] PM2: Stopping all OMXPlayer Streams…
                                            0|MagicMir | [16:05:08.765] [LOG] Connecting socket for: MMM-PublicTransportHafas
                                            0|MagicMir | [16:05:08.766] [LOG] Connecting socket for: calendar
                                            0|MagicMir | [16:05:08.767] [LOG] Starting node helper for: calendar
                                            0|MagicMir | [16:05:08.768] [LOG] Connecting socket for: newsfeed
                                            0|MagicMir | [16:05:08.769] [LOG] Starting module: newsfeed
                                            0|MagicMir | [16:05:08.770] [LOG] Sockets connected & modules started …
                                            0|MagicMir | [16:05:08.999] [LOG] Launching application.
                                            0|MagicMir | [16:05:09.244] [LOG] PM2: Checking if omx_stream1 is running…
                                            0|MagicMir | [16:05:09.245] [LOG] PM2: Stopping omx_stream1…
                                            0|MagicMir | [16:05:11.221] [LOG] Transportation fetcher for station with id ‘xxx’ created.
                                            0|MagicMir | [16:05:11.394] [LOG] Transportation fetcher for station with id ‘xxx’ created.
                                            0|MagicMir | [16:05:11.398] [LOG] Create new calendar fetcher for url: https://calendar.gxxx- Interval: 300000
                                            0|MagicMir | [16:05:11.409] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
                                            0|MagicMir | [16:05:13.214] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 6xxx,874 --live --video_queue 4 --fps 30 --no-osd rtsp://xxx:xxx@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0
                                            0|MagicMir | [16:05:13.241] [LOG] Starting PM2 for omx_stream1
                                            0|MagicMir | [16:05:13.401] [LOG] PM2 started for omx_stream1
                                            0|MagicMir | [16:05:13.411] [LOG] Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://XXX@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0…
                                            0|MagicMir | [16:05:13.445] [INFO] DP2: Running window resizers…
                                            0|MagicMir | [16:05:20.485] [INFO] DP2: Running window resizers…

                                            1|omx_stream1 | have a nice day ;)
                                            PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                                            PM2 | App [omx_stream1:1] starting in -fork mode-
                                            PM2 | App [omx_stream1:1] online

                                            Can someone help me, to see the ip-camera on the magic-mirror ?
                                            thanks,

                                            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
                                            • 17
                                            • 18
                                            • 19
                                            • 20
                                            • 21
                                            • 30
                                            • 31
                                            • 19 / 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