<!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> </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 I'm breaking any
rules.</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2
face=Arial></FONT></SPAN> </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 plugin for that purpose. I have 2
problems:</FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>1. For the purpose
of recording I'm using the 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>
name<BR> src</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2
face=Arial><EM>
direction<BR> source</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2
face=Arial><EM>
presence<BR> always</EM></FONT></SPAN></DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2
face=Arial><EM>
details<BR> 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> </DIV>
<DIV><SPAN class=243001016-14102009><FONT size=2 face=Arial>and 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> </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 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 openembedded-based
system. 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> </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>