pulse


PulseAudio input device.

To enable this output device you need to configure FFmpeg with --enable-libpulse.

The filename to provide to the input device is a source device or the string "default"

To list the PulseAudio source devices and their properties you can invoke the command pactl list sources.

More information about PulseAudio can be found on .

'server'

Connect to a specific PulseAudio server, specified by an IP address. Default server is used when not provided.

'name'

Specify the application name PulseAudio will use when showing active clients, by default it is the LIBAVFORMAT_IDENT string.

'stream_name'

Specify the stream name PulseAudio will use when showing active streams, by default it is "record".

'sample_rate'

Specify the samplerate in Hz, by default 48kHz is used.

'channels'

Specify the channels in use, by default 2 (stereo) is set.

'frame_size'

Specify the number of bytes per frame, by default it is set to 1024.

'fragment_size'

Specify the minimal buffering fragment in PulseAudio, it will affect the audio latency. By default it is unset.

'wallclock'

Set the initial PTS using the current time. Default is 1.

Record a stream from default device:

ffmpeg -f pulse -i default /tmp/pulse.wav