- Linux версия
- Как установить?
- Для DroidCam и DroidCamX версии 6 и выше (новейшая версия ):
- Для DroidCam и DroidCamX ниже 6:
- Как обновить разрешение веб-камеры
- Удаление
- О программе
- How to Install Wireless Webcam App ‘DroidCam’ in Ubuntu 16.04
- How to Install DroidCam in Ubuntu:
- Share this:
- 11 responses to How to Install Wireless Webcam App ‘DroidCam’ in Ubuntu 16.04
- Linux версия
- Linux
- Extra Notes
Linux версия
Модуль GNU / Linux (прототип) представляет собой комбинацию драйвера устройства Video4Linux2 и исполняемого приложения, которое будет передавать поток с телефона на драйвер.
Предполагается, что вы немного знакомы с системой и с тем, как использовать терминал. Также имейте в виду, что другие посты в блоге ориентированы на Windows.
Как установить?
1. Сначала вы должны удалить все старые версии клиента, которые у вас есть. Прокрутите вниз до раздела «Удаление» ниже.
2. Если вы используете более старое устройство Android, проверьте версию DroidCam, которая была установлена в магазине игр, и выполните соответствующие команды снизу.
Для DroidCam и DroidCamX версии 6 и выше (новейшая версия ):
Для DroidCam и DroidCamX ниже 6:
Загрузите один из следующих пакетов в / tmp, распакуйте и запустите
64-битный (f937c3510615af68c007b8c72deadb14) или
32-битный (73c6b9d853a0a6ab7c6d15174450a3f1).
Если вы используете новейшее ядро Linux (версия 4 или выше) и видите ошибки, убедитесь, что у вас установлена версия gcc 4.9 или выше: — 3. После того, как все пройдет без ошибок, вы можете убедиться, что устройство установлено с . Ищите «v4l2loopback_dc».
Откройте совместимую с V4L2 программу (проигрыватель VLC, Skype, Cheese и т. Д.), И вы увидите DroidCam в списке видеоустройств.
4. Запустите droidcam через терминал или создайте панель запуска, если вы используете gnome. Вы также можете попробовать droidcam-cli -h .
5. Проверьте сообщение о подключении. Если все идет хорошо, вы должны увидеть вывод в приложении чата, и все готово!
Примечание о USB-соединениях: последняя версия клиента будет пытаться автоматически вызывать adb при условии, что исполняемый файл найден через переменную среды $ PATH (т. Е. Export PATH = $ PATH: / path / to / adb).
Следующие команды выполняются автоматически:
Как обновить разрешение веб-камеры
Вы можете изменить выходное разрешение веб-камеры следующим образом:
1. Закройте все программы, используя веб-камеру droidcam. Выгрузите драйвер устройства:
2. Перезагрузите его следующим образом (ШИРИНА и ВЫСОТА — это числа). :
Рекомендуемые разрешения: 320 × 240, 480 × 360, 640 × 480, 960 × 720 или 1280 × 720.
3. Перезапустите клиент droidcam, чтобы перезагрузить настройки и проверить его. Вы можете продолжать изменять разрешение.
4. Отредактируйте текстовый файл /etc/modprobe.d/droidcam.conf с новыми опциями, чтобы внести изменения.
Удаление
Чтобы удалить клиент DroidCam (или существующую старую версию):
Закройте все работающие программы. Выполните одно из следующих действий (зависит от того, какую версию Linux-клиента вы получили)
О программе
DroidCam превращает ваше устройство Android в беспроводную веб-камеру,
позволяя вам общаться в Skype, Google+ и других программах.
Источник
How to Install Wireless Webcam App ‘DroidCam’ in Ubuntu 16.04
DroidCam is a simple tool that turns your Android device into a wireless webcam, letting you chat on Skype, Google+, and other programs.
It also works with OBS/XSplit/etc for streaming to Twitch or YouTube. You can also use DroidCam as an IP webcam (or Surveillance Camera) via a Internet browser virtually on all networks. Use it as a simple pet cam, spy cam, or a security camera.
- Chat using “DroidCam Webcam” on your computer, including Sound and Picture.
- Connect over WiFi or USB cable.
- Use other apps with DroidCam in background.
- Surveillance/IP webcam MJPEG access
How to Install DroidCam in Ubuntu:
1. Download DroidCam Linux client from the official links below:
2. Extract and open the result folder in terminal by selecting “Open in Terminal” from its context menu.
3. When the terminal opens, run the install script to make and install the client in your system:
Type in your password when it asks (no visual feedback) and hit Enter.
Once installed, you should be able to launch the client by running droidcam command in terminal.
4. To create a launcher shortcut, run command to create an empty configuration file:
And paste below lines when the files opens and save it.
For the shortcut icon file, grab one from the web, name droidcam (.png, or .svg), put it into .local/share/icons folder.
Finally launch the client and start DroidCam in Android, select connection mode, type in ip, port, and click connect.
Open up a V4L2 compatible program (VLC player, Skype, Cheese, etc) and you should see DroidCam listed as a video device.
To update the webcam resolution, edit the configuration file via command:
then change the value of width and height. Recommended resolutions are 320×240, 480×360, 640×480, 960×720 or 1280×720.
(Optional) To remove DroidCam client in Ubuntu, run the uninstall script via command:
Thanks for reading and Merry Christmas!
Share this:
I’m a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected]
11 responses to How to Install Wireless Webcam App ‘DroidCam’ in Ubuntu 16.04
I do actually see a big issue with this..
Why not just do the chatting through hangouts on the phone? It’s all sync’s with the desktop anyway so doing it this way is just extra work for nothing.
is not only for chat, you can use to record stream direcly from your cellphone
I have a little issue with OBS, I can see the camera imput as V4L2 and work so good, but I cant get audio from the cellphone, that could be posssible?
thanks for all your work ji m (you are my favorite tutor online)
I was reading about and V4L2 don’t have a audio layer, is only video, the DroidCam windows client run a virtual audio card and is listed in OBS.
I solve this problem in linux just running an audio server from my android (like LANmic), and getting the streaming using VLC and recording the system output in OBS.
maybe is a not elegant solution but work to me. of course that method have hi latency even using a low buffer….
I get the error ./install: line 36 make: command not found
Any help? Lubuntu 16.04 thanks
I need to (select connection mode, type in ip, port, and click connect.) using terminal .. how can i do that ??
Works on ubuntu 16.10! Thank you!
Hi, I’m trying to install DroidCam 64bit on Ubuntu 16.04.
When I install I got (insmod: ERROR: could not insert module /lib/modules/4.4.0-62-generic/kernel/drivers/media/video/v4l2loopback-dc.ko: Required key not available)error.
Is this a kernel problem? What do I do? Thanks.
have the same problem !!
I’m getting the following error in Ubuntu Gnome 16.04
Webcam parameters: ‘640’ and ‘480’
Building v4l2loopback-dc.ko
make: Entering directory ‘/home/sharad/Music/droidcam-64bit/v4l2loopback’
make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory ‘/usr/src/linux-headers-4.8.0-58-generic’
LD /home/sharad/Music/droidcam-64bit/v4l2loopback/built-in.o
CC [M] /home/sharad/Music/droidcam-64bit/v4l2loopback/v4l2loopback-dc.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/sharad/Music/droidcam-64bit/v4l2loopback/v4l2loopback-dc.mod.o
LD [M] /home/sharad/Music/droidcam-64bit/v4l2loopback/v4l2loopback-dc.ko
make[1]: Leaving directory ‘/usr/src/linux-headers-4.8.0-58-generic’
make: Leaving directory ‘/home/sharad/Music/droidcam-64bit/v4l2loopback’
Moving driver and executable to system folders
Registering webcam device
insmod: ERROR: could not insert module /lib/modules/4.8.0-58-generic/kernel/drivers/media/video/v4l2loopback-dc.ko: Required key not available
Hello. I don’t listen audio of DroidCam… In Windows, I can use microphone of my phone. but Ubuntu, I can’t use microphone
Источник
Linux версия
В отличие от программы, написанной для Windows, Linux вариация представлена драйвером Video4Linux2, совмещенным с программой для передачи сигнала со смартфона на ПК. Чтобы установить DroidCam на Линукс:
- Деинсталлируйте другие версии клиента, установленные ранее.
- Убедитесь, что gcc, make и linux заголовки правильно установлены для вашей версии ядра. Используйте для этого Apt-Get c командой sudo apt-get install gcc make linux-headers-`uname -r`.
- В том случае, если во время установки программы на ядра 4-ой версии или выше появляются сбои, инсталлируйте gcc 9 или его более позднюю вариацию. Повторите инсталляцию ещё раз. Когда она пройдет без сбоев, запустите софт, совместимый с V4L2 (подойдет Skype), среди устройств для воспроизведения видеосигнала должен появится DroidCam.
- Используйте терминал для запуска программы. Пользователи gnome, могут создать ярлык для быстрого запуска.
- Успешный запуск ознаменуется появлением соответствующего сообщения в чате.
Актуальная версия ДроидКам при подключении по USB-кабелю будет автоматически вызывать adb, если таковой установлен в системе.
Из базовых настроек, доступных пользователю, реализована смена разрешения для передачи сигнала видео. Для этого понадобится:
- Закрыть софт, который совместим с DroidCam. Открыть драйвера программы командой: sudo rmmod v4l2loopback_dc.
- Измените параметры разрешения в строке sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT и перезагрузите драйвер. Вы можете использовать следующие значения: 640 x 480, 960 x 720, 1280 x 720 и 1920 x
- Чтобы проверить внесенные изменения, перезагрузите клиент Дроид Кам.
- Если вас устраивают текущие настройки, внесите коррективы в файл /etc/modprobe.d/droidcam.conf указав приоритетное разрешение, чтобы оно было выставлено по умолчанию с запуском программы.
Способ удаления ДроидКам c Linux зависит от клиента. Для старой версии используйте команду sudo
/.droidcam/uninstall. В новой — sudo /opt/droidcam-uninstall.
Скачайте установочный DroidCam и запустите инсталляцию. Выполните следующие действия:
- В первом окне нажмите «Next».
- Прочтите пользовательское соглашение, после чего щелкните «I Agree».
- Выберите папку для установки. Можете оставить путь по умолчанию (на жестком диске, где установлена ОС). Щёлкните «Install».
- Обязательно установите вспомогательный звуковой драйвер. Без него не будет работать передача звука со смартфона на компьютер.
- Нажмите «Finish».
Важно! Клиент совместим с 32 и 64 битными ОС, за исключением Windows XP.
После установки клиента программы на компьютере, скачайте DroidCam на Android. Для этого:
- Установите программу с официального магазина приложений или загрузите apk-файл для установки вручную.
- Дождитесь окончания инсталляции.
- После запуска, согласитесь предоставить доступ к функциям камеры и записи звука. Если вы собираетесь изменить в настройках «Keystore», понадобится открыть приложению путь ко внутреннему хранилищу.
Обратите внимание! Загружайте на смартфон актуальную версию приложения, иначе могут возникнуть проблемы с совместимостью при работе с операционной системой Linux или клиентом программы на Windows.
Источник
Linux
The GNU/Linux client is a combination an executable app that connects to the phone, and Video4Linux and ALSA loopback drivers.
It’s assumed you are familiar with the system and how to use the Terminal. Please keep in mind other posts on the website are Windows oriented.
If droidcam is already installed, make sure it’s not open.
Download and install latest client:
cd /tmp/
wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_1.8.0.zip
# sha1sum: 3f94d6ec57a191ad146392fcf094b205e375e1ef
unzip droidcam_latest.zip -d droidcam
cd droidcam && sudo ./install-client
You can use the standard v4l2loopback module, or the DroidCam version v4l2loopback-dc .
The main difference is that you’ll see “DroidCam” in the list of webcams, it works with Skype+Chrome without needing exclusive_caps=1 , and the install scripts will make sure the module stays loaded after reboot.
For DroidCam v4l2loopback-dc,
1. Install these packages: linux-headers-`uname -r` gcc make .
For example: sudo apt install linux-headers-`uname -r` gcc make
2. Run sudo ./install-video
The install-video script will try to auto-sign the drivers if you have secure boot enabled. If the signing fails, you will be prompted to manually take care of signing the driver by following ‘Secure Boot Module Signing’ instructions for your distro (more info on Google).
If all goes well, you can ensure the video device is loaded via lsmod | grep v4l2loopback_dc (you should see v4l2loopback_dc in the output).
Skype, Zoom, OBS Studio, etc. should now list DroidCam as a video device (or you may see it listed as a raw /dev/video device).
Run sudo ./install-sound .
This will load the Linux ALSA Loopback sound card, which the Droidcam client will use for audio input. See Extra Notes below for additional audio related information.
Start droidcam client from the Gnome launcher menu or via the Terminal. There is also a cli client, droidcam-cli , that you can use.
Debian and lib-app-indicator: As of Debian Bullseye, lib-appindicator has been removed which is needed for the system tray icon. Download and install it from here:
http://ftp.de.debian.org/debian/pool/main/libi/libindicator/libindicator7_0.5.0-4_amd64.deb
http://ftp.de.debian.org/debian/pool/main/liba/libappindicator/libappindicator1_0.4.92-8_amd64.deb
via “dpkg -i …”.
Extra Notes
Video rotation:
You can achieve portrait video by inverting the webcam. See the HD Mode section below.
Android USB connections:
For USB connections, you need to: a. enable USB Debugging on the phone, b. install adb on the computer.
(a) Turn on “USB Debugging” on your phone. Its located in the system Settings, under Developer Options.
On most phones the Developer Options screen is hidden by default. To unlock it, open the phones Settings, go to About Phone and search for Build number. Tap Build Number seven times to unlock Developer options. Once unlocked, search for USB Debugging and turn it On.
(b) Ensure adb is installed. The client app will try to invoke adb automatically to setup the DroidCam connection.
Debian-based Linux users can do: sudo apt-get install adb
Fedora/SUSE-based Linux users can do: sudo yum install android-tools
If you have multiple devices, you can specify which one to connect to using ANDROID_SERIAL environment variable. Use adb devices to list available devices and serials, then env ANDROID_SERIAL=XYZ droidcam-cli adb 4747 .
iOS USB Connections:
The client will try to communicate with usbmuxd to detect and connect to your iOS device. Make sure usbmuxd is installed and running.
Sound support:
To use the mic in PulseAudio you can either run pacmd load-module module-alsa-source device=hw:Loopback,1,0 (you may need to adjust the last number), or by editing /etc/pulse/default.pa as described here. On some systems you need to do this after launching the droidcam client.
If the Loopback card takes over your line out, you can set the default PulseAudio sink as shown here.
With Pipewire, open pavucontrol, Configuration tab. There are probably multiple devices called “Built-in Audio”, one of them is droidcam. Choose the profile Pro Audio, go to the Input Devices tab and check which meter reacts to the phone’s audio input (eg. Built-in Audio Pro 1), this is the desired audio input device.
Inside pavucontrol you can now set this device as default input or choose it as the input device for individual apps etc.
HD Mode – Change webcam resolution
/.config/droidcam using one of the sizes from step 2 below.
For DroidCam v4l2loopback-dc, you can change the webcam resolution as follows:
1. Close any programs using the droidcam webcam. Unload the driver:
sudo rmmod v4l2loopback_dc
2. Re-load it with new options (WIDTH and HEIGHT are numbers). :
sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT
Standard sizes (Width x Height): 640×480, 960×720, 1280×720 (720p), 1920×1080 (1080p).
NOTE: MS Teams and Skype desktop clients on Linux only support up to 1280×720 video input.
3. Re-open the droidcam client and test it out.
4. Edit the text file /etc/modprobe.d/droidcam.conf with the new options to make the change permanent.
It’s also possible to invert the video size (eg. 480×640, width=480 height=640 ), which will make the webcam vertical and rotate the video 90º. Not all programs may load the webcam with inverted parameters (eg. Discord does not) but many do (eg. Zoom and OBS).
Источник