Comments (11)
Sounds like you did not include the natives jar on the classpath correctly. How are you including them?
from gdx-video.
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.
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.
I'm using Mac OS X 10.10.2
from gdx-video.
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.
Tried running the project in Windows. Now, I get this error. (http://pastebin.com/PDF97Cz7)
from gdx-video.
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.
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.
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.
Thanks! It works! :D
from gdx-video.
Good to hear!
from gdx-video.
Related Issues (20)
- jnigenBuild cant find -<library> HOT 6
- gdx-jnigen transitivity HOT 1
- ffmpeg codec arguments HOT 2
- Black screen while play on Android hardware device HOT 2
- Unable to play video from cross origin GWT Libgdx HOT 1
- IOS platform support and video file format extension HOT 1
- setlooping(true) does not work on desktop. HOT 1
- MP4, Could not find a suitable audio decoder! even with --enable-decoder=h264 or --enable-libx264 HOT 9
- Error on 1920x1080 videos in mp4, Could not find codec parameters for stream 0 HOT 2
- Rewind / forward is supported? HOT 2
- update to current libgdx and include desktop loopback support HOT 1
- Video does not play when asset filter is used
- Videos cannot be loaded without playing HOT 2
- error with music in newst libgdx version HOT 2
- Is it possible to run the Desktop sample too? HOT 6
- Could not open WebM file after latest commits HOT 3
- video is flickering HOT 1
- AV1 Decoding does not work on Desktop HOT 3
- `isPlaying()` behaviour across backends
- Does not work on Java 8 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdx-video.