audioresample generate silence data to alsasink

Charlie X. Liu charlie at sensoray.com
Mon Jul 2 10:01:40 PDT 2012


Why don't you use arecord|aplay directly? Like:   arecord -f S16_LE -r 8000
-D hw:1,0 | aplay

 

If using GStreamer, you need audioconvert.

 

 

From: gstreamer-devel-bounces+charlie=sensoray.com at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+charlie=sensoray.com at lists.freedesktop.org]
On Behalf Of Keyul Panchal
Sent: Monday, July 02, 2012 5:27 AM
To: Discussion of the development of and with GStreamer
Subject: Re: audioresample generate silence data to alsasink

 

Hi,

 I am new to gstreamer 

 Testing is done on the target board 

 Req. Audio from alsasrc to be resampled and passed on to alsasink.
 Audio source : mono
 Input audio rate:  8KHz
 Output audio rate: 44.1KHz
 Observation : There is no audio heard in speakers

 Pipeline used
 1. gst-launch-0.10 alsasrc device=hw:1,1,0 ! audioconvert ! audioresample !
audio/x-raw-int, rate=44100 ! alsasink device=hw:0,0,0
 and 
 2. gst-launch-0.10 alsasrc device=hw:1,1,0 ! audioconvert !
audio/x-raw-int, channels=1 ! audioresample ! audio/x-raw-int, rate=44100 !
alsasink device=hw:0,0,0

 Test Performed
 1. Play test tone : Test tone is heard
 gst-launch-0.10 audiotestsrc ! alsasink device=hw:0,0,0

 2. Record in a file and Play back :: Audio is getting recorded and audio
heard when played back
 a. Record audio 
  gst-launch-0.10 alsasrc device=hw:1,1,0 ! audioconvert ! audioresample !
audio/x-raw-int, rate=44100 ! wavenc ! filesink location="test.wav"
 b. Playback audio 
  gst-launch-0.10 filesrc location="test.wav" ! audioconvert !
audio/x-raw-int, channels=1 ! audioresample ! audio/x-raw-int, rate=44100 !
wavenc ! alsasink device=hw:0,0,0
 Note! Playback audio is heard only when the No. of channels is set to 1


 Let me know 
 1. If some more inputs are required.
 2. How can i debug from here.
 3. Is there any role of sync, async or interleave?


-- 

 

Regards,

Keyul A. Panchal

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120702/1ca05437/attachment-0001.html>


More information about the gstreamer-devel mailing list