I need to create both virtual webcam and virtual microphone on an Ubuntu 16.04 machine for use in web application using WebRTC through my web browser.
I need to feed video and audio to these 2 virtual devices from an IP camera (RTSP stream). Playing RTSP stream directly in VLC works fine with both video and audio.
For this, I have created a /dev/video1 with video4linux2. I am able to feed the IP camera to /dev/video1.
ffmpeg -i rtsp://ip_address:554/streaming/channels/101/ -f v4l2 /dev/video1
If I look in VLC player, I can select /dev/video1 as a video device, but I have only "hw:0,0" as audio device, which is my in-built microphone.
How to properly feed such RTSP stream to both virtual webcam and virtual microphone?