Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  (Read 5029 times)
0 Members and 1 Guest are viewing this topic.
Offline Cero
« Posted 2011-02-11 01:20:15 »

You want to playback videos in your game, eg. cutscenes, what can you use ?

it seems like everything is old (jmf) or very impractical (install codec for jmf lateron and so on)

best format I got for JMF is like  .mov  video: H.263   audio: a-law, no resolution bigger than 350x280 or so... and still doesnt look at that good

so its obviously completely unacceptable in 2011.
I don't even see any proposed improvement in that area in java 7... maybe I just didn't see it.

Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #1 - Posted 2011-02-11 01:23:45 »

xuggler is that way to go.

but it doesnt work with applets at the moment.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline Cero
« Reply #2 - Posted 2011-02-11 12:05:12 »

xuggler is that way to go.

I have seen it, but didn't try it yet, seemed a little complicated. But I'll have a closer look.



but it doesnt work with applets at the moment.

I don't do web stuff anyway, do it doesn't matter.

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

JGO Coder


Medals: 4



« Reply #3 - Posted 2011-02-11 12:35:42 »

Quote
I don't even see any proposed improvement in that area in java 7... maybe I just didn't see it.
All in JavaFX. You will need to wait for 2.0 though for the Java library.

Current project - Rename and Sort
Offline princec

JGO Kernel


Medals: 339
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2011-02-11 13:35:08 »

Xuggler's ace. A bit big tho.

Cas Smiley

Offline Cero
« Reply #5 - Posted 2011-02-11 15:09:10 »

Quote
I don't even see any proposed improvement in that area in java 7... maybe I just didn't see it.
All in JavaFX.

Doesn't really help.. it's not like I can use JavaFx inside Java... I might as well write a C++ program then Tongue


Yeah Xuggler seems quite sophisticated... but there is no player yet, because everybody seems as lazy as I am
I just want a player, not dealing with internal stuff =P
Also it uses JavaSound for audio, kind of annoying
Gotta wait until someone writes a player.

JFlashPlayer seems nice too... just use flash video
but its not free

other alternatives have problems with being able to distribute it / or not being allowed to
or stuff which isn't cross platform like FOBS4JMF seems to have only win32 support

Offline Cero
« Reply #6 - Posted 2011-02-11 15:12:47 »

Sad part of java.

For audio I use a Java binding of FMOD EX, industry standard, which is free for non profit projects.
If only video playback support would be as easy to get.

like Bink video for java... that would be great.

Offline cylab

JGO Ninja


Medals: 38



« Reply #7 - Posted 2011-02-11 15:38:48 »

All in JavaFX.
Doesn't really help.. it's not like I can use JavaFx inside Java... I might as well write a C++ program then Tongue
[/quote]
AFAIK you can. In fact you can use JavaFX _only_ inside Java nowerdays, since FX script was axed by oracle.

Mathias - I Know What [you] Did Last Summer!
Offline Cero
« Reply #8 - Posted 2011-02-11 15:53:19 »

Doesn't really help.. it's not like I can use JavaFx inside Java... I might as well write a C++ program then Tongue
AFAIK you can. In fact you can use JavaFX _only_ inside Java nowerdays, since FX script was axed by oracle.

Well if thats true, I'm gonna look into that.

Offline SimonH
« Reply #9 - Posted 2011-02-11 18:18:55 »

Video can be done in an applet. I did a few local tests and FMJ seems OK, but I've never actually used it anywhere.

People make games and games make people
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #10 - Posted 2011-02-11 18:42:48 »

fully compatible back to Java 1.1 => this one is nice : source code available, start fast, play high quality movies

Offline Cero
« Reply #11 - Posted 2011-02-11 18:57:37 »

JavaFx / JMC is no option either, it seems, since:

Quote
The problem with all these JMC/Swing integration projects is that the Sun JavaFX license SPECIFICALLY PROHIBITS redistributing all or any JavaFX components.


fully compatible back to Java 1.1 => this one is nice : source code available, start fast, play high quality movies

I'm gonna look into that next then.

Offline Cero
« Reply #12 - Posted 2011-03-03 17:03:43 »

fully compatible back to Java 1.1 => this one is nice : source code available, start fast, play high quality movies

So I tried the Cortado Applet, implementing it into a JFrame - no problems.
Actually the best thing I have seen so far (excluding JavaFx(jmc.jar) and Xuggler(no Player yet))

However it's not perfect. Cortado decodes Theora Video.
Cortado will stop occasionally on every video I make. If your video is only like 1 min long (like an intro) it might play through without problems, but the next time you play it, it will stop again.
Actually it pauses, and "buffers" and after a few seconds may play again.
It's obviously an applet, therefore made for internet usage, so you have to File.toURI.toURL to get it to play, and obviously it shouldn't have to buffer.
This effect is completely random when or if it happens - but the higher quality (framerate & video-screensize), the higher the chance it will happen.

This actually seems to be an audio problem as opposed to be a video problem - some people have suggested turning off audio, which you can.
And I have not once experienced this problem with audio off. However, without audio, it's obviously pretty useless - and trying to play the audio stream by yourself - you never get it to sync.

So my conclusion to this point is:

JMF - laughable, won't be improved anyway, as far as I see
JMC(JavaFx) - Never actually tried it, but it seems very good. However the JavaFx license prohibits to distribute it, especially just partially.
Xuggler - Very nice, however there is no player, and people who are much more skilled than I try to write a player still have sync problems.
Cortado - Ok, but mentioned problem ,also annoying codec.

So I'll just hope that, when my project is done, and I really need it, either Xuggler has a good player, JavaFx (when going 2.0) has no more of this license bullshit or Cortado will actually get fixed.

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.

ctomni231 (32 views)
2014-07-18 06:55:21

Zero Volt (28 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (25 views)
2014-07-16 23:30:00

Cero (40 views)
2014-07-16 00:42:17

Riven (42 views)
2014-07-14 18:02:53

OpenGLShaders (29 views)
2014-07-14 16:23:47

Riven (29 views)
2014-07-14 11:51:35

quew8 (27 views)
2014-07-13 13:57:52

SHC (63 views)
2014-07-12 17:50:04
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!