Giter Club home page Giter Club logo

Comments (11)

RBogie avatar RBogie commented on May 22, 2024

Sounds like you did not include the natives jar on the classpath correctly. How are you including them?

from gdx-video.

iMackshun avatar iMackshun commented on May 22, 2024

For my core project I add gdx-jnigen.jar, gdx-video-desktop-natives, gdx-video-desktop, and gdx-video to the buildpath, the last two being compiled from the project you provided.(In eclipse, I exported as a .jar file) For the android project, I only add gdx-video-android to the build path. I usually keep all of the libraries I use in a folder on my hard drive and add them in eclipse using the "Add External JARs..." option. For Android, I place the JARs in the libs folder and use the "Add JARs..." option.

from gdx-video.

RBogie avatar RBogie commented on May 22, 2024

That sounds like the correct way of including libraries. Can I ask on what OS you're getting this error? It might be that some dynamic library needed by ffmpeg is causing problems...

from gdx-video.

iMackshun avatar iMackshun commented on May 22, 2024

I'm using Mac OS X 10.10.2

from gdx-video.

RBogie avatar RBogie commented on May 22, 2024

That explains... The natives jar that you can find here is not compiled for a mac. This is because the buildserver is not functioning yet, and I myself don't have any mac to do the compile on. You can try compiling the natives yourself. (You'll have to edit the build.xml in the desktop/jni folder, and then execute the mac build with it). I wish I could do more, but I have no time to change the buildscript for you atm.

Good luck!

from gdx-video.

iMackshun avatar iMackshun commented on May 22, 2024

Tried running the project in Windows. Now, I get this error. (http://pastebin.com/PDF97Cz7)

from gdx-video.

RBogie avatar RBogie commented on May 22, 2024

A quick google gives me this link: http://www.java-gaming.org/index.php?topic=31376.0

I can't really help with this issue, since it happens outside of my code. Something goes wrong with lwjgl opening the audio device. Maybe you're having issues with your audio driver?

from gdx-video.

iMackshun avatar iMackshun commented on May 22, 2024

Ah! Thanks for the quick responses. When my speaker isn't connected, my audio devices are disabled. Plugging my speaker in fixes the OpenAL problem, but the "Could not open file!" remains. I'll try a different file format.

from gdx-video.

RBogie avatar RBogie commented on May 22, 2024

The could not open file happens because ffmpeg (Which is used in the desktop project) can't load the videofile. The error suggests that your videofile is not a valid videofile. However, since the ffmpeg build in the project only supports ogg/theora and webm's, it could simply be that it gives this error because it cannot read the mp4 file format. The project is limited to these codecs because of licensing.

You can try a webm, or you can try compiling the native library + ffmpeg yourself with different codecs for ffmpeg included. The second option does require you to check whether you fullfill all license agreements for the specific codecs.

from gdx-video.

iMackshun avatar iMackshun commented on May 22, 2024

Thanks! It works! :D

from gdx-video.

RBogie avatar RBogie commented on May 22, 2024

Good to hear!

from gdx-video.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.