• 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.7m 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.
  • D Offline
    dwburger
    last edited by Jun 28, 2020, 5:55 PM

    I thought I would put a close to my efforts here with the following:

    I believe I’ve found a solution. I decided to use ffmpeg from the RPi4 command line to save an image from the RTSP stream every 5 minutes. Every 5 minutes the new image overwrites the previous one, thus using the same filename. Then, I’m using mykle1’s MMM-EyeCandy module to display that sole image that’s housed in the /pix folder for that module. So, after several hours, ffmpeg continues to run (although it throws lots of “missed packet” errors), but it doesn’t abort. I’ll put ffmpeg under pm2 control next. Now, using MMM-EyeCandy, I’m getting a new image from my Wyze camera in the lower-right corner of my MM2 every 5 minutes. This is all I needed to stay reasonably up-to-date with what’s happening in front of that camera.

    1 Reply Last reply Reply Quote 0
    • C Offline
      Cr4z33
      last edited by Jun 30, 2020, 2:33 PM

      @shbatm I’ve moved MagicMIrror to a brand new RPI 4.

      Can you see any reason why 1080i/1080p streams are not showing into your module?

      I can hear them, but not see them. :confused_face:

      This happens both if using omxplayer and VLC.

      Standard resolution streams show up normally.

      @evroom what about your experience?
      Did you get a RPI 4 too?

      1 Reply Last reply Reply Quote 0
      • B Offline
        BKeyport Module Developer
        last edited by Jun 30, 2020, 7:35 PM

        That’s sounding like you’re plugged into the wrong HDMI port - make sure you’re using the port closest to the power supply.

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

        C 1 Reply Last reply Jul 1, 2020, 2:47 PM Reply Quote 0
        • C Offline
          Cr4z33 @BKeyport
          last edited by Jul 1, 2020, 2:47 PM

          @BKeyport it is already connected there. :D

          Fact is that 1080p videos, streams, etc. work perfectly if running in VLC as standalone.

          The same does NOT happen when using VLC (or OMXplayer) in this module.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BKeyport Module Developer
            last edited by Jul 1, 2020, 5:00 PM

            OK, that’s weird (but expected)

            I never could get VLC to work. I can’t recall if OMX was working or not in the last public release, the developer branch was opposite.

            I use OMX independently now, using @evroom 's method, however, that requires the may 2020 update to fix a number of bugs in my case.

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

            C 1 Reply Last reply Jul 2, 2020, 12:19 PM Reply Quote 0
            • C Offline
              Cr4z33 @BKeyport
              last edited by Jul 2, 2020, 12:19 PM

              @BKeyport could you please share the link here?

              I would like to give it a try because right now OMXplayer embedded streams are playing in a wrong resize (almost full screen lol). :D

              B 1 Reply Last reply Jul 2, 2020, 5:06 PM Reply Quote 0
              • B Offline
                BKeyport Module Developer @Cr4z33
                last edited by Jul 2, 2020, 5:06 PM

                @Cr4z33 It’s sprinkled throughout this post. This will take you to where I talk about it, Evroom’s convo is earlier, but there’s a link in my post about it. Feel free to use this post for help on this.

                https://forum.magicmirror.builders/post/69779

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  twosquirrels @dwburger
                  last edited by Jul 9, 2020, 2:18 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    twosquirrels @dwburger
                    last edited by Jul 9, 2020, 2:21 PM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Cr4z33
                      last edited by Jul 14, 2020, 4:25 PM

                      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 Jul 14, 2020, 4:43 PM Reply Quote 0
                      • 1
                      • 2
                      • 52
                      • 53
                      • 54
                      • 55
                      • 56
                      • 60
                      • 61
                      • 54 / 61
                      54 / 61
                      • First post
                        531/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