Opened 19 months ago
Closed 19 months ago
#10349 closed defect (invalid)
ffmpeg fails to accept pactl's module-combine-sink as input
Reported by: | betlog | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | pulseaudio |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
ffmpeg fails to accept pactl's module-combine-sink as pulse input, with error:
combine-sink: Input/output error
How to reproduce:
/tmp/test.sh
#!/bin/bash -v pulseaudio --start pactl unload-module module-combine-sink pactl list sinks short slaves=$(pactl list sinks short|awk '{print $2}'|head -n2|tr '\n' ','|sed 's|,$||') echo "$slaves" pactl load-module module-combine-sink \ sink_name="combine-sink" \ sink_properties=device.description="combine-sink" \ slaves=$slaves pactl list sinks short|grep --color 'combine-sink\|$' ffmpeg -f pulse -i combine-sink -map 0:a "${0%.*}.mp3"
Note:
See TracTickets
for help on using tickets.
sample output:
user@betlogbeast:~$ /home/user/documents/scripts/video/_recordDesktop-pactl-module-combine-sink-TEST.sh
#!/bin/bash -v
pulseaudio --start
pactl unload-module module-combine-sink
pactl list sinks short
0 alsa_output.pci-0000_01_00.1.hdmi-stereo module-alsa-card.c s32le 2ch 48000Hz IDLE
1 alsa_output.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s32le 2ch 48000Hz RUNNING
2 echo-cancel-sink module-echo-cancel.c float32le 2ch 48000Hz IDLE
3 isolated-game-sink module-virtual-sink.c float32le 2ch 48000Hz IDLE
4 isolated-discord-sink module-virtual-sink.c float32le 2ch 48000Hz IDLE
echo "$slaves"
alsa_output.pci-0000_01_00.1.hdmi-stereo,alsa_output.pci-0000_00_1f.3.analog-stereo
pactl load-module module-combine-sink \
sink_name="combine-sink" \
sink_properties=device.description="combine-sink" \
slaves=$slaves
28
pactl list sinks short|grep --color 'combine-sink\|$'
0 alsa_output.pci-0000_01_00.1.hdmi-stereo module-alsa-card.c s32le 2ch 48000Hz RUNNING
1 alsa_output.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s32le 2ch 48000Hz RUNNING
2 echo-cancel-sink module-echo-cancel.c float32le 2ch 48000Hz IDLE
3 isolated-game-sink module-virtual-sink.c float32le 2ch 48000Hz IDLE
4 isolated-discord-sink module-virtual-sink.c float32le 2ch 48000Hz IDLE
10 combine-sink module-combine-sink.c s32le 2ch 48000Hz IDLE
ffmpeg -f pulse -i combine-sink -map 0:a "${0%.*}.mp3"
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
combine-sink: Input/output error