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.
    • Cr4z33C Offline
      Cr4z33
      last edited by

      I am trying to have this module running succesfully in Ubuntu Desktop, but it doesn’t work right now.

      I ran the bash setup command and choosed the master build (dev build gave the same errors).

      [2020-07-14 16:46:29.279] [LOG]    Starting MagicMirror: v2.12.0
      [2020-07-14 16:46:29.282] [LOG]    Loading config ...
      [2020-07-14 16:46:29.284] [LOG]    Loading module helpers ...
      [2020-07-14 16:46:29.286] [LOG]    Initializing new module helper ...
      [2020-07-14 16:46:29.286] [LOG]    Module helper loaded: MMM-WatchDog
      [2020-07-14 16:46:29.335] [LOG]    Initializing new module helper ...
      [2020-07-14 16:46:29.335] [LOG]    Module helper loaded: MMM-Remote-Control
      [2020-07-14 16:46:29.339] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-rtsp-stream-es6'
      Require stack:
      - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
      - /home/cr4z33/MagicMirror/js/app.js
      - /home/cr4z33/MagicMirror/js/electron.js
      - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
      [2020-07-14 16:46:29.340] [LOG]    Loading module helpers ...
      [2020-07-14 16:46:29.340] [LOG]    Initializing new module helper ...
      [2020-07-14 16:46:29.340] [LOG]    Module helper loaded: MMM-WatchDog
      [2020-07-14 16:46:29.340] [LOG]    Initializing new module helper ...
      [2020-07-14 16:46:29.341] [LOG]    Module helper loaded: MMM-Remote-Control
      [2020-07-14 16:46:29.342] [ERROR]  App threw an error during load
      [2020-07-14 16:46:29.342] [ERROR]  Error: Cannot find module 'node-rtsp-stream-es6'
      Require stack:
      - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
      - /home/cr4z33/MagicMirror/js/app.js
      - /home/cr4z33/MagicMirror/js/electron.js
      - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
          at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
          at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Function.Module._load (internal/modules/cjs/loader.js:531:27)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object.<anonymous> (/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js:10:14)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
      [2020-07-14 16:46:29.343] [ERROR]  Whoops! There was an uncaught exception...
      [2020-07-14 16:46:29.343] [ERROR]  Error: Cannot find module 'node-rtsp-stream-es6'
      Require stack:
      - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
      - /home/cr4z33/MagicMirror/js/app.js
      - /home/cr4z33/MagicMirror/js/electron.js
      - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
          at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
          at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Function.Module._load (internal/modules/cjs/loader.js:531:27)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object.<anonymous> (/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js:10:14)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
          '/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js',
          '/home/cr4z33/MagicMirror/js/app.js',
          '/home/cr4z33/MagicMirror/js/electron.js',
          '/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
          undefined
        ]
      }
      [2020-07-14 16:46:29.345] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [2020-07-14 16:46:29.346] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [2020-07-14 16:46:29.414] [LOG]    Launching application.
      
      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Cr4z33
        last edited by sdetweil

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

        Error: Cannot find module ‘node-rtsp-stream-es6’

        did u do npm install in the “/home/cr4z33/MagicMirror/modules/MMM-RTSPStream” folder?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        Cr4z33C 1 Reply Last reply Reply Quote 0
        • Cr4z33C Offline
          Cr4z33 @sdetweil
          last edited by

          @sdetweil yep.

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Cr4z33
            last edited by

            @Cr4z33 can u try this

            cd ~/MagicMirror/modules/shbatm/MMM-RTSPStream
            ls node_modules/node-rtsp-stream-es6
            rm -rf node_modules/node-rtsp-stream-es6
            rm package-lock.json
            npm install
            ls node_modules/node-rtsp-stream-es6
            

            then try restarting MM

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            Cr4z33C 1 Reply Last reply Reply Quote 0
            • Cr4z33C Offline
              Cr4z33 @sdetweil
              last edited by

              @sdetweil thanks for helping! :)

              Last command showed an error that looks like (translated from Italian):

              cr4z33@Cr4z33-UbuntuDesktop-VM-Synology:~/MagicMirror/modules/MMM-RTSPStream$ 
              ls node_modules/node-rtsp-stream-es6
              ls: Cannot access 'node_modules/node-rtsp-stream-es6': File or directory does not exist
              

              In fact looking in the node_modules folder there’s no node-rtsp-stream-es6 directory. :thinking_face:

              I then thought it was a good idea running npm install node-rtsp-stream-es6 in the MMM-RTSPStream directory.
              The folder was created at last, but then I kept getting errors at MM launch:

              cr4z33@Cr4z33-UbuntuDesktop-VM-Synology:~/MagicMirror$ npm start
              
              > magicmirror@2.12.0 start /home/cr4z33/MagicMirror
              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
              
              [2020-07-15 08:58:08.182] [LOG]    Starting MagicMirror: v2.12.0
              [2020-07-15 08:58:08.184] [LOG]    Loading config ...
              [2020-07-15 08:58:08.186] [LOG]    Loading module helpers ...
              [2020-07-15 08:58:08.188] [LOG]    Initializing new module helper ...
              [2020-07-15 08:58:08.188] [LOG]    Module helper loaded: MMM-WatchDog
              [2020-07-15 08:58:08.231] [LOG]    Initializing new module helper ...
              [2020-07-15 08:58:08.232] [LOG]    Module helper loaded: MMM-Remote-Control
              [2020-07-15 08:58:08.354] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'datauri'
              Require stack:
              - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
              - /home/cr4z33/MagicMirror/js/app.js
              - /home/cr4z33/MagicMirror/js/electron.js
              - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
              - 
              [2020-07-15 08:58:08.354] [LOG]    Loading module helpers ...
              [2020-07-15 08:58:08.355] [LOG]    Initializing new module helper ...
              [2020-07-15 08:58:08.355] [LOG]    Module helper loaded: MMM-WatchDog
              [2020-07-15 08:58:08.355] [LOG]    Initializing new module helper ...
              [2020-07-15 08:58:08.355] [LOG]    Module helper loaded: MMM-Remote-Control
              [2020-07-15 08:58:08.356] [ERROR]  App threw an error during load
              [2020-07-15 08:58:08.356] [ERROR]  Error: Cannot find module 'datauri'
              Require stack:
              - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
              - /home/cr4z33/MagicMirror/js/app.js
              - /home/cr4z33/MagicMirror/js/electron.js
              - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
              - 
                  at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                  at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                  at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/module-alias/index.js:49:29)
                  at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                  at Module.require (internal/modules/cjs/loader.js:685:19)
                  at require (internal/modules/cjs/helpers.js:16:16)
                  at Object.<anonymous> (/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js:14:17)
                  at Module._compile (internal/modules/cjs/loader.js:786:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                  at Module.load (internal/modules/cjs/loader.js:645:32)
              [2020-07-15 08:58:08.357] [ERROR]  Whoops! There was an uncaught exception...
              [2020-07-15 08:58:08.357] [ERROR]  Error: Cannot find module 'datauri'
              Require stack:
              - /home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js
              - /home/cr4z33/MagicMirror/js/app.js
              - /home/cr4z33/MagicMirror/js/electron.js
              - /home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
              - 
                  at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                  at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                  at Function.Module._resolveFilename (/home/cr4z33/MagicMirror/node_modules/module-alias/index.js:49:29)
                  at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                  at Module.require (internal/modules/cjs/loader.js:685:19)
                  at require (internal/modules/cjs/helpers.js:16:16)
                  at Object.<anonymous> (/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js:14:17)
                  at Module._compile (internal/modules/cjs/loader.js:786:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                  at Module.load (internal/modules/cjs/loader.js:645:32) {
                code: 'MODULE_NOT_FOUND',
                requireStack: [
                  '/home/cr4z33/MagicMirror/modules/MMM-RTSPStream/node_helper.js',
                  '/home/cr4z33/MagicMirror/js/app.js',
                  '/home/cr4z33/MagicMirror/js/electron.js',
                  '/home/cr4z33/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                  undefined
                ]
              }
              [2020-07-15 08:58:08.359] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              [2020-07-15 08:58:08.359] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              [2020-07-15 08:58:08.412] [LOG]    Launching application.
              
              1 Reply Last reply Reply Quote 0
              • Cr4z33C Offline
                Cr4z33
                last edited by

                Problem sorted by manually untarring the module from a previous (RPI4) backup.

                Basically the module installation in Ubuntu could not be completed properly and therefore a lot of stuff was missing. :)

                1 Reply Last reply Reply Quote 0
                • Cr4z33C Offline
                  Cr4z33
                  last edited by Cr4z33

                  Hmmm one more issue came out…

                  While opting to go for Debian 10.x instead of Ubuntu I notice now that the stream window doesn’t go where it should.

                  Basically I choosed to place it on bottom right, but it pops in a vlc titled window (and in the wrong position) instead. :confused_face:

                  Here’s the screenshot:
                  https://imgur.com/QUiumaA

                  BKeyportB 1 Reply Last reply Reply Quote 0
                  • BKeyportB Offline
                    BKeyport Module Developer @Cr4z33
                    last edited by

                    @Cr4z33 RTSPStream uses an external utility to move VNC around the screen, it’s entirely possible that utility doesn’t work in Debian or isn’t installed in your version.

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

                    Cr4z33C 1 Reply Last reply Reply Quote 0
                    • Cr4z33C Offline
                      Cr4z33 @BKeyport
                      last edited by Cr4z33

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • Cr4z33C Offline
                        Cr4z33
                        last edited by Cr4z33

                        This module needs to be fixed asap.

                        The developer @shbatm seems to have abandoned the project since many weeks/months and the module was a real good add to MagicMirror.

                        After latest MM upgrades it has broken and now streams come up in weird huge size and in a wrong position (stream position config settings get COMPLETELY ignored).

                        If someone skilled enough would be willing to post please a fix?

                        I assume it’s just a matter of some node_helper.js edit, but I have zero knowledge of JavaScript language…

                        @BKeyport are you able to do that please? :smiling_face_with_open_mouth_cold_sweat:

                        1 Reply Last reply Reply Quote 0
                        • Cr4z33C Offline
                          Cr4z33
                          last edited by

                          OK I solved the problem by replacing this module with MMM-FreeboxTV. 👋

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jasim @Cr4z33
                            last edited by

                            @Cr4z33
                            Do you have a link to the module: MMM-FreeboxTV

                            S Cr4z33C 2 Replies Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @jasim
                              last edited by

                              @jasim Google is your friend
                              search with
                              modulename GitHub

                              will find it every time

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              K 1 Reply Last reply Reply Quote 0
                              • Cr4z33C Offline
                                Cr4z33 @jasim
                                last edited by

                                @jasim https://github.com/bugsounet/MMM-FreeboxTV

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jasim @Cr4z33
                                  last edited by

                                  @Cr4z33
                                  Can I display RTSPStream from an IP camera in the module?

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    costascontis
                                    last edited by

                                    module still works for me using vlc at my rpi3b.I just need to find a way to restart the stream cause sometimes stream stops and need to manually press “pause” wait some seconds ,and press play again to start stream.Any ideas?Can i use pm2 somehow when this is happening?

                                    K 1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      KumarTRD @costascontis
                                      last edited by

                                      @costascontis would you be willing to help get my RTSPStream up and running? Been trying for some time now but keep hitting walls.

                                      BKeyportB Cr4z33C 2 Replies Last reply Reply Quote 0
                                      • BKeyportB Offline
                                        BKeyport Module Developer @KumarTRD
                                        last edited by

                                        @KumarTRD I’d highly recommend using a different module if possible.

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

                                        K 1 Reply Last reply Reply Quote 0
                                        • Cr4z33C Offline
                                          Cr4z33 @KumarTRD
                                          last edited by

                                          @KumarTRD go for MMM-FreeboxTV.

                                          It does everything you need.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            goprojojo @Cr4z33
                                            last edited by

                                            @Cr4z33 how would it solve the rtsp stream. Do you have an example?

                                            Cr4z33C 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
                                            • 26
                                            • 27
                                            • 28
                                            • 29
                                            • 30
                                            • 31
                                            • 28 / 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