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.

    No stream output from webcam. No errors raised.

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 5 Posters 4.1k Views 5 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.
    • H Offline
      hsalas
      last edited by

      Hi,

      I’m trying to use a USB Logitech webcam on my raspberry pi 4 running a magic mirror. I tested the webcam via a webcam test website in my raspberry pi and it works; however, it doesn’t in the magic mirror nothing displays. This is what I tried so far:

      Added camera module to config.js

      Changed in camera.js -> display: true

      updated my raspberry pi

      updated magic mirror

      node version in raspberry pi is 14.15.0

      ffd01f8c-31ac-42fe-9d0e-c5307b72a1d0-image.png

      Any help or advice is greatly appreciated. Thank you in advance.

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

        @hsalas what module are u using for webcam display? nothing is built in

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          hsalas @sdetweil
          last edited by

          @sdetweil Hi Sam, im using https://github.com/alexyak/camera.

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @hsalas
            last edited by

            @hsalas

            You set up your models (.pmdl files) for the voicecontrol module?

            Create a working config
            How to add modules

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

              @Mykle1 hey is asking about displaying video

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • H Offline
                hsalas @Mykle1
                last edited by hsalas

                @Mykle1 Hi Mykle1, I haven’t however the stream should start as soon as the magicmirror comes up without me saying anything to the voice control. I changed the following to true in camera.js:

                display: true

                I have the same setup on windows pc and it works; however, when doing the same with the same webcam on the raspberry I get no stream.

                Windows PC

                443ed64b-0a11-4e36-90ea-5ccfe7107f67-image.png

                Y 1 Reply Last reply Reply Quote 0
                • Y Offline
                  yax51
                  last edited by

                  I am having the exact same issue. I have also made the same changes that you have.
                  Were you able to get it fixed?

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Axel51 @yax51
                    last edited by

                    I have the same problem with my usb cam.
                    So, i installed Motion and then I used the iShow module to show the stream of the cam.
                    but that’s was not easy.

                    Y 1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yax51 @Axel51
                      last edited by

                      @Axel51 I wasn’t able to find any iShow module…Can you send a link>

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Axel51 @yax51
                        last edited by

                        @yax51 https://github.com/l0b5ter/iShow

                        Y 1 Reply Last reply Reply Quote 1
                        • Y Offline
                          yax51 @Axel51
                          last edited by

                          @Axel51 Thanks! I’ll check it out!

                          1 Reply Last reply Reply Quote 0
                          • Y Offline
                            yax51 @hsalas
                            last edited by

                            @hsalas After thinking about it, I came to the conclusion that it had more to do with the power usage of the raspberry pi than any sort of code/module issue. I noticed I was getting low power notices while just trying to use the webcam. Even using webcamoid would lag, stutter, and give those errors. So I installed Ubuntu 20.04 on a mini desktop, installed MM and the modules (with some tweaking to get pyaudio working) I had no issues, and everything worked perfectly.

                            Which means it’s either the pi itself not having enough power, the webcam you are using is drawing too much power, or a combination of both.

                            Might be worth exploring

                            1 Reply 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 / 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