<div> Hi Jianjun,<br><br>Here is the correct output,the previous one is copied from terminal, and there is someything shows wrong:<br><br>/pipeline0/flump3dec0.src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2<br>/pipeline0/audioconvert0.src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2<br>/pipeline0/audioconvert0.sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2<br>/pipeline0/audioresample0.src: caps = audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, channels=(int)2, rate=(int)48000<br>/pipeline0/audioresample0.sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2<br>/pipeline0/osssink0.sink: caps = audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, channels=(int)2, rate=(int)48000<br>New clock: GstAudioSinkClock<br></div><div> </div><div> so here the audio resample src seems to be accord to my osssink, but still the same, no sound came out.what should i do next ?<br></div><div> </div><div ></div><br>在2007-09-19,"jianjun.yang.cn" <jianjun.yang.cn@gmail.com> 写道:<br> <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div><font color="#000080" face="Verdana" size="2">
<div><font color="#000080" face="Verdana" size="2"><font color="#000000">Hi
Joyious,</font></font></div>
<div> </div>
<div>I think the problem lies in that audioresample fails to convert from 44100
hz to 48000 hz. Your oss driver does not support 44100, but
the rate of 1.mp3 is 44100. So the audioresample
should resample.</div>
<div>But according to your output, rate of audioresample's source pad is
different with the one of osssink's sink pad. The former is 0, while the latter
is 48000. </div>
<div>I test the pipleline on my PC using osssink. It can work well.</div>
<div> </div>
<div>my command line:</div>
<div>gst-launch-0.10 -v filesrc location= /home/jianjun/206851.mp3 ! mad !
audioconvert ! audioresample ! osssink</div>
<div> </div>
<div>And its output:</div>
<div><br>Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING
...<br>/pipeline0/mad0.src: caps = audio/x-raw-int, endianness=(int)1234,
signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100,
channels=(int)2<br>/pipeline0/audioconvert0.src: caps = audio/x-raw-int,
width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234,
channels=(int)2, rate=(int)44100<br>/pipeline0/audioconvert0.sink: caps =
audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32,
depth=(int)32, rate=(int)44100,
channels=(int)2<br>/pipeline0/audioresample0.src: caps = audio/x-raw-int,
width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234,
channels=(int)2, rate=(int)44100<br>/pipeline0/audioresample0.sink: caps =
audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true,
endianness=(int)1234, channels=(int)2,
rate=(int)44100<br>/pipeline0/osssink0.sink: caps = audio/x-raw-int,
width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234,
channels=(int)2, rate=(int)44100<br>Pipeline is PREROLLED ...<br>Setting
pipeline to PLAYING ...<br>New clock: GstAudioSinkClock</div>
<div> </div>
<div><font color="#000080" face="Verdana" size="2"></font> </div>
<div><font color="#000080">Regards,</font></div>
<div><font color="#000080" face="Verdana" size="2">Jianjun</font></div></font></div>
<div><font color="#000080" face="Verdana" size="2"></font> </div>
<div><font color="#000080" face="Verdana" size="2"></font> </div>
<div><font color="#c0c0c0" face="Verdana" size="2">2007-09-19 </font></div><font color="#000080" face="Verdana" size="2">
<hr style="width: 122px; height: 2px;" align="left" size="2">
</font>
<div><font color="#c0c0c0" face="Verdana" size="2"><span>jianjun.yang.cn</span>
</font></div><font color="#000080" face="Verdana" size="2">
<hr>
</font>
<div><font face="Verdana" size="2"><strong>发件人:</strong> 何慧敏 </font></div>
<div><font face="Verdana" size="2"><strong>发送时间:</strong> 2007-09-19 15:52:35
</font></div>
<div><font face="Verdana" size="2"><strong>收件人:</strong> gstreamer-devel
</font></div>
<div><font face="Verdana" size="2"><strong>抄送:</strong> </font></div>
<div><font face="Verdana" size="2"><strong>主题:</strong> [gst-devel] Problems when
using osssink in ARM </font></div>
<div><font face="Verdana" size="2"></font> </div>
<div><font face="Verdana" size="2">
<div>Hi all,<br><br>Now I have ported the gstreamer to ARM 11, and there is a
OSS driver for this ARM board. So I am trying to make this sound workI have
installed the plugin for ossaudio.But when i trying to play some media file, no
sound came out, and the screen just show the PLAYING message ..<br><br>some
addtional messages:<br>the osssink does play the audiotestsrc,and sounds a
single tone;<br>the audioconvert works fine when "gst-launch -v filesrc
location="/usr/local/bin/1.mp3" ! flump3dec ! audioconvert ! wavenc ! filesink
location="/usr/local/bin/1.wav" ",I can hear the wav file on my PC,so the
decodec is fine;<br>even no sound comes out when playing, but there are some
noises when pipeline is just prerolling just before PLAYING.<br><br><br>Here are
the command and
output:<br>***********************************************************************************************************<br>mx31#
gst-launch -v filesrc location="/usr/local/bin/1.mp3" ! flump3dec ! audioconvert
! audioresample ! osssink<br>Setting pipeline to PAUSED ...<br><br>MXC Enable
Codec(write)<br>Feb 6 12:04:07 freescale user.warn kernel: <br>Feb 6 12:04:07
freescale user.warn kernel: MXC Enable Codec(write)<br>Pipeline is PREROLLING
...<br>/pipeline0/flump3dec0.src: caps = audio/x-raw-int, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channels=(int)2<br>/pipeline0/audioconvert0.src: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)44100, channels=(i2<br>/pipeline0/audioconvert0.sink: caps =
audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16,
depth=(int)16, rate=(int)44100, channels=(2<br>/pipeline0/audioresample0.src:
caps = audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true,
endianness=(int)1234, channels=(int)2,
rate=(int)0<br>/pipeline0/audioresample0.sink: caps = audio/x-raw-int,
endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16,
rate=(int)44100, channels=2<br>/pipeline0/osssink0.sink: caps = audio/x-raw-int,
width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234,
channels=(int)2, rate=(int)48000<br>Pipeline is PREROLLED ...<br>Setting
pipeline to PLAYING ...<br>New clock:
GstAudioSinkClock<br>mxc_audio_output_block: count = 1024 <br>Feb 6 12:04:37
freescale user.warn kernel: mxc_audio_output_block: count = 1024
<br><br>*************************************************************************************************************<br><br>So
I'm studying the code of osssink although I am a totally newcomer to this
gstreamer and Linux things.<br><br>Many Thanks,<br><br>Joyious<br></div>
<div> </div>
<div> </div>
<div> </div><br><!-- footer --><br>
<hr>
<font style="font-size: 12px; line-height: 15px;">杀70万种木马病毒,</font><a style="font-size: 12px; color: blue; line-height: 15px; text-decoration: underline;" href="http://pro.163.com/event.ng/Type=click&FlightID=96648&AdID=98138&TargetID=635&Values=31,43,51,60,72,82,91,100,110,312,330,332,499,587,702,733,734&Redirect=http://adcn.doubleclick.net/clk;134682177;20226578;k%3Fhttp://www.rising.com.cn/2008/trial/index.htm">瑞星2008版免费</a>
</font></div>
</blockquote><br><!-- footer --><br>
<hr>
<font style="font-size:12px;line-height:15px;">杀70万种木马病毒,</font><a style="font-size:12px;line-height:15px; color:blue; text-decoration:underline;" href="http://pro.163.com/event.ng/Type=click&FlightID=96648&AdID=98138&TargetID=635&Values=31,43,51,60,72,82,91,100,110,312,330,332,499,587,702,733,734&Redirect=http://ad.cn.doubleclick.net/clk;134682177;20226578;k%3Fhttp://www.rising.com.cn/2008/trial/index.htm">瑞星2008版免费</a>