Cortado works!

shit. Well I learnt something today.
sry for being so ready to assume the worst of ya :-\

[quote]Anyway… I’m hacking all the Cortado stuff out of Cortado, and just getting something really basic working. Eventually. I hope.
[/quote]
Thanks! This would be VERY useful for me. If you could make it work with LWJGL then it will be good. I already have a working OGG/Vorbis -> LWJGL-OpenAL so I don’t need the sound part.

IMO they’re the same thing. In the first case, you can do exactly that with GPL code. In the second, you pay a royalty of “£10 per user” or you pay a royalty of “release all your code to each user”. Either is a cost to you, and you make a decision whether that cost is worthwhile, and the author protects their investment in the code. Even more liberal licences have some cost, even if it’s only attribution! There are a lot of companies releasing dual licensed code as well (GPL and commercial) so you get to take your pick, and they benefit from the protection. If you’re intending on making money from your code then GPL probably doesn’t offer the best solution, if you make money tangentially to your code (as I do) then the cost to me of using GPL code is better value. I’m no free software zealot, just pragmatic! :slight_smile:

And my only objection to the word “contaminate” is because it’s too linked to the idea of the GPL being “viral”. This is a reaction from companies who thought that the only valid transaction for software licensing was monetary. People make huge numbers of transactions all the time that are not monetary!

So, in a vague attempt to get this (or me!) back on topic :slight_smile:

I would like to see a theora video solution for Java that’s LGPL, and fulfils all our needs - that’s why I delurked in the first place! I don’t believe the GPL is anywhere near as ambiguous as stated, and I don’t think that hacking around the GPL code and hoping no-one notices is a viable or ethical option either. I’m also happy to help out or do the refactoring myself, though I don’t have any free time for a month.

I think that attempting to use the Java port of GStreamer from Cortado is a good idea, as it offers a ready built framework which could be made to work with other pure Java codecs in future. I am also a great disbeliever in reinventing the wheel without good cause! Might be worth an email to Fluendo first to see if they won’t just re-licence the offending classes though.

I’m without t’internet for the rest of the week, so don’t expect any further postings from me for a bit … yeah, I heard that sigh of relief at the back! ;D

Best wishes, Neil

Anything I produce will be under no license at all (as in, public domain), or the LWJGL-style BSD license.

Cas :slight_smile:

I’d recommend using a BSD style license… just so no one steals your code and licenses it themselves (it’s actually happened to me).

I suppose so. Though I honestly couldn’t care less. I’d only steal it back…

Cas :slight_smile:

Has anyone made any progress on this, i.e. getting synchronized video and audio playback from Java? I found Xuggler but it makes use of native libraries and has synchronization issues on Linux. I need a pure Java implementation that just works!

-Chagma

Well, as I say, Cortado works, but it’s got complex licensing problems and doesn’t integrate with OpenGL too well. I’ll probably have something working in a few weeks but it will be heavily hacked to my own frameworks unfortunately.

Cas :slight_smile:

Does “my own frameworks” include LWJGL? If you can get something that synchronises Theora video and audio and outputs the video as buffered images or such then I’ll be able to do the rest for my applet. I am at the point where I need to make a big decision: whether to go with the technology I have developed or abandon it in favour of something else entirely. It all comes down to being able to play back Theora in an applet. If it can’t be done then it’s back to the drawing board for me.

CommanderKeith noticed, that you might be interested in this alternative:

http://www.java-gaming.org/index.php?topic=21813.new%3Btopicseen#new

I had quite a long and disappointing trip finding a video framework available for all
important platforms. Now I have dicovered Xuggler and it works…

Looking now… seems promising if I can get the size down a bit.

Cas :slight_smile:

I have reservations about Xuggler namely:

• They say themselves that video playback is experimental at best and not to be used in production.
• They say themselves that video/audio synch doesn’t work on Linux and they have no solution.
• It has a massive footprint.

What are these guys doing:
http://code.google.com/p/jcodec/

h264 ? Isn’t it patented to hell and back? And with the MIT license?

That looks interesting. Some recent activity but no releases yet.

I tried contacting them but no reply.

Cas :slight_smile:

How could you? They have no mail or group. Anyway you can check out the source i guess.

The author’s got a gmail address somewhere. I dug around a little and found it but no reply from it, so it might be just a “login” sort of address rather than on in actual use.

Cas :slight_smile:

Has anyone tried this library?
http://www.mat.ucsb.edu/~a.forbes/PROCESSING/jmcvideo/jmcvideo.html

[quote]The jmcvideo library is a wrapper for playing videos and grabbing video data for any of the formats that the JMC library supports. It works on Windows, OSX, and Linux, using native bindings when possible. The framerates for playback are very fast, up to 300fps fullscreen for multiple YouTube quality .flv videos playing simultaneously. There are two versions of the library, one that interfaces with Processing and one directly for Java using the Java openGL bindings.
[/quote]
By ‘the Java openGL bindings’ they mean JOGL.

The question is what is the license? The JavaFX licenese prohibits separate distribution of any of its components.

I downloaded and tried it, maybe its my +4 year old laptop with ancient OGL driver but it was not a fast playback. Must copy files to a desktop machine when at home and try again. Anyway, functionality point of view it does work and am slightly impressed.

Running demos was a pain first as I know nothing about Processing toolkit. Its a some sort of simplified programming language and graphics runtime environment running on Java. It has some very nice graphics demos, I recommend try it out.

This is what I did.
WindowsXP, Java6

  • download processing 1.1 without java
  • uninstall to c:/projects/processing-1.1
  • git clone jmcvideo project to have sources and dependency libraries
  • copy jmcvideo folder from jmcvideo.git/processing/libraries_windows/* to processing-1.1/libraries/ folder
  • download jmcvideo.jar v1.2 and overwrite old jar in a processing-1.1/libraries/jmcvideo/library/
  • download few demos from jmcvideo site and unzip to c:/projects/examples/ folder
  • run processing IDE and load .pde scripts

I tried few mpeg2, .mp4 and .mkv files. WMVPro video files was audio only and ocassionally crashed. Image quality is not that great but maybe I am spoiled with my DirectX EVR renderer Delphi players.