MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. benpoe
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    benpoe

    @benpoe

    0
    Reputation
    110
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    benpoe Unfollow Follow

    Latest posts made by benpoe

    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Some tips/improvements.

      I’ve disabled the sound in the omx-stream by adding the arguments “-n”,“-1”, in the node_helper.js

       payload.forEach(s => {
                  var args = ["--live", "--video_queue", "4", "--fps", "30","-n","-1",
                      this.config[s.name].url
                  ];
      
      

      I had problems with the omx-streams (i have three) not restarting correctly. So instead of stopping the processes and then starting, i’ve changed the command to restart.

                      for (var proc in list) {
                          if ("name" in list[proc] && namesM.indexOf(list[proc].name) > -1) {
                              if ("status" in list[proc].pm2_env && list[proc].pm2_env.status === "online") {
                                  console.log(`PM2: ${list[proc].name} already running. Stopping old instance...`);
      //                            pm2.stop(list[proc].name, errCB);
                                  pm2.restart(list[proc].name, errCB);
                              }
                          }
                      }
      
      
      posted in Utilities
      B
      benpoe