better_droidcam_linux_client
better_droidcam_linux_client copied to clipboard
A better client for DroidCam on Linux
A better client for DroidCam on Linux
Because the official one is over-engineered, does not work with Discord, does not work in all Linux distros painlessly and just generally badly done.
Requirements
adbv4l2loopbackffmpeg- On Arch based systems, you'll also need to install
android-udevso you can useadbwithout root.
If you have an Arch based system (Arch/Manjaro), you can just do sudo pacman -S android-tools v4l2loopback-dkms ffmpeg android-udev --needed in terminal and you're good to go.
How to use
- It is recommended to put this file in PATH, so you can call it from the terminal from everywhere.
- Just run
droidcamin a terminal, enter the root password (v4l2loopbackrequires it), and keep the ffmpeg process running until you are done.- When you are done, press
Qwhile in the terminal to stop the ffmpeg process.
- When you are done, press
- You can also use
droidcam-mpvto open up the camera feed in the mpv player. You could also window share this on Discord. - You can also specify a resolution in the command line, like so:
droidcam 640x480ordroidcam-mpv 640x480. - You can also edit the script and change the options I put at the top (IP, port, endpoint, encode options, etc).
Limitations
- Droidcam itself has some limitations.
- Resolution is limited to 480p in the free version and 1080p in the paid version.
- Web interface won't work when you have this script running.
If you want something better, there's always IP webcam.