• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.6m 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.
  • E Offline
    evroom @BKeyport
    last edited by Jan 3, 2020, 3:25 PM

    @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
    • E Offline
      evroom
      last edited by Jan 3, 2020, 3:31 PM

      @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 Jan 5, 2020, 4:32 PM

        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 Jan 7, 2020, 5:17 PM

          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 ...
          
          
          E 1 Reply Last reply Jan 7, 2020, 5:29 PM Reply Quote 0
          • E Offline
            evroom @iorifly
            last edited by Jan 7, 2020, 5:29 PM

            @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 Jan 7, 2020, 5:31 PM Reply Quote 0
            • I Offline
              iorifly @evroom
              last edited by iorifly Jan 7, 2020, 5:40 PM Jan 7, 2020, 5:31 PM

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

              E 1 Reply Last reply Jan 7, 2020, 5:46 PM Reply Quote 0
              • E Offline
                evroom @iorifly
                last edited by Jan 7, 2020, 5:46 PM

                @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 Jan 7, 2020, 5:47 PM Reply Quote 0
                • I Offline
                  iorifly @evroom
                  last edited by Jan 7, 2020, 5:47 PM

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

                  E 2 Replies Last reply Jan 7, 2020, 7:03 PM Reply Quote 0
                  • E Offline
                    evroom @iorifly
                    last edited by evroom Jan 7, 2020, 7:08 PM Jan 7, 2020, 7:03 PM

                    @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
                    • E Offline
                      evroom @iorifly
                      last edited by Jan 7, 2020, 7:05 PM

                      @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
                      • 1
                      • 2
                      • 36
                      • 37
                      • 38
                      • 39
                      • 40
                      • 60
                      • 61
                      • 38 / 61
                      38 / 61
                      • First post
                        380/602
                        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