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

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

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

                        I 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