[pulseaudio-discuss] pulseaudio parec recording short interrupt at user switch

Istvan Gabor suseuser04 at gmail.hu
Sun Sep 5 20:37:16 UTC 2021


Sat, 4 Sep 2021 20:36:35 -0700 időpontban Sean Greenslade írta:
> On Sat, Sep 04, 2021 at 10:34:34PM +0200, Istvan Gabor wrote:
>> Hello:
>>
>> I use pulseaudio's parec to record an audio stream played
>> in a browser. I use openSUSE 15.1 with its default pulseaudio
>> version pulseaudio-11.1-lp151.5.3.
>>
>> This is what I do:
>>
>> load null sink:
>> pactl load-module module-null-sink  sink_name=stream
>>
>> I move the firefox browser sound to null output in pavucontrol GUI.
>>
>> I record the stream with parec:
>> parec -d stream.monitor --file-format out.wav
>>
>> This works well. But I also want to switch between two user's 
>> desktop.
>> User1 is on VT7, user2 is on VT8.
>> I start to record on VT8, then I switch to VT7; the record is OK.
>> But when I switch back to VT8, the record gets a short interrupt
>> (pause), which is annoying. An image of the waveform showing the
>> short pause in the can be seen here:
>>
>> https://paste.opensuse.org/85986435
>>
>> How could I fix this, to get an uninterrupted recording?
>
> Are these actually different system (unix) users? With different 
> UIDs?
> If so, pulse doesn't really work in a multi-user environment by 
> default.
> How have you configured pulse to use multiple users? That may shed 
> some
> light on what's causing your cut-outs.
>
> --Sean

Thank you.

These are two different users with different UIDs.

They work alternately in the system. User2 records the stream in his 
session
in VT8 X11 terminal. After starting to record user1 switches to his VT7
X11 session. Occasionally user2 switches bacj to his session. During 
the
record they switch sessions several times.

I haven't configured pulseaudio, just use the default openSUSE setup.
Earlier I tried system-wide pulseaudio to be able to listen to the 
stream
in both sessions. It worked, but pacmd doesn't work in system wide 
mode,
therefore I removed it (the pulseaudio system wide package).

Thanks,

suseuser04


More information about the pulseaudio-discuss mailing list