dev47apps / droidcam-linux-client

GNU/Linux/nix client for DroidCam
http://www.dev47apps.com
GNU General Public License v2.0
1.08k stars 174 forks source link

Audio only feature without activating cam, mic only on OBS #224

Closed jadewong1011 closed 1 year ago

jadewong1011 commented 2 years ago

I am trying to do a setup where I use one android device as the mic and the other as the camera. While I can run both with camera and mic on OBS, the power consumption is profound. Also, streaming the data causes connection issues where an audio connection would require less bandwidth. Thank you.

AmmarHaddadi commented 2 years ago

Hi , you can use mic only by following this :

  1. start droidcam on your android device
  2. run this command in your terminal (I am assuming that you did sudo ./install-sound before): droidcam-cli -a <phone ip here> <phone port here>

    example : droidcam-cli -a 192.168.0.9 4747

  3. run this to load the microphone into pulseaudio (making it show up as a microphone (I think you have to do it every time)): pacmd load-module module-alsa-source source_properties=device.description=DroidCam device=hw:Loopback,1,0
  4. now go to the app you want to use the mic in , click on microphone / input , you should find DroidCam there , you can change it's name in the previous command

if you face any problem you can read this on their official website : https://www.dev47apps.com/droidcam/linux/

aramg commented 1 year ago

To add to the above suggestion, with DroidCam OBS an audio-only mode isn't supported but it is in the feature request list.

The current recommendation is to turn down video (use Low video quality and 640x480 resolution) which will significantly reduce the bandwidth requirements. The app architecture relies heavily on video being active before anything else, a mic-only option is considered an insignificant use-case due to the lower quality of phone mics.

Closing this an unrelated to the regular droidcam apps.