diff --git a/static/articles/Use_phone_camera_for_linux_desktop_(2023)/Use_phone_camera_for_linux_desktop_(2023).md b/static/articles/Use_phone_camera_for_linux_desktop_(2023)/Use_phone_camera_for_linux_desktop_(2023).md new file mode 100644 index 0000000..1685823 --- /dev/null +++ b/static/articles/Use_phone_camera_for_linux_desktop_(2023)/Use_phone_camera_for_linux_desktop_(2023).md @@ -0,0 +1,21 @@ +I've moved to Fedora Linux and new mjpeg streaming app was released, since the previous article was written. So, because I needed a camera again, I decided to update this manual. + +First of all, there is a new app by Thomas SIMON: [RemoteCam](https://github.com/Ruddle/RemoteCam). It directly streams video from camera and permits multiple settings like video resolution and jpeg quality. + +To create a dummy camera interface on Fedora, we need to install v4l2loopback packet: + +```bash +sudo dnf install v4l2loopback +``` + +Next, after reboot, we're ready to start the stream with ffmpeg: + +```bash +sudo ffmpeg -f mjpeg -r 5 -i "http://:8080/cam.mjpeg?fps=10" -r 10 -pix_fmt yuv420p -f v4l2 /dev/video0 +``` + +My Wi-Fi connection speed was enough for such stream. But it is still possible to use it with adb port forwarding over usb: + +```bash +adb forward tcp:8080 tcp:8080 +``` \ No newline at end of file