• 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.8m 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.
  • H Offline
    Hram2008 @evroom
    last edited by Sep 30, 2020, 12:17 AM

    @evroom
    Thank you for the details, I am happy to report that the shared config also works for the Axis
    Q3615. Thank you assist.

    1 Reply Last reply Reply Quote 0
    • W Offline
      warrendt @evroom
      last edited by Sep 30, 2020, 7:33 AM

      @evroom thanks for this, I am trying to get my vivotek cameras working,

      omxplayer --avdict rtsp_transport:tcp --win 85,65,725,425 --live --video_queue 4 --fps 30 --no-osd rtsp://user:password@192.168.1.###/live1s3.sdp

      This works great, and I see the feed perfect in the OMX player,

      However, my config in the plugin doesn’t. I just get a black box. Any ideas would be appreciated.

      		module: "MMM-RTSPStream",
      			//disabled: false,
      			//disabled: true,
      			position: "top_right",
      			header: "Cameras",
      			config: {
      				autoStart: true,
      				rotateStreams: false,
      				moduleWidth: 640,
      				moduleHeight: 480,
      				localPlayer: 'omxplayer',
      				remotePlayer: 'none',
      				showSnapWhenPaused: false,
      				remoteSnaps: false,
      				stream1: {
      					name: 'Driveway',
      					url: 'rtsp://user:password@192.168.1.###/live1s3.sdp',
      					frameRate: "30",
      					protocol: "tcp",
      					width: 640,
      					height: 480,
      					omxRestart: 1,
      					hwAccel: true,
      					}
          		}
      		},
      
      E 1 Reply Last reply Sep 30, 2020, 11:48 AM Reply Quote 0
      • E Offline
        evroom @warrendt
        last edited by Sep 30, 2020, 11:48 AM

        @warrendt

        Can you check following ?

        Process omx_stream1 present:

        $ pm2 status
        
        $ ps -eaf | grep -v grep | grep omxplayer
        

        Entries in pm2 log:

        $ pm2 logs --lines 100
        

        Might need to flush the logs and restart MM in order to show new RTSPStream log entries:

        $ pm2 flush
        $ pm2 restart MagicMirror
        
        $ pm2 logs --lines 100
        

        omxplayer version:

        $ omxplayer -version
        

        MMM-RTSPStream git status

        $ cd ~/MagicMirror/modules/MMM-RTSPStream
        $ git status
        

        I am on the develop branch, you might need o switch to that too.

        $ cd ~/MagicMirror/modules/MMM-RTSPStream
        $ git checkout develop
        $ npm install
        

        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
        • R Offline
          rhopkins7428 @Hram2008
          last edited by Oct 4, 2020, 11:14 PM

          @Hram2008

          TLDR, I switched from VLC to omxplayer and my previously working config started working again

          I’m using hikvision cameras,
          I was having a similar issue, migrating from an working configuration on an old PI3 to a new fresh image on PI4,
          fresh Magic Mirror/ and MMM-RTSPStream install, copied original config over but both VLC windows black.

          You can click pause on each window, (then shows correct window name) but when you resume it’s just black windows. I confirmed running VLC standalone, using the open network URL, pasted same URL in config and it worked fine. (Like I mentioned running on an older PI no problems)

          Anyway, I changed player to omxplayer in the config and it worked immediately, not sure why VLC in MM not working…

          my config:

          {
          module: “MMM-RTSPStream”,
          position: “top_left”,
          config: {
          autoStart: true,
          rotateStreams: false,
          rotateStreamTimeout: 10,
          moduleWidth: 354,
          moduleHeight: 240,
          localPlayer: ‘omxplayer’,
          remotePlayer: ‘none’,
          showSnapWhenPaused: true,
          remoteSnaps: false,
          shutdownDelay: 12,
          stream1: {
          name: ‘Driveway’,
          url: ‘rtsp://admin:secret@10.99.98.101:554//Streaming/Channels/2’,
          frameRate: ‘undefined’,
          snapshotType: ‘url’,
          snapshotRefresh: 10,
          width: undefined,
          height: undefined,
          },
          stream2: {
          name: ‘Front Door’,
          url: ‘rtsp://admin:secret@10.99.98.37:554//Streaming/Channels/2’,
          frameRate: ‘undefined’,
          snapshotType: ‘url’,
          snapshotRefresh: 10,
          width: undefined,
          height: undefined,
          },
          }
          },

          1 Reply Last reply Reply Quote 1
          • B Offline
            BKeyport Module Developer
            last edited by Oct 4, 2020, 11:29 PM

            Sometimes with this app you gotta jiggle the handle.

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

            1 Reply Last reply Reply Quote 1
            • B Offline
              bhepler Module Developer
              last edited by bhepler Nov 16, 2020, 3:53 AM Nov 16, 2020, 3:50 AM

              This may be a bit weird, but I’m trying to install this on a non-RaspberryPi piece of hardware running Ubuntu 20. Is there a manual installation process that doesn’t require OMXPlayer?I realize that it will limit my options to VLC, but I’m willing to try. I’m getting caught up on it trying to install a player that isn’t available on Ubuntu.

              I tried installing OMXPlayer through the Snap store, but because the hardware is AMD64, it’s not available.

              1 Reply Last reply Reply Quote 0
              • E Offline
                Egnos
                last edited by Egnos Jan 13, 2021, 4:37 PM Jan 13, 2021, 4:36 PM

                Hi everyone,
                I believe that the MMM - RTSPStream module is incompatible with the MMM-Pages multi page module!
                By removing MMM-Pages, the RTSPStream module works again.
                The link for the video stream works correctly both with VLC and with the “omxplayer” command.

                The version of MM I am using is the latest available 2.14.0.

                The error I find in the console is the following:

                MMM-RTSPStream.js:164 MMM-RTSPStream has resumed... rotateStreams: true, autoStart: true
                MMM-RTSPStream.js:368 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
                    at Class.playStream (MMM-RTSPStream.js:368)
                    at Class.rotateStream (MMM-RTSPStream.js:123)
                    at Class.setupStreamRotation (MMM-RTSPStream.js:94)
                    at Class.resumed (MMM-RTSPStream.js:168)
                    at newCallback (MMM-RTSPStream.js:186)
                    at main.js:324
                

                Here is my configuration:

                {
                		   module: "MMM-RTSPStream",
                		   position: "bottom_right",
                		   header: "Test",
                		   config: {
                			    //initialSetup: true,
                				autoStart: true,
                				rotateStreams: true,
                				rotateStreamTimeout: 10,
                				moduleWidth: 354,
                				moduleHeight: 240,
                				localPlayer: 'omxplayer',
                				remotePlayer: 'none',
                				showSnapWhenPaused: false,
                				remoteSnaps: false,
                				
                				stream1: {
                					name: 'Ingresso',
                					url: 'rtsp://xxxxxxxxxxx:xxxxxxxxx@xxx.xxx.x.xxx:554/stream1',
                					frameRate: 'undefined',
                					//width: undefined,
                					//height: undefined,
                						},
                				}
                		},
                

                In the “bottom_right” region what I see:
                alt text

                Have any of you noticed this incompatibility?

                Any advice / help is welcome.
                Thanks.

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                B JerryPJ 2 Replies Last reply Jan 13, 2021, 11:28 PM Reply Quote 0
                • B Offline
                  BKeyport Module Developer @Egnos
                  last edited by Jan 13, 2021, 11:28 PM

                  @Egnos Don’t have a clue myself, and this module is no longer supported. :(

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

                  E 1 Reply Last reply Jan 14, 2021, 8:06 AM Reply Quote 0
                  • E Offline
                    Egnos @BKeyport
                    last edited by Jan 14, 2021, 8:06 AM

                    @BKeyport thanks.
                    Do you know any other module that can show the stream of surveillance cameras?

                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                    Cr4z33C 1 Reply Last reply Jan 14, 2021, 10:19 AM Reply Quote 0
                    • Cr4z33C Offline
                      Cr4z33 @Egnos
                      last edited by Jan 14, 2021, 10:19 AM

                      @Egnos as I wrote already some pages ago there’s MMM-FreeboxTV.

                      Similar this module, but most of all it works.

                      E 1 Reply Last reply Jan 14, 2021, 10:34 AM Reply Quote 0
                      • 1
                      • 2
                      • 56
                      • 57
                      • 58
                      • 59
                      • 60
                      • 61
                      • 58 / 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