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.9m 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.
    • N Offline
      Number_5
      last edited by

      yes, thats correct, querry follows after confirmation the url. then the stream follows

      thanks for your help.

      evroomE 2 Replies Last reply Reply Quote 0
      • evroomE Offline
        evroom @Number_5
        last edited by

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

        User, passwot from camera, id from raspberry, port as suggested,

        I suggested to NOT use a port, so to ditch the :80 or :554.
        And when using the omxplayer command, you will need to supply the cam IP.
        Does your spelling check change the word IP in id??
        I know it can be confusing, but you will need to read things right in order for us (the community) to be able to help you. He says in a friendly tone and manner :-)

        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)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @evroom
          last edited by sdetweil

          @evroom he did that

          pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0'
          

          no port specified, has camera ip that worked with vlc.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          evroomE 2 Replies Last reply Reply Quote 0
          • evroomE Offline
            evroom @Number_5
            last edited by

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

            yes, thats correct, querry follows after confirmation the url. then the stream follows

            Then we might have a parsing issue with your URL.
            I think your password may cause a problem.
            The ! an ? may cause a problem as they have meaning for your bash shell.
            Have to think on that …

            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
            • evroomE Offline
              evroom @sdetweil
              last edited by evroom

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

              he did that

              Sorry, then I misread.
              I read:

              url: ‘rtsp://admin:roland!?1971@192.168.2.140.2.108:554/cam/realmonitor?channel=2&subtype=0’,
              

              So now I am confused :-)

              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)

              S 1 Reply Last reply Reply Quote 0
              • evroomE Offline
                evroom @Number_5
                last edited by

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

                thats my config.js

                So it means you were able to get the RTSP config to open?
                And when you entered the URL for your cam, did it show you a video stream from your cam?
                I forgot if it does do that, or just builds the config part for config.js.

                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)

                N 1 Reply Last reply Reply Quote 0
                • evroomE Offline
                  evroom @sdetweil
                  last edited by

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

                  no port specified, has camera ip that worked with vlc.

                  What bothers me, is the fact that vlc did not take the supplied user and password, but queried again for it.
                  omxplayer will not do that; will just fail to open.

                  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
                  • S Offline
                    sdetweil @evroom
                    last edited by

                    @evroom i was looking at the standalone omxplayer commandline we asked him to execute, not the
                    config

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      Number_5 @evroom
                      last edited by

                      @evroom

                      i have done 2 things.

                      a) create the textfile and opened it in the vlc player on raspberry - then answered the querry (user and id)j, so i could saw the camerastream

                      b) followed your steps:
                      step 6
                      Add the module to the config.js (replace the initial one):
                      vi ~/MagicMirror/config/config.js
                      after execute the commando "vi ~/MagicMirror/config/config.js " in commandline , the config.js openend

                      evroomE 1 Reply Last reply Reply Quote 0
                      • evroomE Offline
                        evroom @Number_5
                        last edited by

                        @Number_5

                        Could you please change your admin password of your cam to something without characters like ! and & ?
                        When really needed, use + and/or _.

                        Perhaps omxplayer has a parsing problem.
                        Even tough we use single quotes to avoid this.
                        I get the same error when using ?.

                        Then try (with the changed password):

                        omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland_1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0'
                        

                        You can also try the vlc player ‘trick’.
                        IMHO it should not ask for user & password.

                        Also try to play with the port.
                        Either nothing, or :80 or :554.

                        Btw, 192.168.2.140.2.108 is not a valid IP address.
                        It is either 192.168.2.108 or 192.168.2.140.
                        I guess 192.168.2.140 is your MM / Rasperry Pi IP and 192.168.2.108 is your Dahua cam IP.

                        Good luck.

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