Turn your smartphone or tablet (e.g., Iphone, Ipad, Samsung, Motorola, etc) camera into a WebCam to make video conference (e.g., Google Meeting, Zoom, Discord, etc) in Linux.
Examples:
- Apple store https://apps.apple.com/us/app/ipcamera-high-end-networkcam/id570912928
- Google play https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en
Go to https://github.com/umlaeute/v4l2loopback and see the instructions.
Manjaro Linux users: pamac install v4l2loopback-dkms
Do not forget to install the linux-headers before install the v4l2loopback
ls /dev/video*
e.g. output: /dev/video0 /dev/video1
Go to https://obsproject.com/ to get more information.
I used obs-v4l2sink
to sink the obs output scenes to the other device created.
Manjaro Linux users: pamac install obs-v4l2sink
sudo modprobe v4l2loopback devices=2 video_nr=91,92 exclusive_caps=0,1
OBS:
device=2
- 2 capture device (1 to sink to PC and 1 to sink to OBS)video_nr=91,92
- devices idsexclusive_caps=0,1
- only/dev/video92
will be identify by the client (e.g. Google Meeting)
ls /dev/video*
e.g. output: /dev/video0 /dev/video1 /dev/video91 /dev/video92
Open the app in your smartphone and check the ip address. In my case, it shown the IP 192.168.15.5.
Open the terminal in your PC and execute:
gst-launch-1.0 souphttpsrc location=http://192.168.15.5:80/live ! jpegdec ! videoconvert ! v4l2sink device=/dev/video91
Obs: Change the ip
and the device
acording to your configuration.
Open other tab in the terminal and execute obs
.
In Sources
:
- click on
+
- select
Video Capture Device (V4L2)
- click on
ok
- On the
Device
field, selectDummy video device 0
- click on
ok
- Centralize the added source on the screen
Whooll: you can setup the screen as your wish!!
Now, we are going to use the the installed OBS plugin.
In OBS:
- click on
Tools -> v4l2sink -> ok
- Write on
Device Path
:/dev/video92
(i.e., the second device created) Now, it will generate aDummy device 1 (0x0001)
e.g., if you are going to use Google Meeting:
- open https://meet.google.com/
- click on
settings->video
- select the
Dummy device 1 (0x0001)
device
- Iphone 11 iOS 13.5.1 + iPCamera - High-End NetworkCam v1.4 App + Kernel: 5.4.44-1-MANJARO x86_64 + OBS Studio - 25.0.8-1 (linux)