[pulseaudio-discuss] Saving an audio stream
Jan Schmidt
thaytan at noraisin.net
Sun Feb 10 14:32:32 PST 2008
Jan-Benedict Glaw wrote:
> On Sun, 2008-02-10 18:53:05 +0100, Jan-Benedict Glaw <jbglaw at lug-owl.de> wrote:
>
>> On Sun, 2008-02-10 19:54:25 +0100, Esben Stien <b0ef at esben-stien.name> wrote:
>>
>>> Daniel Kasak <dkasak at nusconsulting.com.au> writes:
>>>
>>>> setting up pulseaudio: to copy audio streams
>>>>
>>> Just set up pulseaudio to use jack[0] and connect a recorder.
>>>
>> Didn't check, but isn't there a monitor source for every sink?
>>
>
> pavucontrol works as expected with the monitor source, so does pacat:
>
> pacat -r -d foo.monitor > recording.pcm
>
> If you don't know your sink/source name, use the "list-sources"
> command or inspect verbose output of the daemon while starting up.
>
> You need to convert it to WAV (or anything else) afterwards, which
> should be fairly simple using `sox':
>
You can save to wav using a GStreamer pipeline:
gst-launch pulsesrc device=foo.monitor ! queue ! audioconvert ! wavenc !
filesink location=out.wav
or to vorbis:
gst-launch pulsesrc device=foo.monitor ! queue ! audioconvert !
vorbisenc ! oggmux ! filesink location=out.ogg
Jan.
More information about the pulseaudio-discuss
mailing list