Page 1 of 1

arecord audio stream RPi internally

Posted: Sat Oct 19, 2013 6:18 pm
by WiFi
Hi experts,

I am deperately searching a solution for the challenge as following:

I am "aplay"ing two audio.wav files in two seprate processes/sessions by SSH remote login.
I can hear both audio streams generated in my earphones connected to the board - working in very excellent quality - totally happy!

Now - in addition I want to "arecord" the mixed streams into a third file "mixed_stream.wav" from a third remote SSH login.

aplay - l tells me:

Code: Select all

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 6/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
pi@PMP $
arecord -l tells me:

Code: Select all

 arecord -l
**** List of CAPTURE Hardware Devices ****
pi@PMP $
How to master this ?

The command in the third session should be eventually (assumed) somewhat of "arecord -vv -D xxxxxx -f cdr -t wav mixed_stream.wav" ...!

But what should be the xxxxxx to be substituted with ? I strongly assume a PCM output device name ...!
Or is this task unsolvable by simple means?

Please advise, any help is appreciated!

Regards

WiFi

Re: arecord audio stream RPi internally

Posted: Wed Oct 23, 2013 10:35 am
by vadim
you can't use arecord as there is no input device in your system.
a possible solution is to run ffmpeg, do mixing with it and direct the mix to hardware output and a file. all in one command. that is if you want to mix two files from start to finish.