Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 4
  ignore  |  Print  
  Cortado works!  (Read 13684 times)
0 Members and 1 Guest are viewing this topic.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« 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 Smiley 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 Smiley

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« 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
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #2 - Posted 2010-02-08 19:03:18 »

Congratulations! I wouldn't mind reading more about it  Grin

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline xinaesthetic

Senior Member


Medals: 1



« Reply #3 - Posted 2010-02-08 20:44:26 »

Sounds promising.
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2010-02-08 20:49:59 »

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

Cas Smiley

Offline i30817

Junior Member





« 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?
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2010-02-09 09:41:34 »

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 Smiley

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #7 - Posted 2010-02-09 15:51:15 »

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 Smiley
That was a weird movie but it sucked me in. Is it part of a series?

Impressive playback, better than Flash.

See my work:
OTC Software
Offline zoto

Senior Member


Medals: 4



« Reply #8 - Posted 2010-02-09 16:12:32 »

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

Senior Member


Medals: 1
Projects: 1


Co-op Freak


« 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!
Legends of Yore - The Casual Retro Roguelike
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #10 - Posted 2010-02-09 20:15:22 »

WTF Riven?



Better, yet, where do I sign up?

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« 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
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« 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
Offline irreversible_kev

Junior Member





« 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.
Offline bosun

Senior Newbie





« Reply #14 - Posted 2010-02-09 21:36:48 »

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
Offline brackeen

Junior Member





« Reply #15 - Posted 2010-02-10 00:58:06 »

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 Smiley
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?
Offline indexunknown

Junior Member





« Reply #16 - Posted 2010-02-10 06:12:27 »

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

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« 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 Smiley

Offline 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!  Smiley

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

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« 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 Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #20 - Posted 2010-02-10 15:19:24 »

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 Smiley

Hmm, that applet didn't work here (well, it didn't play video). Got 'unknown type: audio/ogg' on the bottom of the applet.

Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« 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 Smiley

Offline 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 Smiley

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. Smiley

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 - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #23 - Posted 2010-02-10 17:12:15 »

 Grin 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 Smiley

Offline brackeen

Junior Member





« 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.
Offline 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 :

Quote
target="1.1" source="1.3"

Offline 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 Smiley :
AMD 1.6 GH
XP PRO
Internet explorer 6
Microsoft JVM 1.1

and ? and ? you know what Huh 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 ....

Offline DzzD
« Reply #27 - Posted 2010-02-11 01:16:02 »

so so cool Smiley

downloaded the source code...
get the src directory and put it in a blank JCreator project, pressed compil and ... compil finished without error Smiley (only 71 annoying warning...)

Offline 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
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« 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 Smiley

Pages: [1] 2 3 4
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!