#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"

Change History (2)

comment:1 by betlog, 19 months ago

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

slaves=$(pactl list sinks short|awk '{print $2}'|head -n2|tr '\n' ','|sed 's|,$
')

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

built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avformat configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100

combine-sink: Input/output error

comment:2 by betlog, 19 months ago

Resolution: invalid
Status: newclosed

Disregard: I'm an idiot.

Note: See TracTickets for help on using tickets.