russelltg / wl-screenrec

High performance wlroots screen recording, featuring hardware encoding
Apache License 2.0
305 stars 9 forks source link

Audio: record multiple audio streams #66

Open Aman49362 opened 6 months ago

Aman49362 commented 6 months ago

is there a way i can record specific audio outputs ? like an application with my mic

russelltg commented 6 months ago

Ah, right now you can only record one audio stream, specified by --audio-device, so turning this issue into a feature request to mix audio streams.

russelltg commented 6 months ago

Note, if you use pipewire, this is doable by making a virtual output:

pactl load-module module-null-sink media.class=Audio/Sink sink_name=wl-screenrec-input channel_map=stereo

Then fire up qwpgraph and setup your graph as desired, something like this:

image

then run

wl-screenrec --audio --audio-device wl-screenrec-input.monitor

This is all probably doable from pw-cli as well.

Aman49362 commented 6 months ago

umm thanks for give me you time but since i am a bit new to linux community i didnt quite understand what you are saying i just pasted your commands and it didnt work i try checking by myself and found that the new output source i created by your command it is empty (guess i will have to add applications by myself and i am a noob) anyways do i mark it as solved?

russelltg commented 6 months ago

Yeah, you're going to have to drag-n-drop connections. For the method I outlined above.

Don't mark this as solved, I think it is a reasonable request. I was just posting a workaround for pipewire users.

Aman49362 commented 6 months ago

Oh got it all i was just confused for what command or application to use for merging this i search in the package manager for qwpgraph which you spelled wrong but no problem i got it working now thanks to you appreciate you work sir and guess i should mark it as solved just let me know