tool to use IPWebcam as v4l2 webcam or microphone
Thanks for the work of ipwebcam-gst and ip_webcam_linux_client, which provide a reference for the operations related to v4l2 webcam and pipewire virtual microphone.
# check the help first
./ipWebcam_cli.py -h
# test webcam on https://10.10.10.10:1010, and force tls verification
./ipWebcam_cli.py --ip 10.10.10.10 --port 1010 --tls --ssl-strict test
# use http, select aac audio stream, and disable video
./ipWebcam_cli.py --ip 10.10.10.10 --port 1010 --vn --acodec aac test
# launch as local virtual v4l2 webcam and microphone (https without tls check)
./ipWebcam_cli.py --ip 10.10.10.10 --port 1010 --tls run
# connect with adb, use video method ffmpeg for run mode
./ipWebcam_cli.py --use-adb --port 1010 --vmethod ffmpeg run
There’re still some issues to be fixed:
-
if the
run
subcommand failed for v4l2 related operation, reloadv4l2loopback
should resolve it. By the way, the video capture methodffmpeg
seems to be more stable thangst
forrun
mode. -
On default audio output device switch, the virtual microphone may loose the link from audio capture process to the created virtual sink, which is the input source for the virual microphone. Either a restart or a manually relink with
pw-link
will resolve it.