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 1.9m 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.
    • 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.30.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.30.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.30.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.30.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.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.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

                      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
                        • 1
                        • 2
                        • 35
                        • 36
                        • 37
                        • 38
                        • 39
                        • 60
                        • 61
                        • 37 / 61
                        • 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