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

Zaheer Merali zaheermerali at gmail.com
Thu Jan 18 15:49:26 CET 2007


gst-launch osssrc ! audioconvert ! audiorate ! vorbisenc ! oggmux !
filesink location=osssrc.ogg should solve the problem for you.

Zaheer

On 1/17/07, linguang_wang at astrocom.cn <linguang_wang at astrocom.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-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>


More information about the gstreamer-devel mailing list