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.
    • 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.33.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.33.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
        • N Offline
          Number_5
          last edited by

          ok, sorry,

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

          evroomE 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:

            after execute the commando "vi ~/MagicMirror/config/config.js " in commandline , the config.js openend

            Yes, sorry about that, vi is a text editor.
            Close it with :q! or [ESC]:q! (where [ESC] is the escape key)
            Then use the editor of your choice, like nano.

            nano ~/MagicMirror/config/config.js
            

            MagicMirror version: 2.33.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.33.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 @Number_5
              last edited by

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

              ok, sorry,

              I am sorry too :-)

              Did you change the actual password of your cam or just changed the text in the admin:roland!?1971 part ?

              I do not have a Dahua cam, so I do not know where and how to set it.
              Probably there is a GUI (a web page) where you can do this.
              I guess you can open it like this:
              http://192.168.2.108
              But once you did set it to the password we are seeing right now, so you ought to know :-)

              MagicMirror version: 2.33.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.33.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
              • N Offline
                Number_5
                last edited by

                Hello,
                would like to give you an interim report.

                1. password has been changed, none
                !?
                
                
                1. Stream with VlC programm possible, without query , :-)
                2. no error in the log file, see below
                3. i will try more on Friday or Saturday
                pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
                Vcodec id unknown: ad
                have a nice day ;)
                
                pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108/cam/realmonitor?channel=2&subtyp
                e=0'
                Vcodec id unknown: ad
                have a nice day ;)
                
                pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
                Vcodec id unknown: ad
                have a nice day ;)
                
                pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&su
                btype=0'
                Vcodec id unknown: ad
                have a nice day ;)
                
                pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                18:31:12 T:1550613812   DEBUG: DllBcm: Using omx system library
                18:31:12 T:1550615108   DEBUG: DllOMX: Using omx system library
                18:31:12 T:1550615746   DEBUG: DllAvFormat: Using libavformat system library
                18:31:12 T:1550617254   DEBUG: DBus connection succeeded
                18:31:12 T:1550618196   DEBUG: Keyboard: DBus connection succeeded
                18:31:12 T:1550618346   DEBUG: OMXThread::Create - Thread with id -1388339520 started
                18:31:12 T:1550618446   DEBUG: DllAvUtilBase: Using libavutil system library
                18:31:12 T:1550618468   DEBUG: DllAvCodec: Using libavcodec system library
                18:31:12 T:1550618487   DEBUG: DllAvFormat: Using libavformat system library
                18:31:12 T:1550618829   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0
                18:31:12 T:1550714583   DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
                18:31:13 T:1551680437   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x6d6140
                18:31:13 T:1551681127   DEBUG: OMXClock::OMXStop
                18:31:13 T:1551681450   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
                18:31:13 T:1551681918   DEBUG: DllAvUtilBase: Using libavutil system library
                18:31:13 T:1551681973   DEBUG: DllAvCodec: Using libavcodec system library
                18:31:13 T:1551682018   DEBUG: DllAvFormat: Using libavformat system library
                18:31:13 T:1551682225   DEBUG: OMXClock::OMXStop
                18:31:13 T:1551684333   DEBUG: OMXThread::Run - Exited thread with  id -1388339520
                18:31:13 T:1551684932   DEBUG: OMXThread::StopThread - Thread stopped
                18:31:13 T:1551688082   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x6d6140
                

                Thanks for your help

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

                  Hello,
                  thats the logfile without a port:

                  omxplayer --genlog --avdict rtsp_transport:tcp -pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0'
                  
                  Vcodec id unknown: ad
                  have a nice day ;)
                  
                  pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                  20:09:20 T:18446744072557925778   DEBUG: DllBcm: Using omx system library
                  20:09:20 T:18446744072557926899   DEBUG: DllOMX: Using omx system library
                  20:09:20 T:18446744072557927508   DEBUG: DllAvFormat: Using libavformat system library
                  20:09:20 T:18446744072557928896   DEBUG: DBus connection succeeded
                  20:09:20 T:18446744072557929631   DEBUG: Keyboard: DBus connection succeeded
                  20:09:20 T:18446744072557929778   DEBUG: OMXThread::Create - Thread with id -1388339520 started
                  20:09:20 T:18446744072557929873   DEBUG: DllAvUtilBase: Using libavutil system library
                  20:09:20 T:18446744072557929894   DEBUG: DllAvCodec: Using libavcodec system library
                  20:09:20 T:18446744072557929910   DEBUG: DllAvFormat: Using libavformat system library
                  20:09:20 T:18446744072557930230   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0
                  20:09:20 T:18446744072558104967   DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
                  20:09:21 T:18446744072559101936   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170
                  20:09:21 T:18446744072559102429   DEBUG: OMXClock::OMXStop
                  20:09:21 T:18446744072559102650   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
                  20:09:21 T:18446744072559103080   DEBUG: DllAvUtilBase: Using libavutil system library
                  20:09:21 T:18446744072559103130   DEBUG: DllAvCodec: Using libavcodec system library
                  20:09:21 T:18446744072559103172   DEBUG: DllAvFormat: Using libavformat system library
                  20:09:21 T:18446744072559103634   DEBUG: OMXClock::OMXStop
                  20:09:21 T:18446744072559115423   DEBUG: OMXThread::Run - Exited thread with  id -1388339520
                  20:09:21 T:18446744072559115981   DEBUG: OMXThread::StopThread - Thread stopped
                  20:09:21 T:18446744072559118051   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170
                  
                  1 Reply Last reply Reply Quote 0
                  • evroomE Offline
                    evroom @Number_5
                    last edited by

                    @Number_5

                    Can you try this, to try to see what codec is used?

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

                    MagicMirror version: 2.33.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.33.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
                    • N Offline
                      Number_5
                      last edited by

                      pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
                      
                      /usr/bin/omxplayer.bin: unrecognized option '--win,424,1138,666'
                      
                      pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                      20:09:20 T:18446744072557925778   DEBUG: DllBcm: Using omx system library
                      20:09:20 T:18446744072557926899   DEBUG: DllOMX: Using omx system library
                      20:09:20 T:18446744072557927508   DEBUG: DllAvFormat: Using libavformat system library
                      20:09:20 T:18446744072557928896   DEBUG: DBus connection succeeded
                      20:09:20 T:18446744072557929631   DEBUG: Keyboard: DBus connection succeeded
                      20:09:20 T:18446744072557929778   DEBUG: OMXThread::Create - Thread with id -1388339520 started
                      20:09:20 T:18446744072557929873   DEBUG: DllAvUtilBase: Using libavutil system library
                      20:09:20 T:18446744072557929894   DEBUG: DllAvCodec: Using libavcodec system library
                      20:09:20 T:18446744072557929910   DEBUG: DllAvFormat: Using libavformat system library
                      20:09:20 T:18446744072557930230   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0
                      20:09:20 T:18446744072558104967   DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
                      20:09:21 T:18446744072559101936   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170
                      20:09:21 T:18446744072559102429   DEBUG: OMXClock::OMXStop
                      20:09:21 T:18446744072559102650   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
                      20:09:21 T:18446744072559103080   DEBUG: DllAvUtilBase: Using libavutil system library
                      20:09:21 T:18446744072559103130   DEBUG: DllAvCodec: Using libavcodec system library
                      20:09:21 T:18446744072559103172   DEBUG: DllAvFormat: Using libavformat system library
                      20:09:21 T:18446744072559103634   DEBUG: OMXClock::OMXStop
                      20:09:21 T:18446744072559115423   DEBUG: OMXThread::Run - Exited thread with  id -1388339520
                      20:09:21 T:18446744072559115981   DEBUG: OMXThread::StopThread - Thread stopped
                      20:09:21 T:18446744072559118051   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170
                      pi@raspberrypi:~/MagicMirror $
                      
                      evroomE 1 Reply Last reply Reply Quote 0
                      • evroomE Offline
                        evroom @Number_5
                        last edited by

                        @Number_5

                        Copy/paste error on my side

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

                        Hope this works better.

                        MagicMirror version: 2.33.0
                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                        Raspbian GNU/Linux 12 (bookworm)

                        Test environment:
                        MagicMirror version: v2.33.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
                        • N Offline
                          Number_5
                          last edited by

                          Hello evroom,
                          thats the result.

                          pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
                          
                          [rtsp @ 0x1e70770] method OPTIONS failed: 401 Unauthorized
                          have a nice day ;)
                          
                          pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                          20:59:38 T:1866439265   DEBUG: DllBcm: Using omx system library
                          20:59:38 T:1866440312   DEBUG: DllOMX: Using omx system library
                          20:59:38 T:1866440900   DEBUG: DllAvFormat: Using libavformat system library
                          20:59:38 T:1866442436   DEBUG: DBus connection succeeded
                          20:59:38 T:1866443340   DEBUG: Keyboard: DBus connection succeeded
                          20:59:38 T:1866443488   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                          20:59:38 T:1866443585   DEBUG: DllAvUtilBase: Using libavutil system library
                          20:59:38 T:1866443604   DEBUG: DllAvCodec: Using libavcodec system library
                          20:59:38 T:1866443620   DEBUG: DllAvFormat: Using libavformat system library
                          20:59:38 T:1866443952   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re
                          almonitor?channel=2&subtype=0
                          20:59:38 T:1866474815   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re
                          almonitor?channel=2&subtype=0
                          20:59:38 T:1866484802   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                          20:59:38 T:1866485061   DEBUG: OMXThread::StopThread - Thread stopped
                          pi@raspberrypi:~/MagicMirror $
                          
                          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:

                            401 Unauthorized

                            Did you supply your user and password iso xxx.xxx ?

                            MagicMirror version: 2.33.0
                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                            Raspbian GNU/Linux 12 (bookworm)

                            Test environment:
                            MagicMirror version: v2.33.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
                            • N Offline
                              Number_5
                              last edited by

                              Yes, I changed it in xxx.xxx when I send the log to the the fourm

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

                                @Number_5

                                One more thing.
                                Can you also try with subtype=1 and subtype=2 ?

                                Looks to be a decoding issue and subtype=0 might be too new for omxplayer.
                                Someone claims this is working:

                                channel=1&subtype=2
                                

                                MagicMirror version: 2.33.0
                                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                Raspbian GNU/Linux 12 (bookworm)

                                Test environment:
                                MagicMirror version: v2.33.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
                                • N Offline
                                  Number_5
                                  last edited by

                                  here the result

                                  p```
                                  i@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1'
                                  
                                  [rtsp @ 0xaf9770] method OPTIONS failed: 401 Unauthorized
                                  have a nice day ;)
                                  pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                                  21:22:31 T:18446744072654331549   DEBUG: DllBcm: Using omx system library
                                  21:22:31 T:18446744072654332606   DEBUG: DllOMX: Using omx system library
                                  21:22:31 T:18446744072654333203   DEBUG: DllAvFormat: Using libavformat system library
                                  21:22:31 T:18446744072654334714   DEBUG: DBus connection succeeded
                                  21:22:31 T:18446744072654335626   DEBUG: Keyboard: DBus connection succeeded
                                  21:22:31 T:18446744072654335771   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                                  21:22:31 T:18446744072654335867   DEBUG: DllAvUtilBase: Using libavutil system library
                                  21:22:31 T:18446744072654335887   DEBUG: DllAvCodec: Using libavcodec system library
                                  21:22:31 T:18446744072654335903   DEBUG: DllAvFormat: Using libavformat system library
                                  21:22:31 T:18446744072654336238   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1
                                  21:22:31 T:18446744072654372616   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1
                                  21:22:31 T:18446744072654377098   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                                  21:22:31 T:18446744072654377333   DEBUG: OMXThread::StopThread - Thread stopped
                                  
                                  pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2'
                                  
                                  [rtsp @ 0xd1d770] method OPTIONS failed: 401 Unauthorized
                                  have a nice day ;)
                                  pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                                  21:23:48 T:18446744072731535779   DEBUG: DllBcm: Using omx system library
                                  21:23:48 T:18446744072731536888   DEBUG: DllOMX: Using omx system library
                                  21:23:48 T:18446744072731537505   DEBUG: DllAvFormat: Using libavformat system library
                                  21:23:48 T:18446744072731538801   DEBUG: DBus connection succeeded
                                  21:23:48 T:18446744072731539526   DEBUG: Keyboard: DBus connection succeeded
                                  21:23:48 T:18446744072731539667   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                                  21:23:48 T:18446744072731539768   DEBUG: DllAvUtilBase: Using libavutil system library
                                  21:23:48 T:18446744072731539790   DEBUG: DllAvCodec: Using libavcodec system library
                                  21:23:48 T:18446744072731539805   DEBUG: DllAvFormat: Using libavformat system library
                                  21:23:48 T:18446744072731540190   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2
                                  21:23:48 T:18446744072731573465   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2
                                  21:23:48 T:18446744072731579918   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                                  21:23:48 T:18446744072731580203   DEBUG: OMXThread::StopThread - Thread stopped
                                  pi@raspberrypi:~/MagicMirror $
                                  
                                  evroomE 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:

                                    401 Unauthorized

                                    401 Unauthorized
                                    means user password combination is not correct.

                                    admin:roland

                                    Note the : and of course your correct password.

                                    MagicMirror version: 2.33.0
                                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                    Raspbian GNU/Linux 12 (bookworm)

                                    Test environment:
                                    MagicMirror version: v2.33.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
                                    • N Offline
                                      Number_5
                                      last edited by

                                      sorry,
                                      with subtype=0 the second attempt

                                      pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
                                      Input #0, rtsp, from 'rtsp://admin:RoKu1234@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0':
                                      
                                      Metadata:
                                        title           : Media Server
                                      Duration: N/A, start: 0.080000, bitrate: N/A
                                        Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 25 fps, 25 tbr, 90k tbn, 90k tbc
                                      have a nice day ;)
                                      pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                                      21:49:12 T:545640871   DEBUG: DllBcm: Using omx system library
                                      21:49:12 T:545641966   DEBUG: DllOMX: Using omx system library
                                      21:49:12 T:545642575   DEBUG: DllAvFormat: Using libavformat system library
                                      21:49:12 T:545643867   DEBUG: DBus connection succeeded
                                      21:49:12 T:545644603   DEBUG: Keyboard: DBus connection succeeded
                                      21:49:12 T:545644749   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                                      21:49:12 T:545644849   DEBUG: DllAvUtilBase: Using libavutil system library
                                      21:49:12 T:545644870   DEBUG: DllAvCodec: Using libavcodec system library
                                      21:49:12 T:545644885   DEBUG: DllAvFormat: Using libavformat system library
                                      21:49:12 T:545645216   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0
                                      21:49:12 T:545805065   DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
                                      21:49:13 T:546749810   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                                      21:49:13 T:546750434   DEBUG: OMXThread::StopThread - Thread stopped
                                      
                                      evroomE 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:

                                        with subtype=0 the second attempt

                                        And with subtype=1 and subtype=2 ?
                                        And with channel=1&subtype=1 ?

                                        You can leave out the omxplayer.log for the moment.

                                        MagicMirror version: 2.33.0
                                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                        Raspbian GNU/Linux 12 (bookworm)

                                        Test environment:
                                        MagicMirror version: v2.33.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
                                        • N Offline
                                          Number_5
                                          last edited by

                                          subtyp 0

                                          pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0'
                                          Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0':
                                            Metadata:
                                              title           : Media Server
                                            Duration: N/A, start: 0.040000, bitrate: N/A
                                              Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 100 tbr, 90k tbn, 90k tbc
                                          have a nice day ;)
                                          

                                          subtyp 1

                                          pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1'
                                          Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1':
                                            Metadata:
                                              title           : Media Server
                                            Duration: N/A, start: 0.080000, bitrate: N/A
                                              Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 352x288, 100 tbr, 90k tbn, 90k tbc
                                          have a nice day ;)
                                          

                                          subtype 2

                                          pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2'
                                          have a nice day ;)
                                          pi@raspberrypi:~ $
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            Number_5
                                            last edited by

                                            subtype 2 , with error in the log.

                                            pi@raspberrypi:~ $ more omxplayer.log

                                            22:23:44 T:18446744072031941972   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2
                                            22:24:14 T:18446744072062033195   ERROR: COMXPlayer::interrupt_cb - Timed out
                                            22:24:14 T:18446744072062033629   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2
                                            22:24:14 T:18446744072062034345   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                                            22:24:14 T:18446744072062034889   DEBUG: OMXThread::StopThread - Thread stopped
                                            
                                            evroomE 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
                                            • 20
                                            • 21
                                            • 22
                                            • 23
                                            • 24
                                            • 30
                                            • 31
                                            • 22 / 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