Unable to capture audio from a tv tuner
Charlie X. Liu
charlie at sensoray.com
Fri Mar 1 11:40:41 PST 2013
You need to use "arecord -l" to find out and confirm that the "hw:2,0" is
your "Avermedia Volar Go M"
(http://www.avermedia.com/avertv/Product/ProductDetail.aspx?Id=529&tab=APDri
ver) audio device link.
Then, simply use "arecord -D hw:2,0 | aplay" or "gst-launch-0.10 alsasrc
device=hw:1,0 ! audio/x-raw-int,rate=\
32000,channels=2,depth=16 ! audioconvert ! autoaudiosink" to confirm that
you can pre-listening from your device and the hardware works.
Next, apply your application ...
Good luck and BR,
Charlie X. Liu @ Sensoray Company Inc. (http://www.sensoray.com/)
-----Original Message-----
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 edhoari
Sent: Friday, March 01, 2013 9:43 AM
To: gstreamer-devel at lists.freedesktop.org
Subject: Unable to capture audio from a tv tuner
Hi all,
I'm fairly new with Gstreamer and trying to build a application to digitize
analog video. I'm using Avermedia Volar Go M as capture device for composite
input.
My problem is that I cannot get any audio from it. I can capture video
without problem with the following command
gst-launch-0.10 v4l2src device=/dev/video1 !
'video/x-raw-yuv,width=640,height=480' ! ffmpegcolorspace ! xvimagesink
And here is the command to capture audio
gst-launch -e alsasrc device=hw:2,0 ! audioconvert ! lamemp3enc target=1
bitrate=128 cbr=true ! filesink location=audio.mp3
But I get nothing from audio input. I can confirm that the card is working
just fine because the following command can capture video and audio without
problem.
mplayer -tv
driver=v4l2:input=1:device=/dev/video1:alsa=1:adevice=hw.1:immediatemode=0
tv:// -ao sdl
This is audio capture card list in my system:
**** List of CAPTURE Hardware Devices **** card 0: Intel [HDA Intel], device
0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Cx231xxAudio [Cx231xx Audio], device 0: Cx231xx Audio [Conexant
cx231xx Capture]
Subdevices: 1/1
Subdevice #0: subdevice #0
Any help would be appreciated.
Regards
--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/Unable-to-capture-audio-from-a-t
v-tuner-tp4658837.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list