• 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-PIR-Sensor interferes with MMM-RTSPStream

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 3 Posters 1.3k Views 2 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.
  • B Offline
    binderth
    last edited by May 29, 2018, 8:41 AM

    Hi there,

    after some struggle, I managed to get MMM-RTSPStream running with my FOSCAM FI9900P. But if MMM-PIR-Sensor ist started in parallel, I got these entries in the log and the Stream won’t show:

    > magicmirror@2.3.1 start /home/pi/MagicMirror
    > sh run-start.sh
    
    Starting MagicMirror: v2.3.1
    Loading config ...
    Loading module helpers ...
    Initializing new module helper ...
    Module helper loaded: MMM-PIR-Sensor
    No helper found for module: alert.
    No helper found for module: clock.
    Initializing new module helper ...
    Module helper loaded: calendar
    Initializing new module helper ...
    Module helper loaded: MMM-RTSPStream
    Initializing new module helper ...
    Starting server on port 8080 ... 
    You're using a full whitelist configuration to allow for all IPs
    Server started ...
    Connecting socket for: MMM-PIR-Sensor
    Connecting socket for: MMM-RTSPStream
    Sockets connected & modules started ...
    Launching application.
    Starting stream stream1 with args: [
        "--avdict",
        "rtsp_transport:tcp",
        "--win",
        "332, 1260, 684, 1502",
        "--live",
        "--video_queue",
        "4",
        "--fps",
        "30",
        "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    ]
    PM2: omx_stream1 already running. Stopping old instance...
    Starting PM2 for omx_stream1
    PM2 started for omx_stream1
    Stopping stream stream1
    Stopping PM2 process: omx_stream1
    Starting stream stream1 with args: [
        "--avdict",
        "rtsp_transport:tcp",
        "--win",
        "332, 1225, 684, 1467",
        "--live",
        "--video_queue",
        "4",
        "--fps",
        "30",
        "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    ]
    PM2: omx_stream1 already running. Stopping old instance...
    Starting PM2 for omx_stream1
    PM2 started for omx_stream1
    Stopping stream stream1
    Starting stream stream1 with args: [
        "--avdict",
        "rtsp_transport:tcp",
        "--win",
        "332, 1190, 684, 1432",
        "--live",
        "--video_queue",
        "4",
        "--fps",
        "30",
        "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    ]
    Stopping PM2 process: omx_stream1
    Starting PM2 for omx_stream1
    PM2 started for omx_stream1
    Stopping all OMXPlayer Streams...
    PM2: Stopping omx_stream1...
    Starting stream stream1 with args: [
        "--avdict",
        "rtsp_transport:tcp",
        "--win",
        "332, 1190, 684, 1432",
        "--live",
        "--video_queue",
        "4",
        "--fps",
        "30",
        "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    ]
    Starting PM2 for omx_stream1
    PM2 started for omx_stream1
    Stopping all OMXPlayer Streams...
    PM2: Stopping omx_stream1...
    

    the console pm2 logs shows an additional:

    0|mm       | Launching application.
    0|mm       | Starting stream stream1 with args: [
    0|mm       |     "--avdict",
    0|mm       |     "rtsp_transport:tcp",
    0|mm       |     "--win",
    0|mm       |     "332, 1260, 684, 1502",
    0|mm       |     "--live",
    0|mm       |     "--video_queue",
    0|mm       |     "4",
    0|mm       |     "--fps",
    0|mm       |     "30",
    0|mm       |     "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    0|mm       | ]
    0|mm       | PM2: omx_stream1 already running. Stopping old instance...
    0|mm       | Starting PM2 for omx_stream1
    PM2        | Stopping app:omx_stream1 id:1
    PM2        | pid=5695 msg=failed to kill - retrying in 100ms
    PM2        | pid=5695 msg=failed to kill - retrying in 100ms
    1|omx_stre | Video codec omx-h264 width 640 height 360 profile 100 fps 30.000000
    1|omx_stre | Audio codec pcm_mulaw channels 1 samplerate 8000 bitspersample 8
    1|omx_stre | Subtitle count: 0, state: off, index: 1, delay: 0
    1|omx_stre | V:PortSettingsChanged: 640x360@30.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
    1|omx_stre | have a nice day ;)
    PM2        | App [omx_stream1] with id [1] and pid [5695], exited with code [1] via signal [SIGINT]
    PM2        | pid=5695 msg=process killed
    PM2        | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1
    PM2        | App name:omx_stream1 id:1 online
    0|mm       | PM2 started for omx_stream1
    0|mm       | Stopping stream stream1
    0|mm       | Stopping PM2 process: omx_stream1
    0|mm       | Starting stream stream1 with args: [
    0|mm       |     "--avdict",
    0|mm       |     "rtsp_transport:tcp",
    0|mm       |     "--win",
    0|mm       |     "332, 1225, 684, 1467",
    0|mm       |     "--live",
    0|mm       |     "--video_queue",
    0|mm       |     "4",
    0|mm       |     "--fps",
    0|mm       |     "30",
    0|mm       |     "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    0|mm       | ]
    PM2        | Stopping app:omx_stream1 id:1
    0|mm       | PM2: omx_stream1 already running. Stopping old instance...
    0|mm       | Starting PM2 for omx_stream1
    PM2        | Stopping app:omx_stream1 id:1
    PM2        | Process with pid 5846 already exists
    0|mm       | PM2 started for omx_stream1
    PM2        | App [omx_stream1] with id [1] and pid [5846], exited with code [0] via signal [SIGINT]
    PM2        | pid=5846 msg=process killed
    PM2        | pid=5846 msg=process killed
    0|mm       | Stopping stream stream1
    0|mm       | Starting stream stream1 with args: [
    0|mm       |     "--avdict",
    0|mm       |     "rtsp_transport:tcp",
    0|mm       |     "--win",
    0|mm       |     "332, 1190, 684, 1432",
    0|mm       |     "--live",
    0|mm       |     "--video_queue",
    0|mm       |     "4",
    0|mm       |     "--fps",
    0|mm       |     "30",
    0|mm       |     "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    0|mm       | ]
    0|mm       | Stopping PM2 process: omx_stream1
    0|mm       | Starting PM2 for omx_stream1
    PM2        | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1
    PM2        | App name:omx_stream1 id:1 online
    0|mm       | PM2 started for omx_stream1
    0|mm       | Stopping all OMXPlayer Streams...
    0|mm       | PM2: Stopping omx_stream1...
    PM2        | Stopping app:omx_stream1 id:1
    PM2        | App [omx_stream1] with id [1] and pid [5956], exited with code [0] via signal [SIGINT]
    PM2        | pid=5956 msg=process killed
    0|mm       | Starting stream stream1 with args: [
    0|mm       |     "--avdict",
    0|mm       |     "rtsp_transport:tcp",
    0|mm       |     "--win",
    0|mm       |     "332, 1190, 684, 1432",
    0|mm       |     "--live",
    0|mm       |     "--video_queue",
    0|mm       |     "4",
    0|mm       |     "--fps",
    0|mm       |     "30",
    0|mm       |     "rtsp://user:pass@192.168.xx.xx:88/videoMain"
    0|mm       | ]
    0|mm       | Starting PM2 for omx_stream1
    PM2        | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1
    PM2        | App name:omx_stream1 id:1 online
    0|mm       | PM2 started for omx_stream1
    0|mm       | Stopping all OMXPlayer Streams...
    0|mm       | PM2: Stopping omx_stream1...
    PM2        | Stopping app:omx_stream1 id:1
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | pid=5982 msg=failed to kill - retrying in 100ms
    PM2        | Process with pid 5982 still alive after 1600ms, sending it SIGKILL now...
    PM2        | App [omx_stream1] with id [1] and pid [5982], exited with code [0] via signal [SIGKILL]
    PM2        | pid=5982 msg=process killed
    

    Is there something I can do?

    1 Reply Last reply Reply Quote 0
    • B Offline
      barnosch
      last edited by May 29, 2018, 9:16 AM

      maybe use another PIR activation, not as a mirror module.

      I use this scripts from @cowboysdude
      https://github.com/cowboysdude/Pir-Sensor

      B 1 Reply Last reply May 29, 2018, 9:16 AM Reply Quote 1
      • B Offline
        binderth @barnosch
        last edited by May 29, 2018, 9:16 AM

        Thanks! Worth a try!

        1 Reply Last reply Reply Quote 0
        • V Offline
          Volkae
          last edited by Aug 29, 2021, 3:07 PM

          Hi binderth,

          i have the same problem. Did you find a solution?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • 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