Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 4 5 [6]
  ignore  |  Print  
  YUNPM - a Java Media Player  (Read 15075 times)
0 Members and 1 Guest are viewing this topic.
Offline ReBirth
« Reply #150 - Posted 2012-08-23 07:53:33 »

@riven
I tried the lastest zip, and it runs well after I changed the exe. Now that's rock Smiley

Online Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #151 - Posted 2012-08-23 14:22:58 »

Thanks for testing!

Can you explain what you mean by changing the exe? Did you swap the 32 and 64 bit versions, to make it load 'the other' exe?

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline ReBirth
« Reply #152 - Posted 2012-08-23 14:58:34 »

No, on previous version (I forgot because I overwritted it) I had to add .exe extension to the only one ffmpeg32 file (became ffmpeg32.exe). The size is different from current dist which contains both 32 and 64 bit versions.

Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Online Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #153 - Posted 2012-08-23 15:01:42 »

It seems I screwed up the previous zip then. Thanks for reporting!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline TimB

Junior Member


Medals: 1
Projects: 1



« Reply #154 - Posted 2012-10-19 00:08:02 »

I know it's an a-few-months-old topic but this looks really useful. Have there been any changes since 0.8.4?
Online Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #155 - Posted 2012-10-19 00:14:35 »

Nope Smiley

Please report it if anything is broken, or if an obvious feature is missing!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline TimB

Junior Member


Medals: 1
Projects: 1



« Reply #156 - Posted 2012-10-19 10:54:23 »

I started a discussion on this thread at the JME3 forums, will see what the developers there think about how practical it will be to integrate before I do anything.

http://jmonkeyengine.org/groups/general-2/forum/topic/playing-introloading-video/?#post-194583
Online Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #157 - Posted 2013-01-10 16:13:52 »

Version 0.8.7 of YUNPM



Changes
  • Added support for video frame dropping, in case of hickups
  • Using 2D projection by default in the demo app, keep SHIFT pressed for 3D view


Download files


Snippet from demo app:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
         if (movie.isTimeForNextFrame()) {

+            final int maxFramesBacklog = 5;
+            int framesRead = 0;
+            do {
+               if (framesRead > 0) {
+                  // signal the AV-sync that we skipped a frame
+                  movie.onUpdatedVideoFrame();
+               }

               // grab the next frame from the video stream
              textureReceiveTook = System.nanoTime();
               textureBuffer = movie.videoStream().readFrameInto(textureBuffer);
               textureReceiveTook = System.nanoTime() - textureReceiveTook;

               if (textureBuffer == null) {
-                  break;
+                  break outer;
               }
+               framesRead++;
           } while (movie.hasVideoBacklogOver(maxFramesBacklog));
+
+            if (framesRead > 1) {
+               System.out.println("video frames skipped: " + (framesRead - 1));
+            }

            textureUpdateTook = System.nanoTime();
            glTexSubImage2D(GL_TEXTURE_2D, 0/* level */, 0, 0, movie.width(), movie.height(), GL_RGB, GL_UNSIGNED_BYTE, textureBuffer);
            textureUpdateTook = System.nanoTime() - textureUpdateTook;

            // signal the AV-sync that we processed a frame
           movie.onUpdatedVideoFrame();

            videoFramesLastSecond++;
         }

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline Cero
« Reply #158 - Posted 2013-03-13 15:34:48 »

Any chance I could get some sample code for rendering/controlling this in a slick2d game?
I wrote an Example of GstLWJGL, another media player to use with Libgdx.
I should post it D:

I just spend the past 2 and a half hours reading all of this...
Please excuse my stupidity, but how would you implement this in a preexisting java program? I am not a creator, I am a modder. I want to add an intro clip to the game I'm modifying... Would I drop the jars in the bin folder, where the other jars(like game.jar and lwjgl.jar and natives etc.) are? Please help... and don't be prejudiced, I'm not here because I already know how to do everything, it's because I want to LEARN from you guys... and if you don't want to help me, PLEASE don't ignore me, just leave a message saying that you're ignoring me...

Thank you in advance,
forresthopkinsa

Well you gotta understand the code. Its not hard but if you cannot program at all...

Offline ziozio

JGO Visitor




« Reply #159 - Posted 2013-03-29 11:27:31 »

I have a feature request, can you add a feature so I can set the ffmpeg location where the binaries are? Currently its hard coded

EDIT : One more request. If there is no audio in the video it currently throws an error as it tries to use a null InputStream in the AudioStream (line 52, in Movie.java). Can you add some provisions for this scenario?

Thanks

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

Senior Member


Medals: 4
Projects: 2



« Reply #160 - Posted 2013-04-11 00:24:15 »

Is there any source code for this available for download?  Or an easy way to modify the VideoPlaybackTest class?  I'd like to take a look and mess around with the options a bit.
Online Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #161 - Posted 2013-04-11 05:51:01 »

The source code is included in the jar files.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Pages: 1 ... 4 5 [6]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.088 seconds with 21 queries.