-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on 32 bit windows #11
Comments
Try to run your application from cmdline or yout IDE with GST_DEBUG=3 set. Here is an overview about all enviroment variables you can set. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html |
Please can you provide a bit more information -
Thanks, Neil |
private static void loadGStreamerLibraries() {
String binpath = "C:\\Users\\ZhangY\\Desktop\\gstreamer\\1.0\\x86\\bin";
File dir = new File(binpath);
for (File f : dir.listFiles()) {
if (f.toString().endsWith(".dll")) {
try {
Native.loadLibrary(f.toString(), DummyLibrary.class);
}
catch (Exception e) {
}
}
}
}
public static void main(String[] args) {
loadGStreamerLibraries();
Gst.init("Test", args);
final Bin bin = Bin.launch("autovideosrc ! videoconvert ! capsfilter caps=video/x-raw,width=640,height=480", true);
final Pipeline pipe = new Pipeline();
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SimpleVideoComponent vc = new SimpleVideoComponent();
vc.setLayout(null);
pipe.addMany(bin, vc.getElement());
Pipeline.linkMany(bin, vc.getElement());
JFrame f = new JFrame("Camera Test");
JPanel panel = new JPanel();
panel.add(vc);
f.add(panel);
vc.setPreferredSize(new Dimension(640, 480));
f.pack();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pipe.setState(State.PLAYING);
f.setVisible(true);
}
});
Gst.main();
pipe.setState(State.NULL);
}
|
Btw, I am using JRE 1.8.0_77 32 bit. And my machine is Windows 7 64 bit. |
In which case, I'd guess you're triggering a bug in JNA that's been fixed. Sorry, but if it works with latest JNA then I'm going to close this. |
Video freezes at the first frame when running on 32 bit windows. Works fine on 64 bit windows.
I am using gst1-java-core-0.9-SNAPSHOT.jar and jna-3.4.0.jar, and GStreamer 1.0 32 bit. GStreamer command line works fine too.
Did anyone see this and how to solve it? Thanks.
The text was updated successfully, but these errors were encountered: