[pulseaudio-discuss] Question about setup sink/source
guest271314
guest271314 at gmail.com
Mon May 10 14:33:24 UTC 2021
Needed change 1#
You should be able to capture and record default Monitor device.
Alternatively you can use Web Audio API to create an OsciallatorNode with
frequency set to 0.
Needed change 2#
Chromium provides such a means using flags, e.g.,
chromium-browser --autoplay-policy=no-user-gesture-required
--use-fake-device-for-media-stream --use-fake-ui-for-media-stream
--use-file-for-fake-audio-capture=$HOME/localscripts/output.wav
--user-data-dir=$HOME/test
On Mon, May 10, 2021 at 6:26 AM <andreas.unterhuber at me.com> wrote:
> Dear pulseaudio community,
>
> I've a setup to run a screen grabber (ffmpeg records content of a website,
> loaded in chromium by selenium) within a docker container. Audio is
> recorded from ffmpeg by pulseaudio on a Ubuntu 18 system.
>
> #################
> My setup:
> #################
>
> ... start Xvfb, chrome+selenium ...
> pulseaudio -D --exit-idle-time=-1
> pacmd load-module module-virtual-sink sink_name=v1
> pacmd set-default-sink v1
> pacmd set-default-source v1.monitor
> ... and then ffmpeg -ar 44100 -f pulse -i default [...] out.mp4 ...
>
> Works perfectly. But I want a little more. I'm pretty sure that someone
> can help me!
>
> #################
> Needed change 1#
> #################
>
> I need an audio source that has always audio (audio "silence"). The
> browser does not always have audio-websites to playback. So I had in mind
> to create a source with continuous silence, mixed with browser audio
> (whenever the browser has audio signals to play).
> How does the command/setup looks like? I played around but was unable to
> realize...
>
> #################
> Needed change 2#
> #################
>
> Instead of just continuous silence I want to playback an audio file that
> runs in a loop forever, mixed with the browser audio.
> How does the command/setup looks like?
>
>
> I'm very, very thankful for any help!
> Best, Andreas
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20210510/027cd15a/attachment.htm>
More information about the pulseaudio-discuss
mailing list