<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What chipset on it (this particular capture card)? Sounds, its v4l2 driver driving method is different from the common bttv & saa7134 drivers. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org [mailto:gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org] <b>On Behalf Of </b>Edhoari Setiyoso<br><b>Sent:</b> Saturday, March 02, 2013 2:45 PM<br><b>To:</b> Discussion of the development of and with GStreamer<br><b>Subject:</b> Re: Unable to capture audio from a tv tuner<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><p class=MsoNormal>I think I know why I cannot get audio at all from my capture card using Gstreamer. The card audio input will be activated when I access the video device. But gst-launch initialize the device with audio volume=0 aka mute.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>I tested this behaviour using mplayer by varying the volume variable. The effect is exactly the same as when I start mplayer with volume=0.<br><br>Unfortunately I cannot find any method to set the volume with gstreamer.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Is there anyone can give me a clue on how to set the volume with v4l2src?<o:p></o:p></p></div><p class=MsoNormal>Best Regards<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Sun, Mar 3, 2013 at 1:27 AM, Edhoari Setiyoso <<a href="mailto:edhoari.s@gmail.com" target="_blank">edhoari.s@gmail.com</a>> wrote:<o:p></o:p></p><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Charlie,<o:p></o:p></p></div><p class=MsoNormal>I already confirmed that the audio device is that of tv tuner. The funny thing is the audio device active only when I access the corresponding video device. I can see from the audio mixer the audio level is moving. As soon as I turn off the app accessing the video device, the audio level went down completely.<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Testing with mplayer showed that I must use "immediate=0" option, otherwise I only get video. From the manual it says "A value of 0 means capture and buffer audio and video together".<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Could you give me a hint on this?<o:p></o:p></p></div><p class=MsoNormal>Regards<o:p></o:p></p><div><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Sat, Mar 2, 2013 at 2:40 AM, Charlie X. Liu <<a href="mailto:charlie@sensoray.com" target="_blank">charlie@sensoray.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>You need to use "arecord -l" to find out and confirm that the "hw:2,0" is<br>your "Avermedia Volar Go M"<br>(<a href="http://www.avermedia.com/avertv/Product/ProductDetail.aspx?Id=529&tab=APDri" target="_blank">http://www.avermedia.com/avertv/Product/ProductDetail.aspx?Id=529&tab=APDri</a><br>ver) audio device link.<br><br>Then, simply use "arecord -D hw:2,0 | aplay" or "gst-launch-0.10 alsasrc<br>device=hw:1,0 ! audio/x-raw-int,rate=\<br>32000,channels=2,depth=16 ! audioconvert ! autoaudiosink" to confirm that<br>you can pre-listening from your device and the hardware works.<br><br>Next, apply your application ...<br><br>Good luck and BR,<br><br>Charlie X. Liu @ Sensoray Company Inc. (<a href="http://www.sensoray.com/" target="_blank">http://www.sensoray.com/</a>)<o:p></o:p></p><div><div><p class=MsoNormal><br><br>-----Original Message-----<br>From: gstreamer-devel-bounces+charlie=<a href="mailto:sensoray.com@lists.freedesktop.org" target="_blank">sensoray.com@lists.freedesktop.org</a><br>[mailto:<a href="mailto:gstreamer-devel-bounces%2Bcharlie" target="_blank">gstreamer-devel-bounces+charlie</a>=<a href="mailto:sensoray.com@lists.freedesktop.org" target="_blank">sensoray.com@lists.freedesktop.org</a>]<br>On Behalf Of edhoari<br>Sent: Friday, March 01, 2013 9:43 AM<br>To: <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>Subject: Unable to capture audio from a tv tuner<br><br>Hi all,<br><br>I'm fairly new with Gstreamer and trying to build a application to digitize<br>analog video. I'm using Avermedia Volar Go M as capture device for composite<br>input.<br><br>My problem is that I cannot get any audio from it. I can capture video<br>without problem with the following command<br><br>gst-launch-0.10 v4l2src device=/dev/video1 !<br>'video/x-raw-yuv,width=640,height=480' ! ffmpegcolorspace ! xvimagesink<br><br>And here is the command to capture audio<br><br>gst-launch -e alsasrc device=hw:2,0 ! audioconvert ! lamemp3enc target=1<br>bitrate=128 cbr=true ! filesink location=audio.mp3<br><br>But I get nothing from audio input. I can confirm that the card is working<br>just fine because the following command can capture video and audio without<br>problem.<br><br>mplayer -tv<br>driver=v4l2:input=1:device=/dev/video1:alsa=1:adevice=hw.1:immediatemode=0<br>tv:// -ao sdl<br><br>This is audio capture card list in my system:<br><br>**** List of CAPTURE Hardware Devices **** card 0: Intel [HDA Intel], device<br>0: ALC883 Analog [ALC883 Analog]<br> Subdevices: 1/1<br> Subdevice #0: subdevice #0<br>card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]<br> Subdevices: 1/1<br> Subdevice #0: subdevice #0<br>card 0: Intel [HDA Intel], device 2: ALC883 Analog [ALC883 Analog]<br> Subdevices: 1/1<br> Subdevice #0: subdevice #0<br>card 2: Cx231xxAudio [Cx231xx Audio], device 0: Cx231xx Audio [Conexant<br>cx231xx Capture]<br> Subdevices: 1/1<br> Subdevice #0: subdevice #0<br><br>Any help would be appreciated.<br><br>Regards<br><br><br><br>--<br>View this message in context:<br><a href="http://gstreamer-devel.966125.n4.nabble.com/Unable-to-capture-audio-from-a-t%0Av-tuner-tp4658837.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Unable-to-capture-audio-from-a-t<br>v-tuner-tp4658837.html</a><br>Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal><span class=hoenzb><span style='color:#888888'>-- <o:p></o:p></span></span></p><div><p class=MsoNormal><span style='color:#888888'>Edhoari Setiyoso</span><o:p></o:p></p></div></div></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><p class=MsoNormal>Edhoari Setiyoso<o:p></o:p></p></div></div></div></body></html>