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

      @Number_5

      Better to stop MM temporarily or disable the module with disabled: true, and a restart of MM.
      Also make sure omx_stream1 process is not running.

      pm2 status
      pm2 stop omx_stream1
      pm2 delete omx_stream1
      pm2 status
      

      Then do the single quoted command, with logging enabled.

      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:80/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

        Hello ,

        1. I started it from the command line

        but no windows opens. or I’m doing something wrong.

        pi@raspberrypi:~/MagicMirror/config $ --genlog
        -bash: --genlog: Kommando nicht gefunden.
        pi@raspberrypi:~/MagicMirror/config $ pm2 status
        ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
        │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
        ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
        │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 13m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
        │ 1 │ omx_stream1 │ default │ N/A │ fork │ 14967 │ 0s │ 1152 │ online │ 0% │ 2.6mb │ pi │ disabled │
        └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
        pi@raspberrypi:~/MagicMirror/config $ pm2 stop omx_stream1
        [PM2] Applying action stopProcessId on app [omx_stream1](ids: 1)
        [PM2] omx_stream1 ✓
        ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
        │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
        ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
        │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
        │ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 1156 │ stopped │ 0% │ 0b │ pi │ disabled │
        └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
        pi@raspberrypi:~/MagicMirror/config $ pm2 delete omx_stream1
        [PM2] Applying action deleteProcessId on app [omx_stream1](ids: 1)
        [PM2] omx_stream1 ✓
        ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
        │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
        ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
        │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
        └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
        [PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
        pi@raspberrypi:~/MagicMirror/config $ pm2 status
        ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
        │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
        ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
        │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
        └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
        [PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
        pi@raspberrypi:~/MagicMirror/config $ 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:80/cam/realmonitor?channel=2&subtype=0’
        have a nice day ;)
        pi@raspberrypi:~/MagicMirror/config $

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

          @Number_5

          Could you please post commands and output using the </> tag ?
          So, select the command or output and click on the </> symbol.

          Does the log say anything useful ?

          more omxplayer.log
          

          Pleas do not post the complete log, unless small.
          30 lines tops.

          head -30 omxplayer.log
          

          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,
            in future output and commands in </>

            thats the logfile

            pi@raspberrypi:~/MagicMirror/config $ more omxplayer.log
            20:14:18 T:1939277143   DEBUG: DllBcm: Using omx system library
            20:14:18 T:1939278613   DEBUG: DllOMX: Using omx system library
            20:14:18 T:1939279243   DEBUG: DllAvFormat: Using libavformat system library
            20:14:18 T:1939280418 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer'
            20:14:18 T:1939280521 WARNING: DBus connection failed, trying alternate
            20:14:18 T:1939281594   DEBUG: DBus connection succeeded
            20:14:18 T:1939282354   DEBUG: Keyboard: DBus connection succeeded
            20:14:18 T:1939282502   DEBUG: OMXThread::Create - Thread with id -1387290944 started
            20:14:18 T:1939282604   DEBUG: DllAvUtilBase: Using libavutil system library
            20:14:18 T:1939282636   DEBUG: DllAvCodec: Using libavcodec system library
            20:14:18 T:1939282654   DEBUG: DllAvFormat: Using libavformat system library
            20:14:18 T:1939282994   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
            20:14:18 T:1939283372   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
            20:14:18 T:1939283465   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
            20:14:18 T:1939283726   DEBUG: OMXThread::StopThread - Thread stopped
            pi@raspberrypi:~/MagicMirror/config $
            
            evroomE 3 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:

              ok sorry,

              Nothing to be sorry for; you are learning as you go :-)

              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 evroom

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

                ERROR: COMXPlayer::OpenFile - avformat_open_input

                Okay, without getting rid of this error, omxplayer and therefore MMM-RTSPStream using omxplayer will not work for you.
                I have an Axis cam and there it did not work because to the resolution I used, had to use one of the resolutions that is supported by the cam.

                Where you able to open
                http://your-mirror-ip:8080/MMM-RTSPStream/config.html
                and see the cam there ?

                Could try ffmpeg, but there I have to pass.

                What camera are we talking about ?

                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

                  Can you try with another port number (554 iso 80) ?

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

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

                    Hello
                    it is a,

                    DAHUA mini-dome Kamera hd-cvi 2 megapixels für indoor/outdoor g ip7. 30 m nightview fixe objektiv 2,8 mm. - AC/DC-Adapter : AC/DC-Adapter 12V 600mA (port 80)

                    also i have a Luna Hd
                    L-KA-2601 1 160,00 160,00
                    IR Bullet-Kamera (HD-CVI), Full HD,

                    if i open
                    http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.html
                    I am denied access

                    S evroomE 2 Replies Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Number_5
                      last edited by

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

                      I am denied access

                      probably have to use the url syntax for userid and password

                      http://admin:roland!?1971@example.com

                      http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.htm

                      that is going to the magic mirror port
                      so, in the config.js do you have
                      address: “0.0.0.0”,
                      and
                      ipWHiltelist:[],

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @Number_5
                        Try with port 554, see previous post.

                        And see
                        https://github.com/shbatm/MMM-RTSPStream
                        “Using the module” on the config.html part I was referring to.
                        The IP there, is the MM IP, or localhost, not your cam IP.

                        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)

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

                          See
                          https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/379

                          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

                            I’m just overwhelmed with the syntax.

                            http://admin:roland!?1971@example.com
                            and
                            http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.htm

                            I’ll try tomorrow and give feedback, thanks for your support

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

                              @evroom

                              thats the result with the port 554

                              pi@raspberrypi:~/MagicMirror/config $ 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:554/cam/realmonitor?channel=2&subtype=0'
                              have a nice day ;)
                              pi@raspberrypi:~/MagicMirror/config $ head -30 omxplayer.log
                              21:33:25 T:18446744071806154291   DEBUG: DllBcm: Using omx system library
                              21:33:25 T:18446744071806155602   DEBUG: DllOMX: Using omx system library
                              21:33:25 T:18446744071806156277   DEBUG: DllAvFormat: Using libavformat system library
                              21:33:25 T:18446744071806157458 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer'
                              21:33:25 T:18446744071806157567 WARNING: DBus connection failed, trying alternate
                              21:33:25 T:18446744071806158687   DEBUG: DBus connection succeeded
                              21:33:25 T:18446744071806159455   DEBUG: Keyboard: DBus connection succeeded
                              21:33:25 T:18446744071806159602   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                              21:33:25 T:18446744071806159705   DEBUG: DllAvUtilBase: Using libavutil system library
                              21:33:25 T:18446744071806159738   DEBUG: DllAvCodec: Using libavcodec system library
                              21:33:25 T:18446744071806159756   DEBUG: DllAvFormat: Using libavformat system library
                              21:33:25 T:18446744071806160118   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0
                              21:33:25 T:18446744071806160518   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0
                              21:33:25 T:18446744071806179771   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                              21:33:25 T:18446744071806180025   DEBUG: OMXThread::StopThread - Thread stopped
                              pi@raspberrypi:~/MagicMirror/config $
                              
                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                Number_5
                                last edited by

                                Hello Sam,
                                with 0.0.0.0.8080/MMM-rtspStream I was able to open the module configurator.

                                evroom said:

                                And see
                                https://github.com/shbatm/MMM-RTSPStream
                                “Using the module” on the config.html part I was referring to.
                                The IP there, is the MM IP, or localhost, not your cam IP.

                                It means the mirror id is not the raspberry pi?
                                where can I find the mm id?

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

                                  @Number_5

                                  When you run MM locally on your Pi, then your MM IP is your Pi IP.
                                  IP being the IP address, not an id.

                                  When you are able to open the RTSPStream configurator using 0.0.0.0.8080/MMM-rtspStream, then that’s fine.

                                  Continue with step 2 from this post:
                                  https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/379

                                  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)

                                  N 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @Number_5
                                    last edited by

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

                                    It means the mirror id is not the raspberry pi?

                                    I don’t see that (mirror id) in the doc for this module

                                    i do see this for testing the camera connection

                                    Testing a camera feed
                                    To test to make sure you have a working url for a camera feed: create a text file with the URL as the first and only line in the file. Save the file as .strm and open the file with a video player like VLC.

                                    unfortuantely I can’t use this module on my dev system as there is no omxplayer…

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @Number_5

                                      One more thing to try. Just leave out the port altogether.
                                      I use it without specifying the port.

                                      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'
                                      

                                      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)

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

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

                                        create a text file

                                        Hallo Sam,

                                        1. i have created a textfile wit this line:
                                        rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=1&subtype=0
                                        

                                        2 )opend in vlc player direct on raspberry
                                        3) query answered user:admin passwort:roland!?1971
                                        4) saw the stream thats working fine

                                        rtsp://User:Passwort@IP:PORT/cam/realmonitor?channel=1&subtype=0
                                        

                                        here i inserted the user, passwort , Ip and port, channel from the camera.

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

                                          Hello evroom,

                                          thats the result. Error after debug the file.

                                          pi@raspberrypi:~/MagicMirror $ pm2 stop 1
                                          [PM2] Applying action stopProcessId on app [1](ids: 1)
                                          [PM2] omx_stream1 ✓

                                          ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                                          │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                                          ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                                          │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 0 │ 0 │ 0 │ stopped │ 0% │ 0b │ pi │ disabled │
                                          │ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 30 │ stopped │ 0% │ 0b │ pi │ disabled │
                                          └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

                                          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'
                                          have a nice day ;)
                                          pi@raspberrypi:~/MagicMirror $ more omxplayer.log
                                          20:10:50 T:18446744072147623537   DEBUG: DllBcm: Using omx system library
                                          20:10:50 T:18446744072147624751   DEBUG: DllOMX: Using omx system library
                                          20:10:50 T:18446744072147625400   DEBUG: DllAvFormat: Using libavformat system library
                                          20:10:50 T:18446744072147626711   DEBUG: DBus connection succeeded
                                          20:10:50 T:18446744072147627442   DEBUG: Keyboard: DBus connection succeeded
                                          20:10:50 T:18446744072147627591   DEBUG: OMXThread::Create - Thread with id -1387290944 started
                                          20:10:50 T:18446744072147627696   DEBUG: DllAvUtilBase: Using libavutil system library
                                          20:10:50 T:18446744072147627719   DEBUG: DllAvCodec: Using libavcodec system library
                                          20:10:50 T:18446744072147627738   DEBUG: DllAvFormat: Using libavformat system library
                                          20:10:50 T:18446744072147628026   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0
                                          20:10:50 T:18446744072147628457   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0
                                          20:10:50 T:18446744072147647754   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
                                          20:10:50 T:18446744072147648005   DEBUG: OMXThread::StopThread - Thread stopped
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            Number_5 @evroom
                                            last edited by

                                            @evroom

                                            @evroom

                                            Hello evroom
                                            thats my config.js

                                            var config = {
                                                    address: "0.0.0.0", // Address to listen on, can be:
                                                                          // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                                                          // - another specific IPv4/6 to listen on a specific interface
                                                                          // - "", "0.0.0.0", "::" to listen on any interface
                                                                          // Default, when address config is left out, is "localhost"
                                                    port: 8080,
                                                    ipWhitelist: [], // Set [] to allow all IP addresses
                                            
                                            // {
                                            //        module: 'MMM-RTSPStream',
                                            //        position: 'middle_center',
                                            //        config: {
                                            //            initialSetup: true,
                                            //        }
                                            //    },
                                            
                                            {
                                                module: "MMM-RTSPStream",
                                                position: "middle_center",
                                                config: {
                                                    autoStart: true,
                                                    rotateStreams: true,
                                                    rotateStreamTimeout: 10,
                                                    moduleWidth: 354,
                                                    moduleHeight: 240,
                                                    localPlayer: 'ffmpeg',
                                                    remotePlayer: 'none',
                                                    showSnapWhenPaused: true,
                                                    remoteSnaps: true,
                                                    shutdownDelay: 12,
                                                        stream1: {
                                                        name: '',
                                                        url: 'rtsp://admin:roland!?1971@192.168.2.140.2.108:554/cam/realmonitor?channel=2&subtype=0',
                                                        frameRate: 'undefined',
                                                        snapshotType: 'url',
                                                        snapshotRefresh: 10,
                                                        width: undefined,
                                                        height: undefined,
                                                        ffmpegPort: 9999,
                                                        },
                                                    }
                                            },
                                            
                                            1. pm2 flush
                                            pi@raspberrypi:~ $ pm2 flush
                                            [PM2] Flushing /home/pi/.pm2/pm2.log
                                            [PM2] Flushing:
                                            [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                                            [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                                            [PM2] Flushing:
                                            [PM2] /dev/null
                                            [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
                                            [PM2] Logs flushed
                                            pi@raspberrypi:~ $
                                            

                                            in this case i have took the ;

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

                                            User, passwot from camera, id from raspberry, port as suggested, but with port 80 the real port its also not working.

                                            rtsp://Benutzer:Passwort@IP:PORT/cam/realmonitor?channel=1&subtype=0
                                            
                                            evroomE 2 Replies 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
                                            • 19
                                            • 20
                                            • 21
                                            • 22
                                            • 23
                                            • 30
                                            • 31
                                            • 21 / 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