Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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 25858 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: 605
Projects: 4
Exp: 16 years


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
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!
Legends of Yore - The Casual Retro Roguelike
Online Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


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
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: 605
Projects: 4
Exp: 16 years


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
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: 605
Projects: 4
Exp: 16 years


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

Innocent Bystander





« 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
« 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: 605
Projects: 4
Exp: 16 years


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

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #162 - Posted 2013-05-26 07:37:28 »

Version 0.8.8 of YUNPM



Changes
  • Made streaming in video frames fully asynchronous, shaving off 4ms per video frame
  • Fixed volume control, bug in mouse-wheel handling (that nobody noticed this is telling Pointing)

The only part of the library that is blocking now is glTexImage2D, which is about 2.2ms per 1920x1080 frame - which can be offloaded to a PBO, but only really matters if you have more to do than rendering that video.


Download files

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #163 - Posted 2013-05-26 08:20:31 »

I'm glad you're still maintaining this project. I will definitely be using it if I ever need it!

Online Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #164 - Posted 2013-05-27 01:41:58 »

Version 0.8.9 of YUNPM



Changes


Download files

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #165 - Posted 2013-05-27 03:36:04 »

That's some impressive code. I just spent an hour perusing through it Smiley

Offline ReBirth
« Reply #166 - Posted 2013-05-27 07:20:38 »

A new update in less than 24h, impressive!

Pages: 1 ... 4 5 [6]
  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.

xsi3rr4x (53 views)
2014-04-15 18:08:23

BurntPizza (51 views)
2014-04-15 03:46:01

UprightPath (65 views)
2014-04-14 17:39:50

UprightPath (48 views)
2014-04-14 17:35:47

Porlus (65 views)
2014-04-14 15:48:38

tom_mai78101 (89 views)
2014-04-10 04:04:31

BurntPizza (149 views)
2014-04-08 23:06:04

tom_mai78101 (245 views)
2014-04-05 13:34:39

trollwarrior1 (203 views)
2014-04-04 12:06:45

CJLetsGame (210 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!