0

I created a virtual camera using the commands modprobe v4l2loopback card_label="My Fake Webcam" exclusive_caps=1

Passing video from a file to a virtual camera works for me on command

ffmpeg -stream_loop -1 -re -i /root/Downloads/test.mp4 -vcodec rawvideo -threads 0 -f v4l2 /dev/video0

I need to simultaneously transfer audio from the same file along with the video. How to do it?

I have read the question already asked https://stackoverflow.com/questions/61990828/how-to-redirect-an-audio-stream-to-a-virtual-pulseaudio-microphone-with-ffmpeg

And try command ffmpeg -stream_loop -1 -re -i /home/alex/test.mp4 -threads 0 -f v4l2 /dev/video0 & PULSE_SINK=virtual_speaker ffmpeg -i /home/alex/test.mp4 -f pulse "stream name"

But I only get audio, no video...

0 Answers0