<div>&nbsp;Hi all,<br><br>I just find even the testaudiosrc is not work either. I said i just heard a short single tone for this testsrc before,but i use the fakesink dump=true, I realize it's a continues sound. Even no matter what kind of media file i played,mp3,wav, it gives the same sound, a noise like tone.<br><br>so is there something wrong in my OSS driver or the osssink ?<br><br>Thanks,<br>Joyious<br></div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div ></div><br>在2007-09-21,"Ali Sabil" &lt;ali.sabil@tandberg.com&gt; 写道:<br> <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><pre>Hi,

maybe you can first try replacing the osssink by a fakesink and setting
it's property dump=true :
gst-launch-0.10 -v filesrc location=~/Media/test.mp3 ! mad !
audioconvert ! audioresample ! fakesink dump=true

then try the GST_DEBUG :
GST_DEBUG="baseaudiosink:4, audiosink:4" gst-launch-0.10 filesrc
location=~/Media/test.mp3 ! mad ! audioconvert ! audioresample ! osssink

Cheers,

--
Ali

On Thu, 2007-09-20 at 09:50 +0800, Joyious He wrote:
&gt;  Hi Jianjun,
&gt; 
&gt; Here is the correct output,the previous one is copied from terminal,
&gt; and there is someything shows wrong:
&gt; 
&gt; /pipeline0/flump3dec0.src: caps = audio/x-raw-int,
&gt; endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt; depth=(int)16, rate=(int)44100, channels=(int)2
&gt; /pipeline0/audioconvert0.src: caps = audio/x-raw-int,
&gt; endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt; depth=(int)16, rate=(int)44100, channels=(int)2
&gt; /pipeline0/audioconvert0.sink: caps = audio/x-raw-int,
&gt; endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt; depth=(int)16, rate=(int)44100, channels=(int)2
&gt; /pipeline0/audioresample0.src: caps = audio/x-raw-int, width=(int)16,
&gt; depth=(int)16, signed=(boolean)true, endianness=(int)1234,
&gt; channels=(int)2, rate=(int)48000
&gt; /pipeline0/audioresample0.sink: caps = audio/x-raw-int,
&gt; endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt; depth=(int)16, rate=(int)44100, channels=(int)2
&gt; /pipeline0/osssink0.sink: caps = audio/x-raw-int, width=(int)16,
&gt; depth=(int)16, signed=(boolean)true, endianness=(int)1234,
&gt; channels=(int)2, rate=(int)48000
&gt; New clock: GstAudioSinkClock
&gt; 
&gt;  
&gt;  so here the audio resample src seems to be accord to my osssink, but
&gt; still the same, no sound came out.what should i do next ?
&gt; 
&gt;  
&gt; 
&gt; 
&gt; 在2007-09-19,"jianjun.yang.cn" &lt;jianjun.yang.cn@gmail.com&gt; 写道:
&gt;         Hi Joyious,
&gt;          
&gt;         I think the problem lies in that audioresample fails to
&gt;         convert from 44100 hz to 48000 hz. Your oss driver does not
&gt;         support 44100, but the rate of 1.mp3 is 44100. So the
&gt;         audioresample should resample.
&gt;         But according to your output, rate of audioresample's source
&gt;         pad is different with the one of osssink's sink pad. The
&gt;         former is 0, while the latter is 48000. 
&gt;         I test the pipleline on my PC using osssink. It can work well.
&gt;          
&gt;         my command line:
&gt;         gst-launch-0.10 -v filesrc
&gt;         location= /home/jianjun/206851.mp3 ! mad ! audioconvert !
&gt;         audioresample ! osssink
&gt;          
&gt;         And its output:
&gt;         
&gt;         Setting pipeline to PAUSED ...
&gt;         Pipeline is PREROLLING ...
&gt;         /pipeline0/mad0.src: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)32,
&gt;         depth=(int)32, rate=(int)44100, channels=(int)2
&gt;         /pipeline0/audioconvert0.src: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)44100
&gt;         /pipeline0/audioconvert0.sink: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)32,
&gt;         depth=(int)32, rate=(int)44100, channels=(int)2
&gt;         /pipeline0/audioresample0.src: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)44100
&gt;         /pipeline0/audioresample0.sink: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)44100
&gt;         /pipeline0/osssink0.sink: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)44100
&gt;         Pipeline is PREROLLED ...
&gt;         Setting pipeline to PLAYING ...
&gt;         New clock: GstAudioSinkClock
&gt;          
&gt;          
&gt;         Regards,
&gt;         Jianjun
&gt;          
&gt;          
&gt;         2007-09-19 
&gt;         
&gt;         ______________________________________________________________
&gt;         jianjun.yang.cn 
&gt;         
&gt;         ______________________________________________________________
&gt;         发件人: 何慧敏 
&gt;         发送时间: 2007-09-19  15:52:35 
&gt;         收件人: gstreamer-devel 
&gt;         抄送: 
&gt;         主题: [gst-devel] Problems when using osssink in ARM 
&gt;         
&gt;         Hi all,
&gt;         
&gt;         Now I have ported the gstreamer to ARM 11, and there is a OSS
&gt;         driver for this ARM board. So I am trying to make this sound
&gt;         workI have installed the plugin for ossaudio.But when i trying
&gt;         to play some media file, no sound came out, and the screen
&gt;         just show the PLAYING message ..
&gt;         
&gt;         some addtional messages:
&gt;         the osssink does play the audiotestsrc,and sounds a single
&gt;         tone;
&gt;         the audioconvert works fine when "gst-launch -v filesrc
&gt;         location="/usr/local/bin/1.mp3" ! flump3dec ! audioconvert !
&gt;         wavenc ! filesink location="/usr/local/bin/1.wav" ",I can hear
&gt;         the wav file on my PC,so the decodec is fine;
&gt;         even no sound comes out when playing, but there are some
&gt;         noises when pipeline is just prerolling just before PLAYING.
&gt;         
&gt;         
&gt;         Here are the command and output:
&gt;         ***********************************************************************************************************
&gt;         mx31# gst-launch -v filesrc location="/usr/local/bin/1.mp3" !
&gt;         flump3dec ! audioconvert ! audioresample ! osssink
&gt;         Setting pipeline to PAUSED ...
&gt;         
&gt;         MXC Enable Codec(write)
&gt;         Feb 6 12:04:07 freescale user.warn kernel: 
&gt;         Feb 6 12:04:07 freescale user.warn kernel: MXC Enable
&gt;         Codec(write)
&gt;         Pipeline is PREROLLING ...
&gt;         /pipeline0/flump3dec0.src: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt;         depth=(int)16, rate=(int)44100, channels=(int)2
&gt;         /pipeline0/audioconvert0.src: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt;         depth=(int)16, rate=(int)44100, channels=(i2
&gt;         /pipeline0/audioconvert0.sink: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt;         depth=(int)16, rate=(int)44100, channels=(2
&gt;         /pipeline0/audioresample0.src: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)0
&gt;         /pipeline0/audioresample0.sink: caps = audio/x-raw-int,
&gt;         endianness=(int)1234, signed=(boolean)true, width=(int)16,
&gt;         depth=(int)16, rate=(int)44100, channels=2
&gt;         /pipeline0/osssink0.sink: caps = audio/x-raw-int,
&gt;         width=(int)16, depth=(int)16, signed=(boolean)true,
&gt;         endianness=(int)1234, channels=(int)2, rate=(int)48000
&gt;         Pipeline is PREROLLED ...
&gt;         Setting pipeline to PLAYING ...
&gt;         New clock: GstAudioSinkClock
&gt;         mxc_audio_output_block: count = 1024 
&gt;         Feb 6 12:04:37 freescale user.warn kernel:
&gt;         mxc_audio_output_block: count = 1024 
&gt;         
&gt;         *************************************************************************************************************
&gt;         
&gt;         So I'm studying the code of osssink although I am a totally
&gt;         newcomer to this gstreamer and Linux things.
&gt;         
&gt;         Many Thanks,
&gt;         
&gt;         Joyious
&gt;         
&gt;          
&gt;          
&gt;          
&gt;         
&gt;         
&gt;         
&gt;         ______________________________________________________________
&gt;         杀70万种木马病毒,瑞星2008版免费 
&gt; 
&gt; 
&gt; 
&gt; ______________________________________________________________________
&gt; 杀70万种木马病毒,瑞星2008版免费
&gt; -------------------------------------------------------------------------
&gt; This SF.net email is sponsored by: Microsoft
&gt; Defy all challenges. Microsoft(R) Visual Studio 2005.
&gt; http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
&gt; _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</pre></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>