• 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.6m 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 Feb 2, 2020, 7:25 PM

    Hello sdetweil,

    sorry i am new here. Should i copy this line direkt in config.js ? where exactly?

    E S 2 Replies Last reply Feb 2, 2020, 7:28 PM Reply Quote 0
    • E Offline
      evroom @Number_5
      last edited by Feb 2, 2020, 7:28 PM

      @Number_5
      Command-line.
      Better deactivate the module before (this in the config.js):

      module: "MMM-RTSPStream",
      disabled: true,
      etc
      

      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 @Number_5
        last edited by Feb 2, 2020, 7:37 PM

        @Number_5 that’s the command the module is trying to execute ( from the log)

        Open a command prompt, cut/paste that and see if it works

        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
          last edited by Feb 2, 2020, 7:40 PM

          Hello ,
          first I deactivated the config module.

          pi@raspberrypi:~/MagicMirror/config $ omxplayer --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
          -bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
          pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
          [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
          [PM2] MagicMirror ✓
          [PM2] Process successfully started
          ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
          │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
          ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
          │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 30912 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
          │ 1 │ omx_stream1 │ default │ N/A │ fork │ 30880 │ 4s │ 741 │ online │ 0% │ 2.6mb │ pi │ disabled │
          └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
          pi@raspberrypi:~/MagicMirror/config $ omxplayer --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
          -bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
          pi@raspberrypi:~/MagicMirror/config $

          It does not work, :-(

          E 1 Reply Last reply Feb 2, 2020, 7:51 PM Reply Quote 0
          • E Offline
            evroom @Number_5
            last edited by evroom Feb 2, 2020, 8:02 PM Feb 2, 2020, 7:51 PM

            @Number_5

            Can you try with quotes (single, double) ?

            omxplayer --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"
            
            omxplayer --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'
            

            when the command works, but still no video, then add --genlog

            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'
            

            This will creat a log file called omxplayer.log under the directory where you started omxplayer.

            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
            • N Offline
              Number_5
              last edited by Feb 2, 2020, 8:02 PM

              Hello,

              1. First 1 start magic mirror.
              2. with 2 qoutes
              3. with 1 qoute

              pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
              [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
              [PM2] MagicMirror ✓
              [PM2] Process successfully started
              ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
              │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
              ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
              │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
              │ 1 │ omx_stream1 │ default │ N/A │ fork │ 8825 │ 2s │ 1000 │ online │ 0% │ 2.5mb │ pi │ disabled │
              └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

              [1]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --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’channel=2
              pi@raspberrypi:~/MagicMirror/config $ omxplayer --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”
              omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd “rtsp://admin:rolandomxplayer --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’channel=2&subtype=0"channel=2&subtype=0’channel=2&subtype=0"channel=2&subtype=0”
              [2] 9584
              [3] 9585
              pi@raspberrypi:~/MagicMirror/config $ omxplayer --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 ;)

              [2]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --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
              [3] Fertig subtype=0’channel=2&subtype=0"channel=2&subtype=0’channel=2
              pi@raspberrypi:~/MagicMirror/config $

              S E 2 Replies Last reply Feb 2, 2020, 8:07 PM Reply Quote 0
              • S Offline
                sdetweil @Number_5
                last edited by Feb 2, 2020, 8:07 PM

                @Number_5 pm2 stop 0, pm2 stop 1

                just from the commandline…(ctrl-alt-t) . does a video window open on any of these?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • E Offline
                  evroom @Number_5
                  last edited by evroom Feb 2, 2020, 8:09 PM Feb 2, 2020, 8:08 PM

                  @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.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
                  • N Offline
                    Number_5
                    last edited by Feb 2, 2020, 8:19 PM

                    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 $

                    E 1 Reply Last reply Feb 2, 2020, 8:22 PM Reply Quote 0
                    • E Offline
                      evroom @Number_5
                      last edited by evroom Feb 2, 2020, 8:26 PM Feb 2, 2020, 8:22 PM

                      @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.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
                      • 38
                      • 39
                      • 40
                      • 41
                      • 42
                      • 60
                      • 61
                      • 40 / 61
                      40 / 61
                      • First post
                        399/602
                        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