<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<HTML dir=ltr><HEAD></HEAD>
<BODY>
<DIV id=idOWAReplyText24078 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>
<DIV dir=ltr>I've realized that there is no java api for encoding into
vorbis. We got decoding one tough(Vorbis SPI).</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Currently we got Java Prgm to capture sound from mic and
"encoder_example.c" that would take byte stream and encode it into ogg
format.So, right now we are in the process of using JNI for calling the C
routines using Java.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>The main aim is to transfer this data over Darwin Streaming
Server(DSS), since DSS accepts only RTP data, we want to create RTP packets. We
already a have Java program that does that, I mean it takes byte stream as
input and converts(adds RTP header) them into RTP packets.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>What I would like to know is there something else to be kept
in RTP header or will this method work ?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Did anyone ever try to do this kind of thing ?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>-Vithal</DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> vorbis-bounces@xiph.org on behalf of
Venkata Sripada<BR><B>Sent:</B> Fri 10/29/2004 11:09 AM<BR><B>To:</B>
vorbis@xiph.org<BR><B>Subject:</B> [Vorbis] java vorbis encoder example or API
needed<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2>I'm currently involved in a project
where in we need to record the audio from a mic encode with
vorbis, then put it in Ogg container, and then make it as RTP packet and
transmit over Darwin Streaming Server.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Till now we were using JMF with available
codec's,</FONT> since JMF handles the RTP part life was pretty much easy using
it. Now we want to use Ogg Vorbis because of its adv's.</DIV>
<DIV> </DIV>
<DIV>So in the process my first step would be to capture audio and compress
it with vorbis. My search for the appropriate API was not successful as I could
only find Decoder in Java but not the encoders.</DIV>
<DIV> </DIV>
<DIV>I've downloaded the libvorbis and libogg but the code examples were in "C"
language. </DIV>
<DIV> </DIV>
<DIV>Are there any resources in Java(API,examples) which would do help me in
achieving this.</DIV>
<DIV> </DIV>
<DIV>-Vithal</DIV></DIV></BODY></HTML>