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
      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
                • 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.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 @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.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
                      • 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
                        • 1
                        • 2
                        • 45
                        • 46
                        • 47
                        • 48
                        • 49
                        • 60
                        • 61
                        • 47 / 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