sudo apt install v4l2loopback-dkms
sudo modprobe v4l2loopback
ffmpeg -re -i input.mp4 -map 0:v -f v4l2 /dev/video0
update /dev/video* a needed
https://github.com/CatxFish/obs-v4l2sink
(even though it is archived it still works like a charm)
So in theory if you want to pipe just audio you would need to make a “virtual” audio sink (in this case we will call it fake_mic
)
pactl load-module module-null-sink sink_name=fake_output sink_properties=device.description=fake_output
Have the audio you want playing in something like VLC and pipe that output to the new audio device via pavucontrol
, pasystray
, or anything else that can manage PulseAudio.
The reason why I suggest VLC is because VLC lets you set your audio device from there menus directly.
Audio > Audio Devices > fake_output
Then create a input loopback of the fake_output
we will call fake_mic
pactl load-module module-remap-source master=fake_output.monitor source_name=fake_mic source_properties=device.description="fake_mic"
Then in your program of choice your should be able to select fake_mic
that plays whatever your output to it.
@Moon What I would do is still play the media in VLC or whatever, pipe the audio to fake_output
then with that OBS plugin add VLC as a window source (you can crop out the VLC borders via the transform options) and connect to your meeting app with the dummy video (whatever is on the OBS layout) set as camera and fake_mic
as the input.
I have done this a few times when streaming games over Jitsi and such.
None of this is “clean” from the standpoint of the user but it works more or less.
- replies
- 0
- announces
- 0
- likes
- 0
I'm at work so I shouldn't be messing with this right now but I am
