[opensuse-support] Configure webcam (using android phone as wifi webcam)
HI I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more. Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0). if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here regards Ian -- opensuse:tumbleweed:20200320 Qt: 5.14.1 KDE Frameworks: 5.68.0 - KDE Plasma: 5.18.3 - kwin 5.18.3 kmail2 5.13.3 (19.12.3) - akonadiserver 5.13.3 (19.12.3) - Kernel: 5.5.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 3/23/20 5:22 AM, Ianseeks wrote:
HI
I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more.
Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0).
if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here
regards
Ian
well "webcam" and "ip webcam" are likely two different things. wxcam is made for connecting to a webcam (uses devices connected with video4linux 1 or 2 via usb). I haven't checked into camoid. An "ip webcam" probably means the android device has an rtsp server running and is publishing a stream on the ip and port it gave you. You will want to capture that stream to watch it. I use the terminal and bash scripts for my ip cams. You can try a command like this: ffplay 'rtsp://username:password@192.168.1.5:554' -analyzeduration 0.1 -x 960 -y 520 -window_title front_cam -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Monday, 23 March 2020 13:12:01 GMT ITwrx wrote:
On 3/23/20 5:22 AM, Ianseeks wrote:
HI
I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more.
Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0).
if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here
regards
Ian
well "webcam" and "ip webcam" are likely two different things. wxcam is made for connecting to a webcam (uses devices connected with video4linux 1 or 2 via usb). I haven't checked into camoid. An "ip webcam" probably means the android device has an rtsp server running and is publishing a stream on the ip and port it gave you. You will want to capture that stream to watch it. I use the terminal and bash scripts for my ip cams. You can try a command like this: ffplay 'rtsp://username:password@192.168.1.5:554' -analyzeduration 0.1 -x 960 -y 520 -window_title front_cam
Thanks, that didn't work for me. I'm trying to get it to be seen as a "webcam" device so video conferencing software can see it as a valid device. -- opensuse:tumbleweed:20200322 Qt: 5.14.1 KDE Frameworks: 5.68.0 - KDE Plasma: 5.18.3 - kwin 5.18.3 kmail2 5.13.3 (19.12.3) - akonadiserver 5.13.3 (19.12.3) - Kernel: 5.5.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 3/24/20 8:54 AM, Ianseeks wrote:
On Monday, 23 March 2020 13:12:01 GMT ITwrx wrote:
On 3/23/20 5:22 AM, Ianseeks wrote:
HI
I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more.
Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0).
if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here
regards
Ian
well "webcam" and "ip webcam" are likely two different things. wxcam is made for connecting to a webcam (uses devices connected with video4linux 1 or 2 via usb). I haven't checked into camoid. An "ip webcam" probably means the android device has an rtsp server running and is publishing a stream on the ip and port it gave you. You will want to capture that stream to watch it. I use the terminal and bash scripts for my ip cams. You can try a command like this: ffplay 'rtsp://username:password@192.168.1.5:554' -analyzeduration 0.1 -x 960 -y 520 -window_title front_cam
Thanks, that didn't work for me. I'm trying to get it to be seen as a "webcam" device so video conferencing software can see it as a valid device.
Looking here: https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en_US i see that app uses motion jpeg, not rtsp. IIRC, that's probably not going to be great for video conferencing. It would probably be simpler to just get a usb webcam that works with the v4l driver and use that. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 3/24/20 10:56 AM, ITwrx wrote:
Looking here: https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en_US i see that app uses motion jpeg, not rtsp. IIRC, that's probably not going to be great for video conferencing. It would probably be simpler to just get a usb webcam that works with the v4l driver and use that.
but you could also see if the video conferencing software supports mjpeg streams and see how it goes. You can probably play the mjpeg stream with vlc or ffplay if you just wanted to verify it was working to that point. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Tuesday, 24 March 2020 16:12:27 GMT ITwrx wrote:
On 3/24/20 10:56 AM, ITwrx wrote:
Looking here: https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en_US i see that app uses motion jpeg, not rtsp. IIRC, that's probably not going to be great for video conferencing. It would probably be simpler to just get a usb webcam that works with the v4l driver and use that.
but you could also see if the video conferencing software supports mjpeg streams and see how it goes. You can probably play the mjpeg stream with vlc or ffplay if you just wanted to verify it was working to that point.
I got it running in vlc so it does work. i'm going to have to search out a cheap webcam. thanks for the tips -- opensuse:tumbleweed:20200322 Qt: 5.14.1 KDE Frameworks: 5.68.0 - KDE Plasma: 5.18.3 - kwin 5.18.3 kmail2 5.13.3 (19.12.3) - akonadiserver 5.13.3 (19.12.3) - Kernel: 5.5.9-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 3/25/20 2:26 AM, Ianseeks wrote:
On Tuesday, 24 March 2020 16:12:27 GMT ITwrx wrote:
On 3/24/20 10:56 AM, ITwrx wrote:
Looking here: https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en_US i see that app uses motion jpeg, not rtsp. IIRC, that's probably not going to be great for video conferencing. It would probably be simpler to just get a usb webcam that works with the v4l driver and use that. but you could also see if the video conferencing software supports mjpeg streams and see how it goes. You can probably play the mjpeg stream with vlc or ffplay if you just wanted to verify it was working to that point.
I got it running in vlc so it does work. i'm going to have to search out a cheap webcam. thanks for the tips
you're welcome -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
W dniu 23.03.2020 o 11:22, Ianseeks pisze:
HI
I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more.
Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0).
if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here
regards
Ian
I hope I'm not too late. I asked my fried, who has achieved such setup for instruction how he did it, so here it is: """ I'm using IP Webcam (com.pas.webcam) on the Android side together with this script on my PC: https://github.com/bluezio/ipwebcam-gst. The script makes use of v4l2loopback and GStreamer to create a virtual video device. In my setup the Android device is connected via USB since there's less delay, but it also works over Wi-Fi. The script is well documented in its readme and comments. The configuration part includes a bunch of settings you need to keep in sync with IP Webcam, namely: - width and height of the video stream (WIDTH, HEIGHT), - video frame rate (GST_FPS), - whether you're streaming video, audio or both (CAPTURE_STREAM). In order for the v4l2loopback device to be detected by chromium-based browsers you'll need to load the kernel module with an additional parameter as shown below: sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback exclusive_caps=1 With systemd you can make these changes persistent across reboots using /etc/modules-load.d and /etc/modprobe.d conf files. For a discussion on the exclusive_caps parameter see: https://github.com/umlaeute/v4l2loopback/issues/78. In the case of Firefox, there is a known issue where the stream stops after a single frame (https://github.com/umlaeute/v4l2loopback/issues/251), unfortunately I wasn't able to get it running there so far. The script mentioned earlier is no longer maintained as far as I'm aware and I'm working on improving it, as well as documenting all this in a blog post. """
Regarding the cheap webcam: For your reference, I have a logitech c270. Ebay has them starting at ~ $30. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Monday, 30 March 2020 16:44:45 BST Adam Mizerski wrote:
W dniu 23.03.2020 o 11:22, Ianseeks pisze:
HI
I'm at a loss how to configure this - i'm sure there used to be a webcam option in system settings or yast - can't find it any more.
Using "IP Webcam" on the phone and it gives a IP address and port but where do you configure it on TW? I've tried webcamoid (takes desktop image and redisplays it recursively in its window) and wxcam (uses /dev/video0).
if there a simple way to configure a wifi device as a webcam. Couldn't find anything relevant with a search. Sure i'm having a senior moment here
regards
Ian
I hope I'm not too late. I asked my fried, who has achieved such setup for instruction how he did it, so here it is:
""" I'm using IP Webcam (com.pas.webcam) on the Android side together with this script on my PC: https://github.com/bluezio/ipwebcam-gst. The script makes use of v4l2loopback and GStreamer to create a virtual video device. In my setup the Android device is connected via USB since there's less delay, but it also works over Wi-Fi.
The script is well documented in its readme and comments. The configuration part includes a bunch of settings you need to keep in sync with IP Webcam, namely: - width and height of the video stream (WIDTH, HEIGHT), - video frame rate (GST_FPS), - whether you're streaming video, audio or both (CAPTURE_STREAM).
In order for the v4l2loopback device to be detected by chromium-based browsers you'll need to load the kernel module with an additional parameter as shown below: sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback exclusive_caps=1 With systemd you can make these changes persistent across reboots using /etc/modules-load.d and /etc/modprobe.d conf files.
For a discussion on the exclusive_caps parameter see: https://github.com/umlaeute/v4l2loopback/issues/78. In the case of Firefox, there is a known issue where the stream stops after a single frame (https://github.com/umlaeute/v4l2loopback/issues/251), unfortunately I wasn't able to get it running there so far.
The script mentioned earlier is no longer maintained as far as I'm aware and I'm working on improving it, as well as documenting all this in a blog post. """
Thanks Adam, i'll give that a try. -- opensuse:tumbleweed:20200326 Qt: 5.14.1 KDE Frameworks: 5.68.0 - KDE Plasma: 5.18.3 - kwin 5.18.3 kmail2 5.13.3 (19.12.3) - akonadiserver 5.13.3 (19.12.3) - Kernel: 5.5.11-1-default - xf86-video-nouveau: 1.0.15 -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Adam Mizerski
-
Ianseeks
-
ITwrx