ALSA buffer xrun | Full duplex intercom rpi - Raspberry Pi Forums


hello all,

have problem 1 of project : "intercom full duplex system" raspberry only.

have 4x rpi2 intercom logitech usb headset , 1x rpi2 server muxing audio 4x rpi2.

when want stream et play sound @ same time on rpi2 have "alsa buffer xrun" , when i'm doing this.

code: select all

pi@pi2-rpc-1 ~ $ arecord -d plughw:1 -b 1 -r 44100 -c 1 -f s16_le | avconv -i - -acodec libopus -ab 96k -ac 1 -vn -f rtp rtp://@224.0.1.14:5000

code: select all

pi@pi2-rpc-2 ~ $ arecord -d plughw:1 -b 1 -r 44100 -c 1 -f s16_le | avconv -i - -acodec libopus -ab 96k -ac 1 -vn -f rtp rtp://@224.0.1.14:6000

code: select all

pi@pi2-rpc-3 ~ $ arecord -d plughw:1 -b 1 -r 44100 -c 1 -f s16_le | avconv -i - -threads 4 -acodec libopus -ab 96k -ac 1 -vn -f rtp rtp://@224.0.1.14:7000

code: select all

pi@pi2-sraspicoms-1 ~ $ avconv -i rx1.sdp -i rx2.sdp -i rx3.sdp -filter_complex amix=inputs=3:duration=first:dropout_transition=3 -acodec libopus -ac 2 -ab 96k -f rtp rtp://224.0.1.15:5000

code: select all

pi@pi2-rpc-1 ~ $ avconv -i rxmux.sdp -ac 2 -f alsa plughw:1 alsa buffer xrun.ime=2.60 bitrate=   0.0kbits/s     [alsa @ 0x1659b80] alsa buffer xrun.     last message repeated 5 times alsa buffer xrun.ime=2.94 bitrate=   0.0kbits/s     [alsa @ 0x1659b80] alsa buffer xrun.
tried buffer no success too...

looking on net found nothing about. i'm sure there way fix , recompile libav ok.

have idea ?
lot

i changed buffer max size (i put twice number) in alsa.h in libav directory (before compiling) , compile nothing changed.

#define alsa_buffer_size_max 65536


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support