Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Video playback with Java  (Read 1939 times)
0 Members and 1 Guest are viewing this topic.
Offline Bombadil

Senior Member





« Posted 2004-06-16 08:43:33 »

So... with Java we game fans can use OpenGL, Xith, Java3d, OpenAL, Jorbis, and a few more: but how about video?
Say you'd like to play back some video sequences in / before your game: is this possible with Java?

Ideally there would be something to replay licence free videos like with the Xvid/Oggvideo format(s).

http://java.sun.com/products/java-media/jmf/ isn't what I'm looking for, is it?
Offline Mark Thornton

Senior Member





« Reply #1 - Posted 2004-06-16 10:24:22 »

Quote
http://java.sun.com/products/java-media/jmf/ isn't what I'm looking for, is it?

That is exactly what you are looking for.
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2004-06-16 10:59:51 »

Except that it's totally shit. I really mean that, too.

Cas Smiley

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

Senior Member





« Reply #3 - Posted 2004-06-16 12:36:45 »

Well, in the FAQ http://java.sun.com/products/java-media/jmf/reference/faqs/index.html#jmf2-support
is says for supported (video) formats:
Quote

video: AVI, MPEG-1, QT, H.261, H.263

Which would do I think for my puroposes.

However it depends on how well it outputs such videos and how easy it is do deploy JFM with your game. The JMF's pure Java probably is more simpler to handle, compared to the native lib needing "Performance Packs".
We'll see. The reason I asked here is to find some potential game dev/user experiences with JFM.


P.S. My first test with the pure Java JFM version doesn't want to show my Mpeg1 video, just sound. On
http://java.sun.com/products/java-media/jmf/2.1.1/formats.html
you can read why: the pure Java version doesn't render Mpeg video.
Offline ribot

Junior Member




Ribot - mobile UI specialist


« Reply #4 - Posted 2004-06-16 13:07:06 »

What about QT4Java?  Or has this project been dumped?

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2004-06-16 14:14:01 »

I ended up buying NCTVideoStudio components ($500) and writing my own JNI lib to interface to it. I can't stress enough just how shit JMF is. Please don't waste any more time on it.

Cas Smiley

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2004-06-16 21:02:50 »

I agree JMF is currently complete crap.  However I've been told that Sun is interested in making it not so crappy.  The architecture is almost there for something cool that would work.. the problem is that it is of such low quality that it is unusable.  (Though some people have managed to make it do something useful for them.)

I looked at it about 2 years ago when I needed something to remotely monitor a video stream - exactly what JMF is supposed to be good at  - it sucked, it simply didn't work properly at all, audio/video sync was off by a minute or more.  Video playback would be very slow until audio lagged by over a minute, then miraculously the video playback could keep up.  It was such a total pain to deal with that I ended up writing my own code to stream JPEG frames and raw audio and that worked better. Sad.

I think the right way to do this, given that JMF will not be better in time for anyone to care, is to write JNI bindings to play media via whatever the platform would normally use, DirectShow on Windows, QuickTime on Mac, and whatever you can get to work on Linux (good luck) - I think the popular thing is "Video for Linux".

Offline Bombadil

Senior Member





« Reply #7 - Posted 2004-06-17 05:03:00 »

Version v2.1.1 "Perfomance Pack" (ie with some MBs of native DLLs) worked for me on Windoze. Although I only did some basic tests with Mpeg1, they looked and sounded ok.
I don't have got the time to write any JNI wrappers (let alone the knowledge) or the money to buy some decoders for my hobby game project... :-)  One day, when it's finished, maybe there will be JMF v3 or so.
Offline aNt

Senior Member




AFK


« Reply #8 - Posted 2006-02-17 10:20:07 »

http://www.alphaworks.ibm.com/tech/tk4mpeg4?open&S_PKG=&S_TACT=103AMW61&S_CMP=GR&ca=dgr-lnxwd01tk4mpeg4

seems cool, no dll needed- but if u use one its cooler... but costly Sad
Offline thijs

Junior Member




Lava games rock!


« Reply #9 - Posted 2006-02-17 10:39:45 »

You should check out:
http://mediaframe.org/
http://fobs.sourceforge.net/

First one is pure Java, works in 1.1 too i think =)

Thijs

<a href="http://www.dzzd.net">3DzzD!</a>
<a href="http://www.arcazoid.com">Arcazoid!</a>
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #10 - Posted 2006-02-17 15:55:29 »

All the demos of the mediaframe stuff that I tried locked up after a couple seconds or just outright crashed.  Maybe a Java 6 thing?

Offline thijs

Junior Member




Lava games rock!


« Reply #11 - Posted 2006-02-17 16:40:45 »

Yeah I noticed it too, it happens in older JVM's as well. Last time I checked them (couple of months ago) they worked fine, so maybe its something on their server side (something with the streams blocking)...

You can also download everything (including source) and run the thing local. Locally all mpeg's I tried played fine.

<a href="http://www.dzzd.net">3DzzD!</a>
<a href="http://www.arcazoid.com">Arcazoid!</a>
Offline Jeff

JGO Coder




Got any cats?


« Reply #12 - Posted 2006-02-17 20:48:54 »

I didn't say this but.... you could also look at Apple's QuickTime for Java.

**looks over his shoulder for the Sun JCP police ****

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline kaffiene
« Reply #13 - Posted 2006-02-18 11:17:23 »

I didn't say this but.... you could also look at Apple's QuickTime for Java.

**looks over his shoulder for the Sun JCP police ****

I used QT4Java for a job a few years ago.  Ran really well, but the only problem was that apple went and completely changed the programming interface with the next release.  It's crap like that that makes me give M$ technologies a wide berth.  Some pratt effectively deprecating all of your work because they've decided they want to restructure their toy project is NOT a fun way to work.
Pages: [1]
  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.

CogWheelz (11 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (29 views)
2014-07-23 21:07:15

Riven (30 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!