Mic on Raspberry Pi - no output from Gstreamer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mic on Raspberry Pi - no output from Gstreamer

davepcollins83
I have a RPI with 2 microphones - one is a cheap USB mic and the other an
Adafruit module I2S mix module. They are both working within Alsa, this is
the output from arecord -l:

**** List of CAPTURE Hardware Devices ****
card 1: sndrpisimplecar [snd_rpi_simple_card], device 0:
simple-card_codec_link snd-soc-dummy-dai-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I am testing using a basic Gstreamer pipeline to record to wav (I need to do
something more complex with the stream later but for now I'm just trying to
record a test file). This is my pipeline:

gst-launch-1.0 alsasrc device=plughw:2,0 ! audioamplify amplification=10 !
audioconvert ! wavenc ! filesink location="test.wav"

This works fine and I can record audio. However, when I change to
device=plughw:1,0 I still get a successful console output but the wav file
is silent. However, if I record a short wav using arecord both devices work
fine.

I'd be grateful for any help in debugging this.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mic on Raspberry Pi - no output from Gstreamer

kotaro
Hello,

i facing same Problem,
i try to use I2S mems Microphone on Raspi-Zero

gst-launch-1.0 alsasrc device=plughw:0,0 !
audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=1 ! volume
volume=10 ! volume volume=3 ! opusenc ! oggmux ! filesink location=test.ogg

does not work.
i use arecord -l and get:
card 0: sndrpisimplecar [snd_rpi_simple_card], device 0:
simple-card_codec_link snd-soc-dummy-dai-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

i get same problem whileusing arecord to a wave file i get an Sound, so i
think that i2s MEMS work probertly.
But when using gst-launch-1.0 alsasrc i get only silent.

Did anyone clear these problem?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mic on Raspberry Pi - no output from Gstreamer

horai
Dear all,

I am enclosing my pipeline related to sending sound or RPi via network hope
it helps:
alsasrc device=hw:1,0 ! audioconvert ! audioresample ! audio/x-raw,rate=8000
! alawenc ! rtppcmapay name=pay1 pt=97
I had only single cheap USB microphone



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel