princec
|
 |
«
Posted
2010-02-08 17:57:16 » |
|
I just got an Ogg Theora / Vorbis encoded video playing back in pure Java using bugger all CPU  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 
|
|
|
|
Riven
|
 |
«
Reply #1 - Posted
2010-02-08 18:06:36 » |
|
Very nice!
Maybe you can post some code, so we can work on making it usable 'for everybody', with a nice API?
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
noblemaster
|
 |
«
Reply #2 - Posted
2010-02-08 19:03:18 » |
|
Congratulations! I wouldn't mind reading more about it 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
xinaesthetic
|
 |
«
Reply #3 - Posted
2010-02-08 20:44:26 » |
|
Sounds promising.
|
|
|
|
princec
|
 |
«
Reply #4 - Posted
2010-02-08 20:49:59 » |
|
More news when I get it all doing what I want it to  It will likely end up checked into SPGL on Sourceforge in a horrible state and get fixed sometime in the next 5 years  Cas 
|
|
|
|
i30817
|
 |
«
Reply #5 - Posted
2010-02-09 00:58:06 » |
|
How much cpu and in what computer - besides, is it really pure java i.e. software?
|
|
|
|
princec
|
 |
«
Reply #6 - Posted
2010-02-09 09:41:34 » |
|
Yes, pure Java, and next-to-no CPU here on my dual 3GHz rig Behold!I feel that this is one of the most significant Java developments in years. Cas 
|
|
|
|
Eli Delventhal
|
 |
«
Reply #7 - Posted
2010-02-09 15:51:15 » |
|
Yes, pure Java, and next-to-no CPU here on my dual 3GHz rig Behold!I feel that this is one of the most significant Java developments in years. Cas  That was a weird movie but it sucked me in. Is it part of a series? Impressive playback, better than Flash.
|
|
|
|
zoto
|
 |
«
Reply #8 - Posted
2010-02-09 16:12:32 » |
|
|
|
|
|
Karmington
|
 |
«
Reply #9 - Posted
2010-02-09 16:52:05 » |
|
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.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
noblemaster
|
 |
«
Reply #10 - Posted
2010-02-09 20:15:22 » |
|
WTF Riven?  Better, yet, where do I sign up?
|
|
|
|
Riven
|
 |
«
Reply #11 - Posted
2010-02-09 20:18:54 » |
|
<offtopic> WTF Riven?  Better, yet, where do I sign up? Click it? Better yet, spend a nice 30 seconds on the link in [home] </offtopic>
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Riven
|
 |
«
Reply #12 - Posted
2010-02-09 20:20:48 » |
|
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.
Isn't that a front-end / UI problem that we control ourselves anyway, or are the movie controls hardcoded? (that would be utter braindead)
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
irreversible_kev
|
 |
«
Reply #13 - Posted
2010-02-09 20:25:23 » |
|
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.
|
|
|
|
|
brackeen
|
 |
«
Reply #15 - Posted
2010-02-10 00:58:06 » |
|
Yes, pure Java, and next-to-no CPU here on my dual 3GHz rig Behold!I feel that this is one of the most significant Java developments in years. Cas  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?
|
|
|
|
indexunknown
|
 |
«
Reply #16 - Posted
2010-02-10 06:12:27 » |
|
ran well on pc from 2003 - single core amd athlon 2800+
|
|
|
|
princec
|
 |
«
Reply #17 - Posted
2010-02-10 09:50:57 » |
|
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 
|
|
|
|
nsigma
|
 |
«
Reply #18 - Posted
2010-02-10 13:03:17 » |
|
Thought it about time I stopped lurking around here and actually posted something for a change!  Came across this page recently while doing some research on Cortado for a forthcoming project - http://www.fotosdelpais.com/octavi/pogg/doku.phpThis 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
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
princec
|
 |
«
Reply #19 - Posted
2010-02-10 14:00:41 » |
|
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 
|
|
|
|
erikd
|
 |
«
Reply #20 - Posted
2010-02-10 15:19:24 » |
|
Yes, pure Java, and next-to-no CPU here on my dual 3GHz rig Behold!I feel that this is one of the most significant Java developments in years. Cas  Hmm, that applet didn't work here (well, it didn't play video). Got 'unknown type: audio/ogg' on the bottom of the applet.
|
|
|
|
princec
|
 |
«
Reply #21 - Posted
2010-02-10 16:13:38 » |
|
Rather odd. Worked everywhere I've tried it so far. Still, the applet's a bit moot, as no-one has Java 6 u10 who counts. Cas 
|
|
|
|
nsigma
|
 |
«
Reply #22 - Posted
2010-02-10 17:02:39 » |
|
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  If you've got the Git source then it's probably off the Xiph site. Just know that it started being developed on the Fluendo site and then went via WikiMedia, and the old versions are still up and come first when searching, so I know it's not always easy to find the up-to-date code. It's just names like Git that make open-source seem wankery ... that's bad enough, try telling a bunch of artists the merits of getting familiar with The Gimp while keeping a straight face.  I agree, lack of sound is no good for me either, but for the project I'm using it for GPL licensing isn't an issue. They had to write very little additional code (3 classes) to get around the GPL parts of Cortado, but I guess it's the syncing of audio and video that's going to be "fun". Neil
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
princec
|
 |
«
Reply #23 - Posted
2010-02-10 17:12:15 » |
|
 I've lost a considerable amount of hair over the last 3 weeks trying to make FFPMEG compile, and work with JMF via various routes like FOBS. Nothing works, basically. I despair of open source sometimes. If this thing works I think there's quite a strong case to bundle it in LWJGL as a utility jar. Cas 
|
|
|
|
brackeen
|
 |
«
Reply #24 - Posted
2010-02-10 17:43:42 » |
|
Pogg looks promising. I just emailed the developer asking if he'd like help getting audio to work. An all LGPL-solution would be great.
|
|
|
|
DzzD
|
 |
«
Reply #25 - Posted
2010-02-10 18:32:39 » |
|
great ! it seems that I am not alone to only belive that Java 1.1 compilation is good to avoid many problems from the build.xml : target="1.1" source="1.3"
|
|
|
|
DzzD
|
 |
«
Reply #26 - Posted
2010-02-11 00:40:04 » |
|
just awesome, cant believe that you know what ? I tested it on "my compatibility test computer" wich is  : AMD 1.6 GH XP PRO Internet explorer 6 Microsoft JVM 1.1 and ? and ? you know what  It RUUUN smoothly. the video is not suprising but where I am really really surprised is that the audio play verywell too even on the MS JVM, incredible... I love the teams who made this player, this is the Magic of Java 1.1, work just every where ....
|
|
|
|
DzzD
|
 |
«
Reply #27 - Posted
2010-02-11 01:16:02 » |
|
so so cool  downloaded the source code... get the src directory and put it in a blank JCreator project, pressed compil and ... compil finished without error  (only 71 annoying warning...)
|
|
|
|
oestape
Junior Newbie
|
 |
«
Reply #28 - Posted
2010-02-11 08:30:28 » |
|
Hi, I am octavi, the developer of Pogg, the LGPL library based on Cortado that Neil mentioned. I started this project because I needed video for my applets and I think that Cortado is the best option. Having audio with the video is important but, as some of you point out, there is quite a lot of work to do. I would like to have buffering and seeking implemented as well (before the audio part). I have some other projects and not much free time, but anyone with time and motivation is welcome to help! Everything would be easier if some parts of Cortado (basically the com.fluendo.jst package) changed to LGPL (or BSD, as brakeen says). I asked the xiph people some time ago but the answer was not conclusive (see http://lists.xiph.org/pipermail/theora-dev/2009-November/004016.html). I didn't know about the theora-java that bosun mentioned. I have downloaded it but I couldn't find how to use the pure Java part. I someone does, let me kwnow. Octavi
|
|
|
|
princec
|
 |
«
Reply #29 - Posted
2010-02-11 09:57:24 » |
|
Hi Octavi, it's especially good to see you join our forums here. I have an urgent pressing need to get this working in the next 10 days or so - my agenda is to get sound and video out of my ffmpeg2theora encoded OGVs and into ByteBuffers. I'd like to help out in any way I can. Cas 
|
|
|
|
|