movie2serial issue ( a library used by this sketch)

Status
Not open for further replies.

emk

Member
movie2serial issue ( a library used by this sketch) UNSOLVED

Hi to all ,

This error is happening when I press the play button :

A library used by this sketch is not installed properly.

A library relies on native code that's not available.
Or only works properly when the sketch is run as a 64-bit application.

I have been working for about a month on this problem ,many people in different subjects have experienced this problem.I have investigated most forums but still have same problem please help me..

Code:
import processing.video.*;
import processing.serial.*;
import java.awt.Rectangle;

[B]Movie myMovie = new Movie(this, "C:/Documents and Settings/opera.avi");[/B]  // there is a problem with this line

float gamma = 1.7;

int numPorts=0;  // the number of serial ports in use
int maxPorts=24; // maximum number of serial ports

Serial[] ledSerial = new Serial[maxPorts];     // each port's actual Serial port
Rectangle[] ledArea = new Rectangle[maxPorts]; // the area of the movie each port gets, in % (0-100)
boolean[] ledLayout = new boolean[maxPorts];   // layout of rows, true = even is left->right
PImage[] ledImage = new PImage[maxPorts];      // image sent to each port
int[] gammatable = new int[256];
int errorCount=0;

Tried these lines


Movie myMovie = new Movie(this, "C://Documents and Settings/opera.avi");
Movie myMovie = new Movie(this, "C://Documents and Settings//opera.avi");
Movie myMovie = new Movie(this, "C://opera.avi");
Movie myMovie = new Movie(this, "C:/opera.avi");
Movie myMovie = new Movie(this, "opera.avi");
..

Tried OS s

Win Xp 32bit
Win 7 32bit

Using Processing 3.3.6 Program and tried older versions.

Best Regards,
 
Last edited:
Click Sketch > Import Library > Add Library.

Capture1.PNG

Then scroll down to the bottom of the list. Select the Video library, and click Install.

Capture2.PNG
 
Hi Paul,

Thank you for your respond , i have already installed this library and still have same problem.
pj.JPG
 
Last edited:
another same error

pj_3.JPG

using Win Xp at this moment



different name different file path

pj_try.JPG
 
Last edited:
Not sure if it's your problem, but I'm fairly sure it should be "\" in windows and not "/" for path separator.
If you do it that way I'm not sure if you have to escape the special character

Code:
C:\try\help.mp4

or maybe this:

Code:
C:\\try\\help.mp4

Also good to use File.separator for cross-platform.

Code:
String moviePath="C:" + File.separator + "try" + File.separator + "help.mp4";
Movie myMovie = new Movie(moviePath);
 
Last edited:
I tested on Windows 10. It's works. I tested with the MOV file for this video.

capture.jpg
(click for full size)

A single forward slash in the filename worked fine, as you can see in this screenshot. The only other edit was adding a serialConfigure line with "COM11" and commenting out the two example serialConfigure with Linux device names.

I tried to get all of these details and all relevant info into this screenshot. Hopefully it helps?


using Win Xp at this moment

Maybe Processing's Video library simply does not work on Windows XP?

As you can see in this screenshot, it works perfectly on Windows 10. I did not need to install anything beyond the Video library from Sketch > Import Library > Add Library.
 
Not sure if it's your problem, but I'm fairly sure it should be "\" in windows and not "/" for path separator.
If you do it that way I'm not sure if you have to escape the special character

Code:
C:\try\help.mp4

or maybe this:

Code:
C:\\try\\help.mp4

Also good to use File.separator for cross-platform.

Code:
String moviePath="C:" + File.separator + "try" + File.separator + "help.mp4";
Movie myMovie = new Movie(moviePath);


I do not use special characters i used your file paths still same error
 
Last edited:
I tested on Windows 10. It's works. I tested with the MOV file for this video.

View attachment 12315
(click for full size)

A single forward slash in the filename worked fine, as you can see in this screenshot. The only other edit was adding a serialConfigure line with "COM11" and commenting out the two example serialConfigure with Linux device names.

I tried to get all of these details and all relevant info into this screenshot. Hopefully it helps?




Maybe Processing's Video library simply does not work on Windows XP?

As you can see in this screenshot, it works perfectly on Windows 10. I did not need to install anything beyond the Video library from Sketch > Import Library > Add Library.

Hi Paul ,
as u said the video library does not work on Win Xp. I will also try windows 10 and write the results here
 
Status
Not open for further replies.
Back
Top