How to Use Raspberry Pi as a PC Webcam

(Image credit: Tom's Hardware)
Latest Videos FromTom's Hardware
Avram Piltch
Managing Editor: Special Projects

Avram Piltch is Managing Editor: Special Projects. When he's not playing with the latest gadgets at work or putting on VR helmets at trade shows, you'll find him rooting his phone, taking apart his PC, or coding plugins. With his technical knowledge and passion for testing, Avram developed many real-world benchmarks, including our laptop battery test.

  • DWBollweevil
    I think you left out a step, before step 9... don't you need to clone the mjpg-streamer repo from github?
    Reply
  • DWBollweevil
    Are there any extra steps to get the camera recognized by Google Hangouts or Jitsi Meet? I'm able to see the camera working at http://raspberrypi:8080/?action=stream, and IP Camera Adapter autodetects successfully, but I'm unable to actually use it in either of the apps I need it for. FWIW, the Windows 10 'Camera' app also does not recognize the camera at all. Any help is appreciated!
    Reply
  • daglesj
    Alternatively just use one of the other 12 devices you have to hand with a webcam already built in and ready to go.

    Looking round my living room alone I count 9!
    Reply
  • enitka
    admin said:
    Having trouble getting a USB webcam for your PC? You can use a Raspberry Pi with camera module instead.

    How to Use Raspberry Pi as a PC Webcam : Read more
    Now I've gone and broken the cuff for the flat cable on the camera - any source for replacement cuffs ? ernie
    Reply
  • graysoniv
    Hey there after this step
    mjpg_streamer -i “input_raspicam.so” -o output_http

    I get this error

    ERROR: could not find output plugin output_http

    Any ideas? think im missing a plugin but dont know how to install it.
    Reply
  • MCaLeer
    I think he forgot the .so after -o output_http.so

    Also mistype in the step regarding the usb gadget...it should not be cmdline.text but cmdline.txt

    -if you use what is written there it will create a new file and won't make sense.
    Reply
  • menacing
    MCaLeer said:
    I think he forgot the .so after -o output_http.so

    You're right.

    mjpg_streamer -i "input_raspicam.so" -o "output_http.so"

    Also for me I had a problem copying and pasting the wrong type of """" marks.

    Great guide though, thank you.
    Reply
  • tomasf
    daglesj said:
    Alternatively just use one of the other 12 devices you have to hand with a webcam already built in and ready to go.

    Looking round my living room alone I count 9!
    I thougth the same. Phone(s), tables, laptop. An old webcam.
    Reply
  • Bezalel79
    Do you think it is possible to connect 3 external USB cameras and generate 3 distinct streams?
    thanks
    Reply
  • Mordog89
    @menacing This worked! thanks for the line to copy! :)
    Reply