List Info

Thread: Re: How to use vorbisenc and vorbisdec to record? (ensonic)




Re: How to use vorbisenc and vorbisdec to record? (ensonic)
user name
2007-01-16 19:30:29
hi ,ensonic£¡
  I tried your method( gst-launch -v osssrc num-buffers=1000
! audioconvert ! vorbisenc ! ...
and wait for the gst-launch to end ),and the result is same.
But I found one method to record 
successfully.
  gst-launch osssrc !
audio/x-raw-int,width=16,depth=16,rate=8000,channels=2 !
audioconvert ! vorbisenc ! oggmux ! filesink
location=osssrc.ogg

  And I found a strange thing.If the rate is 8K or 16K ,the
file is fine. If the rate is other 
values ,the file has nothing. The cause of this case is that
gst_vorbis_enc_buffer_check_discontinuous (vorbisenc,
buffer).
I can't understand one thing that the rate of other values
will cause discontinuous!
Re: How to use vorbisenc and vorbisdec to record? (ensonic)
user name
2007-01-18 08:49:26
gst-launch osssrc ! audioconvert ! audiorate ! vorbisenc !
oggmux !
filesink location=osssrc.ogg should solve the problem for
you.

Zaheer

On 1/17/07, linguang_wangastrocom.cn
<linguang_wangastrocom.cn> wrote:
> hi ,ensonic£¡
>   I tried your method( gst-launch -v osssrc
num-buffers=1000 ! audioconvert ! vorbisenc ! ...
> and wait for the gst-launch to end ),and the result is
same. But I found one method to record
> successfully.
>   gst-launch osssrc !
audio/x-raw-int,width=16,depth=16,rate=8000,channels=2 !
audioconvert ! vorbisenc ! oggmux ! filesink
location=osssrc.ogg
>
>   And I found a strange thing.If the rate is 8K or 16K
,the file is fine. If the rate is other
> values ,the file has nothing. The cause of this case is
that gst_vorbis_enc_buffer_check_discontinuous (vorbisenc,
buffer).
> I can't understand one thing that the rate of other
values will cause discontinuous!
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devellists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
>
>
>
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )