I am a bit confused to how Ogg/vorbis works. This is my understand. Vorbis is an audio codec that can be used instead of MP3 and it is open source. If this is true, what is Ogg? I think it is some kind of wrapper that allows you to stream Audio and Video. Am I right? Also I want to encode short videos in Xvid and then encode the audio in vorbis. Then I want to stream this over the Internet using a Java applet. I will need to implement the vorbis and Xvid decoders in Java as part of my applet, but where can ogg help me in this little ( or is the word confusing) project? Thanks Charles
On Fri, Apr 08, 2005 at 12:15:53AM +0100, Charles wrote:> > Also I want to encode short videos in Xvid and then encode the audio in > vorbis. Then I want to stream this over the Internet using a Java > applet. I will need to implement the vorbis and Xvid decoders in Java as > part of my applet, but where can ogg help me in this little ( or is the > word confusing) project?Java classes for Ogg Vorbis, and an audio player applet, are at: http://www.jcraft.com/jorbis/ Java classes for playing Ogg video files, using the Vorbis audio codec and the Theora video codec, are at: http://www.flumotion.net/download/ You may find it easier to encode to Theora rather than Xvid, then simply distribute the existing 'cortado' applet from the flumotion site. You won't need to develop any new applet code if you use Theora instead of Xvid: http://www.theora.org/ Conrad.
Charles wrote:> Also I want to encode short videos in Xvid and then encode the audio > in vorbis. Then I want to stream this over the Internet using a Java > applet. I will need to implement the vorbis and Xvid decoders in Java > as part of my applet, but where can ogg help me in this little ( or > is the word confusing) project?There are a few Java decoders for Vorbis. Conrad already mentioned JOrbis, which is a more or less 1:1 rewrite of libvorbis and there is my implementation (mostly written from scratch) with a more OO-ish API available from http://www.j-ogg.de. I started implementing a Theora decoder as well, but to be honest, Java and multimedia doesn't match very well and seeing the lack of interest for my Vorbis decoder was one of the reasons why I decided to not spend more time on the Theora decoder. AFAIK, the best quality video codec with an available Java decoder is On2's VP6 (Theora is based on VP3) and there is a working applet directly on http://www.on2.com. Unfortunately, the sound support in On2's applet is pretty mediocre, but I've already thought about trying to integrate my Vorbis decoder, making it possible to stream VP6 video and Vorbis audio. Available CPU power is however still a problem, as the Java decoders are quite a lot slower than the native implementations. Tor