Open dig412 opened 6 years ago
The following configuration is working for me. (this is based on http://www.alsa-project.org/main/index.php/Asoundrc#dsnoop)
.asoundrc
pcm.mixin {
type dsnoop
ipc_key 5978293 # must be unique for all dmix plugins!!!!
ipc_key_add_uid yes
slave {
pcm "hw:1,0"
channels 2
period_size 1024
buffer_size 4096
rate 44100
periods 0
period_time 0
}
bindings {
1 1
1 0
}
}
picam start command
/home/pi/picam/picam --samplerate 44100 --alsadev pcm.mixin
arecord command
arecord -d 30 -f cd -t wav -D pcm.mixin test.wav
Hi, I hope it's not late to jump into this thread. And I hope my question is appropriate here. I'm recording audio from the microphone of an Linux orangepizeroplus15 4.19.20-sunxi64 #5.75 SMP Fri Feb 8 10:29:25 CET 2019 aarch64 GNU/Linux and I cannot simultaneously stream audio on demand. My need is related to a monitoring solution. Creating a dsnoop interface could be the solution, but do not how. Even because I've found /usr/share/alsa/alsa.conf but not /etc/asound.conf. Thank you!
Hi - thanks very much for picam, it's a great piece of software!
I'm trying to use a
dsnoop
device in ALSA so that another application can access the microphone at the same time as picam.Here's my
/etc/asound.conf
:With this config I can run two copies of
arecord
at the same time without issue:However, I can't get picam to use the same device successfully:
Here's the relevant bits of a
--verbose
log:Can you suggest anything I could do to fix this?