[gst-devel] How to use vorbisenc and vorbisdec to record? (ensonic)

linguang_wang at astrocom.cn linguang_wang at astrocom.cn
Wed Jan 17 02:30:29 CET 2007


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!


More information about the gstreamer-devel mailing list