Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    webcam capture error

    EXT-Selfies
    2
    13
    36
    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.
    • M
      musman last edited by

      Hi, when i try to capture selfies by saying jarvis take a selfie, it shows smile but at the end ext-alert shows webcam capture error, can anyone help me through this

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, Anything else to help me out?

        1 Reply Last reply Reply Quote 0
        • M
          musman last edited by bugsounet

          yes please , sorry to bother you
          my ext-selfie configuration is

          {
          	  module: 'EXT-Selfies',
          	  position: 'top_left',
          	  config: {
          	    debug: false,
          	    captureWidth:1280,
          	    captureHeight:720,
          	    device: null,
          	    usePreview: false,
          	    previewWidth:640,
          	    previewHeight:360,
          	    displayButton: true,
          	    buttonStyle: 1,
          	    buttons: {
          	      1: "master.png",
          	      2: "halloween.png",
          	      3: "birthday.png",
          	      4: "christmas.png"
          	    },
          	    blinkButton: false,
          	    playShutter: true,
          	    resultDuration: 1000 * 10,
          	    autoValidate: true,
          	    counterStyle: 1,
          	    showResult: true
          	  }
          	},
          

          Edit: Next time, thx to use code tag:

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            can you try this

            1 Reply Last reply Reply Quote 0
            • M
              musman last edited by

              Thankyou for your quick response
              I’'ve already tried this
              usePreview: false
              device: “/dev/video1”,
              but still it showing the same
              “webcam captures error”

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by bugsounet

                logs says /dev/video1 ?

                wiki says: -> See the backend log to get your installed camera name (with debug mode activated)

                past me the line of the log

                1 Reply Last reply Reply Quote 0
                • M
                  musman last edited by bugsounet

                  options: {
                  playShutter: true,
                  autoValidate: true,
                  showResult: true,
                  TBkey: null,
                  useTBKeyOnly: false
                  }
                  }
                  [20.12.2022 03:11.12.728] [LOG] fswebcam -r 1280x720 --jpeg 100 -d /dev/video1 --no-banner /home/pi/MagicMirror/modules/EXT-Selfies/photos/221220_031112.jpeg
                  [20.12.2022 03:11.12.840] [LOG] — Opening /dev/video1…
                  Trying source module v4l2…
                  /dev/video1 opened.
                  No input was specified, using the first.
                  Unable to query input 0.
                  VIDIOC_ENUMINPUT: Inappropriate ioctl for device

                  [20.12.2022 03:11.12.848] [ERROR] [SELFIES] Capture Error!

                  Edit: 2Times …, thx to use tag code

                  1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by

                    It’s not that i want …
                    enable debug mode and tell me the list of device

                    something like this:

                    [19.12.2022 23:27.12.962] [LOG]   [SELFIES] Searching camera devices...
                    [19.12.2022 23:27.12.975] [LOG]   [SELFIES] Detected devices: [
                      '/dev/video0',  '/dev/video1',
                      '/dev/video10', '/dev/video11',
                      '/dev/video12', '/dev/video13',
                      '/dev/video14', '/dev/video15',
                      '/dev/video16', '/dev/video18',
                      '/dev/video19', '/dev/video20',
                      '/dev/video21', '/dev/video22',
                      '/dev/video23', '/dev/video31'
                    ]
                    
                    1 Reply Last reply Reply Quote 0
                    • M
                      musman last edited by

                      can you please tell me how to do that?

                      1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by bugsounet

                        1. enable debug mode feature in config
                        2. restart the mirror
                        3. past the detected devices line send on back logs (with code flag)
                        M 1 Reply Last reply Reply Quote 0
                        • M
                          musman last edited by

                          that’s what I did , if I am not wrong , I did debug:true
                          then restart the mirror

                          1 Reply Last reply Reply Quote 0
                          • M
                            musman @bugsounet last edited by

                            1 Reply Last reply Reply Quote 0
                            • M
                              musman last edited by bugsounet

                              Edit; thx to apply rules!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB | @bugsounet ©2022