• 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.

The problem of displaying the flow from the MMM-RTSPStream module after turning on the screen by the motion sensor.

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 2 Posters 1.9k 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.
  • L Offline
    Laz
    last edited by Nov 22, 2022, 10:21 AM

    I am from Russia, so the text is translated online by the translator…
    I have a flow from one camera. After MagicMirror turns on the video, the stream falls into the frame. And it is in it all the time the mirror works.
    But I added a sensor PIR module to turn off the mirror without any movement around. After turning off the monitor and then turning it on from the motion sensor, the picture of the video stream is lost to another position on the screen… (((
    How to fix it? So that the video stream is accurately tied to the frame?

    The first photo is the operation of the mirror after the reboot. The second photo is the operation of the mirror after turning on the monitor from the motion sensor (after turning it off in the absence of motion).
    Here are my module settings.
    module.png
    restart.png
    PIR_on.png

    B 1 Reply Last reply Nov 22, 2022, 11:04 PM Reply Quote 0
    • L Laz referenced this topic on Nov 22, 2022, 3:16 PM
    • B Offline
      BKeyport Module Developer @Laz
      last edited by Nov 22, 2022, 11:04 PM

      Sadly, I don’t think it’s possible to do that. VLC isn’t good at positioning windows, and RTSPStream relies on an external tool to reset it.

      As the software is abandoned, I doubt there’s going to be any fixes.

      The "E" in "Javascript" stands for "Easy"

      L 2 Replies Last reply Nov 23, 2022, 7:20 AM Reply Quote 0
      • L Offline
        Laz @BKeyport
        last edited by Nov 23, 2022, 7:20 AM

        @BKeyport When starting the program after rebooting the raspberry, the window falls into its position…

        1 Reply Last reply Reply Quote 0
        • L Offline
          Laz @BKeyport
          last edited by Nov 23, 2022, 7:57 AM

          @BKeyport And what is strange is that after turning on the screen on the motion sensor, the flow window always ends up in the same place. Unfortunately, not in the right place.

          B 1 Reply Last reply Nov 23, 2022, 11:12 PM Reply Quote 0
          • B Offline
            BKeyport Module Developer @Laz
            last edited by Nov 23, 2022, 11:12 PM

            @Laz basically, VLC is called through another program. This program sets VLC’s window position on launch. If VLC moves the window for any reason after that, the program can’t monitor it and move it back.

            There is one thing I just thought about - if your pi itself is resetting the resolution while blanked (which is possible), then that would force VLC to move the window (and possibly make it full screen).

            To get around this, run sudo raspi-config from a command line/terminal, and select “Display Options” then “VNC Resolution” - and set that at the same resolution you use when the monitor is on.

            This might allow VLC to leave the window alone so when the screen comes back, you’ll still have it’s window in place.

            If it don’t, you’ll either have to restart the mirror after turning the screen back on (PM2 restart MagicMirror) or stop using RTSPStream…

            The "E" in "Javascript" stands for "Easy"

            L 2 Replies Last reply Nov 24, 2022, 9:45 AM Reply Quote 0
            • L Offline
              Laz @BKeyport
              last edited by Nov 24, 2022, 9:45 AM

              @BKeyport have followed your advice. Doesn’t help.
              After turning on the screen from the motion sensor, the stream window always moves to one place, but not to the frame. And the window resolution is always the same.
              The window simply does not remember its position.
              Overloading raspberries when the screen turns on is too long.
              You can try overloading the MagicMirror program, but I don’t know how to do it.
              If this helps, then restarting the MM must be added to the PIR sensor script…

              1 Reply Last reply Reply Quote 0
              • L Offline
                Laz @BKeyport
                last edited by Nov 24, 2022, 11:10 AM

                @BKeyport I see such a picture through VNC on raspberries when the motion sensor is triggered.

                But the RTSP window of the stream moves out of the frame after turning on the screen on the motion sensor and on the monitor, which is connected to the raspberry via HDMI. It turns out that this is a VLC player problem…?Pir_off.png

                B 1 Reply Last reply Nov 24, 2022, 10:19 PM Reply Quote 0
                • B Offline
                  BKeyport Module Developer @Laz
                  last edited by Nov 24, 2022, 10:19 PM

                  @Laz That clearly looks like the Pi is resizing the window and bumping VLC out of position.

                  If setting the proper resolution through Raspi-config isn’t helping that, then I’m afraid you’re stuck. :(

                  The "E" in "Javascript" stands for "Easy"

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