Hello all, Very new to Theora so apologies if this sounds elementary ;-) I'm trying to integrate a simple theora video player in my engine. All I need is simple load/unload and play/stop functionality. I'd also like to be able to stream from disk or mem. Other than the API reference I haven't found any example code, e.g. the sources for theora_player_example. Are these available anywhere? Before I start re-inventing the wheel, are there available sources out there that do what I described above? thank you in advance, k. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20070426/6d0ca076/attachment.html
On 26/04/07, Kostas Kostiadis <kos@climaxgroup.com> wrote:> Other than the API reference I haven't found any example code, > e.g. the sources for theora_player_example. Are these available anywhere?Hi, the source for player_example is in the libtheora source tarball, in th examples/ directory. The link to the libtheora source is on www.theora.org. cheers, Conrad.
Excellent...I've got things going on my linux box now. Thx for the feedback. For the windows build to work, is there no headers/libs/dlls that I can just drop in? Normaly (e.g. with SDL, zlib, etc.) you get headers, .lib files that you can link against, and the DLLs for runtime. Is there no such thing available for theora? If not, what's the best way to distribute a build to other people (if there are no dlls)? Cheers, Kos> -----Original Message----- > From: conrad.parker@gmail.com > [mailto:conrad.parker@gmail.com] On Behalf Of Conrad Parker > Sent: 27 April 2007 07:35 > To: Kostas Kostiadis > Cc: theora@xiph.org > Subject: Re: [theora] example sources > > On 26/04/07, Kostas Kostiadis <kos@climaxgroup.com> wrote: > > Other than the API reference I haven't found any example code, > > e.g. the sources for theora_player_example. Are these > available anywhere? > > Hi, > > the source for player_example is in the libtheora source tarball, in > th examples/ directory. > > The link to the libtheora source is on www.theora.org. > > cheers, > > Conrad. >
Ignore me...I just build it all localy... ;-) Be nice if these are distributed via the website for win32 at least... Just my two pence ;-) Cheers, Kos> -----Original Message----- > From: theora-bounces@xiph.org > [mailto:theora-bounces@xiph.org] On Behalf Of Kostas Kostiadis > Sent: 30 April 2007 12:11 > To: 'Conrad Parker' > Cc: theora@xiph.org > Subject: RE: [theora] example sources > > Excellent...I've got things going on my linux box now. > Thx for the feedback. > > For the windows build to work, is there no headers/libs/dlls > that I can just > drop in? > Normaly (e.g. with SDL, zlib, etc.) you get headers, .lib > files that you can > link against, and the DLLs for runtime. > > Is there no such thing available for theora? > If not, what's the best way to distribute a build to other > people (if there > are no dlls)? > > Cheers, > Kos > > > > -----Original Message----- > > From: conrad.parker@gmail.com > > [mailto:conrad.parker@gmail.com] On Behalf Of Conrad Parker > > Sent: 27 April 2007 07:35 > > To: Kostas Kostiadis > > Cc: theora@xiph.org > > Subject: Re: [theora] example sources > > > > On 26/04/07, Kostas Kostiadis <kos@climaxgroup.com> wrote: > > > Other than the API reference I haven't found any example code, > > > e.g. the sources for theora_player_example. Are these > > available anywhere? > > > > Hi, > > > > the source for player_example is in the libtheora source tarball, in > > th examples/ directory. > > > > The link to the libtheora source is on www.theora.org. > > > > cheers, > > > > Conrad. > > > _______________________________________________ > theora mailing list > theora@xiph.org > http://lists.xiph.org/mailman/listinfo/theora >
Am I right to assume that there is no example player for win32 yet? I've noticed the example player sources have things like: #if defined(__FreeBSD__) #include <machine/soundcard.h> #define AUDIO_DEVICE "/dev/audio" #elif defined(__NetBSD__) || defined(__OpenBSD__) #include <soundcard.h> #define AUDIO_DEVICE "/dev/audio" #else #include <sys/soundcard.h> #define AUDIO_DEVICE "/dev/dsp" #endif Which won't work on win32. Is there no way to use SDL_mixer to do all the audio device open/close/init stuff in a cross-platform way? Cheers, Kos> -----Original Message----- > From: conrad.parker@gmail.com > [mailto:conrad.parker@gmail.com] On Behalf Of Conrad Parker > Sent: 27 April 2007 07:35 > To: Kostas Kostiadis > Cc: theora@xiph.org > Subject: Re: [theora] example sources > > On 26/04/07, Kostas Kostiadis <kos@climaxgroup.com> wrote: > > Other than the API reference I haven't found any example code, > > e.g. the sources for theora_player_example. Are these > available anywhere? > > Hi, > > the source for player_example is in the libtheora source tarball, in > th examples/ directory. > > The link to the libtheora source is on www.theora.org. > > cheers, > > Conrad. >
On 5/1/07, Kostas Kostiadis <kos@climaxgroup.com> wrote:> Am I right to assume that there is no example player for win32 yet?I am not sure if this is of an help. But my company has been using Theora on windows in C#, we had to create a .Nat / Native Code interface library. We have a sample player for that although its written in c#. All of this is open source and released on our web site. We have called the library AMPE its still in its early stages although it does work fairly well. http://labs.kissintelligentsystems.com/AMPE/ The sample player uses OpenGl for the video output and OpenAl for the audio. Both are fairly seamlessly corss platform. The sample player uses a OpenGl shader to convert between YUV and RGB. It does provide av sync and keyframe aware seeking. That said the sample player is quite straight forward. If you just want an example to look at it would probably be esier than looking at the source to a full blown video player app like VLC. I hope this helps. Charlie
Fantastic stuff...Thx for the feedback Charlie... I'll take a look shortly. Cheers, Kos> -----Original Message----- > From: Charles Mason [mailto:charlie.mas@gmail.com] > Sent: 01 May 2007 16:43 > To: Kostas Kostiadis > Cc: Conrad Parker; theora@xiph.org > Subject: Re: [theora] example sources > > On 5/1/07, Kostas Kostiadis <kos@climaxgroup.com> wrote: > > Am I right to assume that there is no example player for win32 yet? > > I am not sure if this is of an help. But my company has been using > Theora on windows in C#, we had to create a .Nat / Native Code > interface library. We have a sample player for that although its > written in c#. All of this is open source and released on our web > site. We have called the library AMPE its still in its early stages > although it does work fairly well. > > http://labs.kissintelligentsystems.com/AMPE/ > > The sample player uses OpenGl for the video output and OpenAl for the > audio. Both are fairly seamlessly corss platform. The sample player > uses a OpenGl shader to convert between YUV and RGB. It does provide > av sync and keyframe aware seeking. > > That said the sample player is quite straight forward. If you just > want an example to look at it would probably be esier than looking at > the source to a full blown video player app like VLC. > > I hope this helps. > > Charlie >