[pulseaudio-discuss] pulseaudio-discuss Digest, Vol 121, Issue 1

andreas.unterhuber at me.com andreas.unterhuber at me.com
Wed Jun 9 14:48:55 UTC 2021


Tanks for your help. 
My I ask you for step by step commands in command line for ubuntu to achieve your solution in "change 1"?

You would be a big help for me!
Best, Andreas



> Am 11.05.2021 um 14:00 schrieb pulseaudio-discuss-request at lists.freedesktop.org:
> 
> Send pulseaudio-discuss mailing list submissions to
> 	pulseaudio-discuss at lists.freedesktop.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> or, via email, send a message with subject or body 'help' to
> 	pulseaudio-discuss-request at lists.freedesktop.org
> 
> You can reach the person managing the list at
> 	pulseaudio-discuss-owner at lists.freedesktop.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pulseaudio-discuss digest..."
> 
> 
> Today's Topics:
> 
>   1. Question about setup sink/source (andreas.unterhuber at me.com)
>   2. Re: Question about setup sink/source (guest271314)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 10 May 2021 15:20:22 +0200
> From: andreas.unterhuber at me.com
> To: pulseaudio-discuss at lists.freedesktop.org
> Subject: [pulseaudio-discuss] Question about setup sink/source
> Message-ID: <25E87E47-3B5F-48F3-9A33-8797DECA7497 at me.com>
> Content-Type: text/plain;	charset=us-ascii
> 
> 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
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 10 May 2021 07:33:24 -0700
> From: guest271314 <guest271314 at gmail.com>
> To: General PulseAudio Discussion
> 	<pulseaudio-discuss at lists.freedesktop.org>
> Subject: Re: [pulseaudio-discuss] Question about setup sink/source
> Message-ID:
> 	<CA+syWAMAPZjNWz1FHJ5D5ZW8cwKJOT8R_i-J_VYwE22PFYqJnw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> 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-0001.htm>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> 
> 
> ------------------------------
> 
> End of pulseaudio-discuss Digest, Vol 121, Issue 1
> **************************************************



More information about the pulseaudio-discuss mailing list