Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

xeniumcode/Scrcpy-Camera

Open more actions menu

Repository files navigation

Scrcpy WebCam Controller

Description

Scrcpy WebCam Controller is a Python application that allows you to control your Android device's cameras as a webcam on your computer. It utilizes the Scrcpy tool to mirror your Android device's screen and camera feed to your computer.

Software's Look

Features

  • Switch between front and back cameras
  • Stop camera feed
  • User-friendly GUI with dark theme
  • Status display
  • Virtual video device creation using v4l2loopback

Requirements

  • Python 3.x
  • Tkinter
  • Scrcpy
  • v4l2loopback (for Linux systems)

Installation

  1. Ensure you have Python 3.x installed on your system.

  2. For Arch Linux , install v4l2loopback:

    sudo pacman -S v4l2loopback-dkms

Usage

  1. Connect your Android device to your computer via USB.
  2. Enable USB debugging on your Android device.

Run the script

python main.py

Troubleshooting

  • Ensure your Android device is properly connected and USB debugging is enabled.
  • If the camera feed doesn't appear, try restarting the application or reconnecting your device.
  • Check if Scrcpy is properly installed and accessible from the command line.
  • For Linux users, ensure the v4l2loopback module is loaded correctly. You may need to adjust the video_nr value if /dev/video5 is already in use.

License

MIT License

About

Control your android as a webcam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.