Raspberry Pi + Webcam = FUN!

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 เม.ย. 2021
  • The in-depth version of this tutorial including copy & paste commands is also available on my website to my patrons: geek-and-gamer.com/2021/04/02...
    Support me on Patreon: / geekandgamer
    Follow me on Twitch: / geek_n_gamer
    Fun with the Raspberry Pi, but you can follow this tutorial on any machine running Debian / Ubuntu or something similar. All you really need is the fswebcam package for your linux distribution.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 63

  • @techcodecoffee
    @techcodecoffee  3 ปีที่แล้ว +8

    I forgot to mention a parameter for fswebcam: with --no-banner you can deactivate the default banner at the bottom, displaying the timestamp. This is what I used to capture images without any additional data displayed for the timelapse you see at the end of the video. Cheers!

  • @anthonyhobbs7333
    @anthonyhobbs7333 2 ปีที่แล้ว +2

    Very well done! Thanks for larger text for us old people. :)

  • @emeobioh7950
    @emeobioh7950 ปีที่แล้ว +1

    Hello
    Can you suggest a wireless webcam that will work great with a raspberry pi. I am working on a pan tilt mount surveillance camera project and I'm having a hard time finding wireless webcam I can use. Also any wireless webcam that can zoom in and out

  • @FoxminerZockt
    @FoxminerZockt 3 ปีที่แล้ว +3

    Good explanation, good examples, very nice video :D.

    • @techcodecoffee
      @techcodecoffee  3 ปีที่แล้ว

      Thanks, mate! Your feedback is greatly appreciated.

  • @LudwigMMVI
    @LudwigMMVI 2 ปีที่แล้ว +1

    Nice Video but how do i stop it from making Fotos every minute. Is there a command for stopping and running the program?

  • @ItsJayBirds
    @ItsJayBirds 2 ปีที่แล้ว

    Did the same and I have a delay of 15 frame but it didn't take any picture for me. I followed your video but during the crontab I have a prompt asking where to save it and I just hit enter. And it didn't work for me.....
    Edit: on the log it says no MTA installed. Tried to use sudo apt-get install postfix nothing happened

  • @sergeyyakubovskiy6742
    @sergeyyakubovskiy6742 2 ปีที่แล้ว +1

    Nice, thanks for sharing!
    Would you mind to tell which program you used to make video from pics? :)

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว +1

      Hey mate, in this case I used Premiere but you can do it directly on the PI... I guess I will make a short video about it.

  • @RoboSidekick
    @RoboSidekick ปีที่แล้ว

    I have a standard pi camera connected with a ribbon cable and a webcam. if bot of them are connected, Pi is taking pictures with pi camera, not with the web camera. how to avoid it?

  • @sibujacob977
    @sibujacob977 2 ปีที่แล้ว

    Hi, How do you preview video using fswebcam !!

  • @maryamfarnegin1647
    @maryamfarnegin1647 ปีที่แล้ว +2

    I appreciate you sharing this useful video with us, however, I have a question, can I use any high quality webcam for this?

    • @techcodecoffee
      @techcodecoffee  ปีที่แล้ว +1

      As long as Linux supports it out of the box, yes. Most modern webcams should be fine, but I advice to google for the webcam + linux.

    • @maryamfarnegin1647
      @maryamfarnegin1647 ปีที่แล้ว

      ​@@techcodecoffee Cool, thank you for the advice. 🙏🏻

  • @jensschroder8214
    @jensschroder8214 ปีที่แล้ว

    Is that Buster or Bullseye?
    The camera software is different. The old software is used until Buster.
    With Bullseye, the old software can only be used if the old mode is switched on and the old software is obtained.
    The new camera software is still in the testing phase

  • @rabsautomation3270
    @rabsautomation3270 2 ปีที่แล้ว +1

    Hi geek! Good work! If i want to take more pics in the same minute... what i have to do?

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      Super easy, just remove the script from the crontab (crontab can not run stuff every so seconds). Just run fswebcam with the -l (or --loop) parameter followed by seconds to wait inbetween frames. fswebcam will now capture a first frame (after x seconds) and continue running, capturing a picture every x seconds. You might want to start that in a screen to keep it running even when logging out. I highly recommend reading the man page for fswebcam for further information: manpages.ubuntu.com/manpages/bionic/man1/fswebcam.1.html

  • @aHardReset
    @aHardReset 2 ปีที่แล้ว +2

    Thanks! Very helpful. How to know if a specific model of a USB camera will be compatible? I'm thinking about buying one.

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว +1

      You could google the webcam's name + linux or just check out this list of Linux UVC compatible cameras: www.ideasonboard.org/uvc/

  • @the_real_kevin8996
    @the_real_kevin8996 ปีที่แล้ว

    is there a way to make this live stream?

  • @armanjurad350
    @armanjurad350 ปีที่แล้ว +1

    Nice tutoria, thank you very much. I have a question: Can I lose the information that I had on the raspberry by rebooting?

    • @techcodecoffee
      @techcodecoffee  ปีที่แล้ว

      No, it boots the OS of the SD Card and everything you save is stored there, too.

  • @jonasdoepp
    @jonasdoepp 5 หลายเดือนก่อน

    I have a problem: Yesterday I followed your instructions to set up the Camera. It worked and with an cronjob I set it to capture an Image every two hours. Then it showed up busy as if it was cought in a loop.
    I killed video0 and now nothing is working...
    My Webcam Shows Up in the
    lsusb
    but after
    v4l2-ctl --list-formats-ext | more
    it Shows nothing...
    After a reboot video0 is there again.
    But the problem is still there...
    Can you provide a solution as I didn't find anything on the Internet?
    (Edit:
    After
    fswebcam -r 1920x1080 -S 20 -D 5 -F 10 /home/pi/pictures/test.jpg
    The error code is:
    --- Opening /dev/video0...
    Trying source module v4l2...
    /dev/video0 opened.
    No input was specified, using the first.
    Error selecting input 0
    VIDIOC_S_INPUT: Divice or recourse busy
    )

  • @TheSuburban15
    @TheSuburban15 ปีที่แล้ว +1

    I need to look into this further, but I think I can make this work.
    Side note: A fern could be a potted plant. A pot plant is marijuana. Yes, I acknowledge that English is hard, and the rules are often nonsensical.

  • @mihaiciorobitca4949
    @mihaiciorobitca4949 2 ปีที่แล้ว +1

    Command chmod is not found at me. I tried to install coreutils because it is what i found on some forums should fix the problem, but still doesn't work. What can I do ?

    • @AndreAppel
      @AndreAppel 2 ปีที่แล้ว

      Please try a "sudo apt update && sudo apt upgrade" then run "sudo apt install --reinstall coreutils"

  • @oskar1504
    @oskar1504 8 หลายเดือนก่อน

    very good video. thanks

  • @cjlowe1650
    @cjlowe1650 2 ปีที่แล้ว

    Will this include Audio being recording with the video? I can't find any easy way to do this. They all mention you have to record the video and audio separately. Windows is such a no brainier. I understand you need an external sub or other separate mic added but this should not be so hard. PLEASE HELP!

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว +2

      Hey mate! A good question, but a simple answer: As we only grab one image every some seconds, we do not have audio that is recorded. Think more of this being like a photo camera or taking a picture on your phone. All the pictures taken are later turned into a timelapse video (no audio, unless you add some music or ambient). What you are looking for is more a stream from the webcam recorded (or streamed), which then technically could include audio. I could make a separate video about that if you are interested.

    • @cjlowe1650
      @cjlowe1650 2 ปีที่แล้ว

      @@techcodecoffee Thanks for the response. That would be great. It's that I'm used to doing it as a no brainer for years in Windows. If I have a USB mic and a cam it should be easy to get the 2 streams together as they do in windows? Should it not?

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      @@cjlowe1650 I will find out for you :)

  • @coopersowards286
    @coopersowards286 2 ปีที่แล้ว

    Good video!

  • @neatmckinleyarchive9255
    @neatmckinleyarchive9255 3 ปีที่แล้ว +2

    Oooh, that fresh haircut got me like 😳

    • @techcodecoffee
      @techcodecoffee  3 ปีที่แล้ว

      Feels so fresh around the head now, without all the fluff :D

  • @kerimturan9242
    @kerimturan9242 2 ปีที่แล้ว +1

    I get the error "Unable to find a compatible palette format", I couldn't understand why, can you help?

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      Unfortunately, many reasons are possible. Did you check the list of available resolutions + palettes and are you passing those as parameters to fswebcam? Check again that those are correct. Worst case scenario, the webcam is not supported...

  • @GhostStoriesworld
    @GhostStoriesworld 2 ปีที่แล้ว +1

    how would you change the capture time ?

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      Adjust the crontab to run the job every 5 minutes, every minute or even just at certain times on certain days. This site can be really helpful: crontab.guru/#*/2_*_*

  • @tomsbeer51400
    @tomsbeer51400 2 หลายเดือนก่อน

    Merci pour vidéo !

  • @ElBoette
    @ElBoette 3 ปีที่แล้ว +1

    Very nice!

  • @vonkluver4619
    @vonkluver4619 2 ปีที่แล้ว

    I was able too get test jpgs but whe I run chmod =x capture.sh then ./capture.sh results : /bin/bash: /capture.sh: Permission denied P2b Logitech Pro 9000

  • @Plizze
    @Plizze 2 ปีที่แล้ว

    Muy interesante, gracias

  • @ahmedfarhan5919
    @ahmedfarhan5919 ปีที่แล้ว

    Can a Raspberry Pi with 1gb ram do video processing for 4 usb webcams?

    • @techcodecoffee
      @techcodecoffee  ปีที่แล้ว

      Video as in streamed from 4 webcams in realtime and process it? Nope, the Raspeberry Pi is not powerful enough for that CPU wise, no matter the RAM.

  • @geniusxbyofejiroagbaduta8665
    @geniusxbyofejiroagbaduta8665 5 หลายเดือนก่อน

    Thanks

  • @wertiuy123
    @wertiuy123 3 ปีที่แล้ว +2

    very useful

  • @diyjanne5360
    @diyjanne5360 ปีที่แล้ว +1

    Thanks for the video!!! I wish I had found this sooner. Hours of my life wasted 😂😂😂

  • @bradtaylor1910
    @bradtaylor1910 2 ปีที่แล้ว

    Why do you assume everyone knows everything you di to get to the PUTTY interface? OS installed? How to find IP address?

  • @HSV-1887
    @HSV-1887 2 ปีที่แล้ว +1

    The $Date command doesnt work for me, any Ideas?

  • @FRESNEL_COOKING_SOLAR_OVENS24
    @FRESNEL_COOKING_SOLAR_OVENS24 2 ปีที่แล้ว

    You had an Haircut and a dentist intervention. 🤣🤣🤣 how can you start your video with that?
    Haircut? Looks like nothing has been cutted.

  • @taoli5497
    @taoli5497 2 ปีที่แล้ว +1

    👍

  • @victorpiedra7526
    @victorpiedra7526 4 หลายเดือนก่อน

    Funciona 🧡

  • @hotquebec
    @hotquebec หลายเดือนก่อน

    i got bored after 3 minutes of techspeak gotta do it again sometime .

  • @leninisraelcaranqui4681
    @leninisraelcaranqui4681 2 ปีที่แล้ว

    no sirve de nada

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      What are you missing in the tutorial?

  • @bullmonkey
    @bullmonkey 10 หลายเดือนก่อน

    I don't know why you're calling me your friend. I'd like to make it clear that we are not friends and I've never even know you.

  • @paulmeyer5682
    @paulmeyer5682 2 ปีที่แล้ว +1

    guvcwiew ist ein toller Programm für die USB - Kamera am Raspberry.

    • @techcodecoffee
      @techcodecoffee  2 ปีที่แล้ว

      But guvcview requires an installed X Window System. My tutorial can run headless to capture from a simple script in timed intervals.