Ask Your Question

Convert an ip camera into webcam

asked 2018-03-07 05:13:53 -0500

kainblock gravatar image

I converted an old android device into IP camera with IP Webcam app. I can use it within browser ( view camera change settings etc. ). Now i want to make this IP camera works as webcam so i can use it with Cheese, Discord, Skype

Is that possible to use an android phone as webcam on Fedora ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-03-07 06:44:39 -0500

fcomida gravatar image

There is this project: ipwebcam-gst

edit flag offensive delete link more


hi @fcomida and thanks for the answer. ipwebcam-gst v4l2loopback. Its trying to installing through apt-get so i installed manually but ipwebcam-gst still trying to install v4l2loopback from apt-get I did that

$ sudo dnf install v4l2loopback
Last metadata expiration check: 2:22:48 ago on Τετ 07 Μάρ 2018 05:46:28 μμ EET.
Package v4l2loopback-0.9.1-2.fc27.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.

Is anything else to do to complete installation of v4l2loopback

kainblock gravatar imagekainblock ( 2018-03-07 12:19:24 -0500 )edit

Edit the script to use dnf instead or just comment out the lines and do the installs yourself. I expect that you have most of the packages installed already.

ssieb gravatar imagessieb ( 2018-03-07 13:23:15 -0500 )edit

I already did. Magically works but i don't know how. The main problem is when script tries to use pactl returning "No PulseAudio daemon running, or not running as session daemon." but

$ pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

already tried to add sudo before pactl. I will keep searching thanks. If you have any idea may be useful

kainblock gravatar imagekainblock ( 2018-03-07 13:36:35 -0500 )edit

I modified it, you have to install redhat-lsb-core first and then apply the patch below:

>     elif [ $DIST = "Fedora" ]; then
>         sudo dnf install -y "$1"
>         if [ $? != 0 ]; then
>             info "Installation failed.  Please install v4l2loopback manually from"
>         fi
>     fi
>     if [ $DIST = "Fedora" ]; then
>         install_package "v4l2loopback"

copy the above text in a file named fix.patch and patch < fix.patch

fcomida gravatar imagefcomida ( 2018-03-07 13:44:40 -0500 )edit

@kainblockpulseaudio run as regular user, do not run the script as root, check permissions of /dev/video1. You may have to add yourself to video group. I tried it with kamoso and vlc and both audio and video work.

fcomida gravatar imagefcomida ( 2018-03-07 15:40:42 -0500 )edit

Question Tools

1 follower


Asked: 2018-03-07 05:13:53 -0500

Seen: 1,819 times

Last updated: Mar 07 '18