How to use Android phone camera on desktop computer via WiFi with IP Webcam
- Install IP Camera. The application is free, with minimal adds. Compared to DroidCam, it allows you to stream FullHD video
- Install dependencies:
sudo dnf install ffmpeg v4l2loopback akmod-v4l2loopback
- Verify that v4l2loopback is loaded:
lsmod | grep v4l2loopback
- If it is not loaded, run this command:
akmods --kernels $(uname -r) --rebuild
# Confirm that it was loaded
- On mobile phone, start the application and select “Start server” from the menu. Select also “Fade” option to set minimal brightness of the mobile phone screen.
- On desktop, run the following command:
ffmpeg -i http://192.168.2.26:8080/videofeed -vf format=yuv420p -f v4l2 /dev/video0
If for some reason
v4l2loopback
module is not compiled correctly, you can try to compile it manually by following this instruction