<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828"></HEAD>
<BODY>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial>Hello!</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>I'm new to gstreamer 
and this mailing list, so please don't blame me if&nbsp;I'm breaking any 
rules.</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>I want to have a 
functionality in my application that would enable user to record and playback 
voice messages. I use speex&nbsp;plugin for that purpose. I have 2 
problems:</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>1. For the purpose 
of recording I'm using the&nbsp;pipeline suggested in speexenc example (speexenc 
- oggmux) and recording is done on 2 channels by default. Due to the fact that 
device I'm developing for has a simple mono microphone, the playback is done in 
only one channel, which is unpleasant. What do I need to change to record in 
mono mode? There's a description of src pad for speexenc:</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial><EM>&nbsp;&nbsp;&nbsp; 
name<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial><EM>&nbsp;&nbsp;&nbsp; 
direction<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial><EM>&nbsp;&nbsp;&nbsp; 
presence<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;always</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial><EM>&nbsp;&nbsp;&nbsp; 
details<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;audio/x-speex, rate=(int)[ 6000, 48000 
], channels=(int)[ 1, 2 ]</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><EM><FONT size=2 
face=Arial></FONT></EM></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>and&nbsp;it has 
channels property. Do I need to change that? How do I do that? I'm not too good 
with the concepts of pads yet.</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>2. When I record 
(even with gst-launch), the duration of the recording file that is&nbsp;created 
is somewhat like 1 second shorter than the actual time I keep recording on. I 
see such behaviour on my Ubuntu desktop and on&nbsp;openembedded-based 
system.&nbsp;Is that a known problem? Is there a fix for 
that?</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 
face=Arial>Ivan.</FONT></SPAN></DIV></BODY></HTML>