gst-launch-1.0 playbin uri=file:///home/video1.mov video-sink="kmssink name=kmssink0"stMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;GstMessageStateChangedstreamsynchronizer0STATE_CHANGED----------GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;GstMessageStateChangedplaysinkSTATE_CHANGED----------GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PLAYING;GstMessageStateChangedplaybinSTATE_CHANGED----------GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;GstMessageStateChangedstreamsynchronizer0STATE_CHANGEDkmssink07Could not open DRM module (NULL)----------GstMessageError, gerror=(GError)NULL, debug=(string)"../../../gst-plugins-bad-1.12.2/sys/kms/gstkmssink.c\(610\):\ gst_kms_sink_start\ \(\):\ /GstBin:bin0/GstKMSSink:kmssink0:\012reason:\ No\ such\ file\ or\ directory\ \(2\)";GstMessageErrorkmssink0ERRORkmssink04GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.----------GstMessageError, gerror=(GError)NULL, debug=(string)"../../../../gstreamer-1.12.2/libs/gst/base/gstbasesink.c\(5264\):\ gst_base_sink_change_state\ \(\):\ /GstBin:bin0/GstKMSSink:kmssink0:\012Failed\ to\ start";GstMessageErrorkmssink0ERRORBin bin = Bin.launch("kmssink name=kmssink0 ", true);
playbin = new PlayBin("playbin");
playbin.setVideoSink(bin);
File video = new File("/home/video1.mov");
playbin.setURI(video.toURI());
bus = playbin.getBus();
bus.connect(new Bus.INFO() {
@Override
public void infoMessage(GstObject gstObject, int i, String s) {
System.out.println(gstObject.getName());
System.out.println(i);
System.out.println(s);
}
});
bus.connect(new Bus.ERROR() {
@Override
public void errorMessage(GstObject gstObject, int i, String s) {
System.out.println(gstObject.getName());
System.out.println(i);
System.out.println(s);
}
});
bus.connect(new Bus.MESSAGE() {
@Override
public void busMessage(Bus arg0, Message arg1) {
System.out.println("----------");
System.out.println(arg1.getStructure());
System.out.println(arg1.getStructure().getName());
System.out.println(arg1.getSource().getName());
System.out.println(arg1.getType());
}
});
playbin.play();
Thank you Sir,I have in a trouble with beagleboard x15. My goal is play video on GPU with JavaFx. I tried lots of things, images, kernels, packages. I could not install even drivers. Is really hard to play video with Java on BBX15 using hardware accelerator. I found gstreamer-java and implemented in my small project but as you see, I have lots of problems. I'm sorry for your time wast.