Hi there,
I have been developing a solution on my Mac and am now testing it on a Windows 7 Embedded machine.
All works except videos simply do not play. I do not get an error message, I have tried a few file types, the videos play in Windows Media Player and VLC but not in Processing.
Why would they work on the Mac dev environment and not the Windows 7 Embedded machine? I have even installed processing on the Windows 7 embedded machine and run the solution through processing.
The rest of the solution is working but the videos do not play.
I have created a new project and used the example from here to see if there is an issue outside my solution and Processing:-
- import processing.video.*;
- Movie myMovie;
- void setup() {
- size(600, 500, P3D);
- myMovie = new Movie(this, "attract_loop.mp4");
- myMovie.loop();
- }
- void draw() {
- image(myMovie, 10, 10);
- }
- // Called every time a new frame is available to read
- void movieEvent(Movie m) {
- m.read();
- }
and I get the following error message when quitting (pressing escape) but no error message on start up or during the application, so it might be a red herring:-
(java.exe:3440): GStreamer-CRITICAL **:
Trying to dispose element Movie Player, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
I've installed Quicktime v7.7.4 and even GStreamer installations and this has made no difference either.
Is there an alternative to the built in media player? Am I doing something obviously wrong?
ADDITION - Out of interest and testing purposes, I tried the same code above with Processing v1.5.1 using a P3D mode and the video DOES play but it is very jerky - JAVA2D does not work at all and complains about an ArrayIndexOutOfBoundsException: Coordinate out of bounds for image(myMovie,10,10;) The videos I am testing with play perfectly in Quicktime and VLC.
I've also tried the exported application on a Windows 7 Professional laptop and it worked straight away.
Can anyone shed some light here? I smells like a Windows 7 Embedded / graphics card issue?