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 snapshots

    Scheduled Pinned Locked Moved Utilities
    5 Posts 2 Posters 1.1k Views 2 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 dwburger

      I’d like to use MMM-RTSPStream to display a snapshot of my Wyze camera’s RTSP stream every 5 minutes. I can manually generate a .jpg snapshot using the following console command:

      ffmpeg -y -i rtsp://#myUsername#:#myPassword#@192.168.1.117:554/live -vframes 1 /home/pi/image.jpg

      However, I can’t get this file created or displayed on my MM2 screen using MMM-RTSPStream. All I see on my MM2 screen is a dark-gray area surrounded by a white frame in the bottom-right corner of the screen. Based on my reading of the module’s instructions, I should be able to do this. Below is the MMM-RTSPStream section of my MM2 config.js file. Maybe someone can spot my error(s) that’s keeping this from working properly??? Thanks for any help provided.

      {
          module: "MMM-RTSPStream",
          position: "bottom_right",
          config: {
              autoStart: true,
              rotateStreams: false,
              rotateStreamTimeout: 10,
              moduleWidth: 354,
              moduleHeight: 250,
              localPlayer: 'ffmpeg',
              remotePlayer: 'ffmpeg',
              showSnapWhenPaused: true,
              remoteSnaps: true,
              shutdownDelay: 12,
              stream1: {
                  name: 'DWBPanCam',
                  url: 'rtsp://#myUsername#:#myPassword#@192.168.1.117/live',
                  frameRate: '15',
                  hdUrl: 'rtsp://#myUsername#:#myPassword#@192.168.1.117/live',
      	    snapshotUrl: '/home/pi',
      	    snapshotType: 'file',
      	    snapshotRefresh: 60,
      	    protocol: 'tcp',
                  width: undefined,
                  height: undefined,
                  ffmpegPort: 554,
                  },
              }
      },
      
      S 1 Reply Last reply Reply Quote 1
      • S Away
        sdetweil @dwburger
        last edited by sdetweil

        @dwburger please use the code block around config info

        select text and press the </> button to wrap the selected text in a code block…

        please edit and correct

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dwburger @sdetweil
          last edited by

          @sdetweil Done. Learned something new today.

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @dwburger
            last edited by

            @dwburger thank you… so much more helpful!!

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              dwburger
              last edited by

              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
              • 1 / 1
              • 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