Cortado works!

I just got an Ogg Theora / Vorbis encoded video playing back in pure Java using bugger all CPU :slight_smile: How pleased am I. This means we can do all the FMV in Revenge of the Titans that we were planning to - yay!

When I figure out more about how to do all this - like the playback to an openGL texture for example - I’ll post my findings.

Cas :slight_smile:

Very nice!

Maybe you can post some code, so we can work on making it usable ā€˜for everybody’, with a nice API?

Congratulations! I wouldn’t mind reading more about it ;D

Sounds promising.

More news when I get it all doing what I want it to :slight_smile: It will likely end up checked into SPGL on Sourceforge in a horrible state and get fixed sometime in the next 5 years ::slight_smile:

Cas :slight_smile:

How much cpu and in what computer - besides, is it really pure java i.e. software?

Yes, pure Java, and next-to-no CPU here on my dual 3GHz rig :wink: Behold!
I feel that this is one of the most significant Java developments in years.

Cas :slight_smile:

That was a weird movie but it sucked me in. Is it part of a series?

Impressive playback, better than Flash.

It a Blender movie.
http://www.blender.org/features-gallery/movies/

I have a 1Mb adsl at home, and I need to have the option to pause right at the start
and SEE the buffering happening, and know that ok, it’s all loaded, I can watch now without the movie stopping at some point. Despite all niggles for Flash, that is one thing it does properly, on any Youtube video, and it should be a standard feature.

WTF Riven?

http://indiespot.net/signature

Better, yet, where do I sign up?

[quote="kingaschi,post:11,topic:34887"] WTF Riven?

http://indiespot.net/signature

Better, yet, where do I sign up?
[/quote]
Click it?

Better yet, spend a nice 30 seconds on the link in [home]

Isn’t that a front-end / UI problem that we control ourselves anyway, or are the movie controls hardcoded? (that would be utter braindead)

I’ve also been looking at how I can play Ogg Theora+Vorbis files in Java.

It seems Cortado is GPL but its com.fluendo.jheora, a Theora decoder, package is LGPL.

com.fluendo.jheora together with the also LGPL com.jcraft.jorbis, a Vorbis decoder and com.jcraft.jogg, an Ogg container parser, allow us to write a pure Java Ogg Theora+Vorbis player… but we have to write the playback framework on top of this so that audio and video are played in sync.

You’ll be dealing with Ogg pages & packets etc… If you want seeking you’ll need to implement a seeking algorithm such as the bisection method, or I guess a more easy to implement look up table.

As everyone else I am very interested to hear and see anything you come up with.

jheora is also used in FMJ’s Theora-Java. Could be a good idea to check out that project as well.

http://fmj-sf.net/theora-java/getting_started.php

Great. Uses less CPU than Flash on my Mac. Didn’t see any audio sync issues.

So, Cortado is GPL. Original Ogg/Theora code (and everything else Xiph) is BSD. What are the chances we convince the Cortado devs to switch to BSD?

ran well on pc from 2003 - single core amd athlon 2800+

AFAIK so far (not had time to delve), Cortado is just the player bit on top of the demuxer/decoders for Ogg/Theora/Vorbis. That bit’s the least important bit - I won’t even be using it I don’t think, as I will be decoding directly to Frame Buffer Objects in OpenGL, and I already bung my audio into OpenAL using a customised streaming thingy.

Cas :slight_smile:

Thought it about time I stopped lurking around here and actually posted something for a change! :slight_smile:

Came across this page recently while doing some research on Cortado for a forthcoming project - http://www.fotosdelpais.com/octavi/pogg/doku.php

This project has ripped out the LGPL compatible parts of Cortado to create an LGPL library for Theora video in Processing and Java. No sound yet(!), but the video example applets are pretty good.

Incidentally, which Cortado code are you using? - there are at least 3 repos I know of!

Best wishes, Neil

I’ve just grabbed something called the ā€œgitā€. Smells like open source wankery to me but apparently it has the latest code in it.

No sound is no good to me so I’ll work with that code and see where I get. I wonder what mods they made to Jorbis (which I’m already using) and if they’re compatible with my current usage.

Cas :slight_smile: