gBroutin / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

No such Gstreamer factory: playbin #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
../../Downloads/jdk1.6.0_26/bin/java -Djna.library.path=/usr/lib -cp 
./gstreamer-java-1.4.jar:./jna-3.2.4.jar:. org.gstreamer.example.SwingPlayer 
./siege.ogg 

1. any attempt to use gstreamer api results in 
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: No 
such Gstreamer factory: playbin

What is the expected output? What do you see instead?
Expected output - video on the screen, exception that there is Nu such 
Gstreamer factory : playbin

Have you tried to verify this is a gstreamer-java specific issue, and not a
problem with the gstreamer framework itself?

yes regular gstreamer works, launched gst-launch without a problem:

gst-launch filesrc location=./siege.ogg ! oggdemux name=d d. ! queue ! 
theoradec ! ffmpegcolorspace ! xvimagesink d. ! queue ! vorbisdec ! 
audioconvert ! audioresample ! alsasink 

What version of the product are you using? On what operating system?
gstreamer-java-1.4.jar, jna-3.2.4.jar; ubuntu 11.04

Please provide any additional information below.

Would really appreciate some help here, don't seem to find any reliable 
reference on the web how to make this thing work.
Thanks,

Original issue reported on code.google.com by sopanas...@gmail.com on 1 Jul 2011 at 4:13

GoogleCodeExporter commented 8 years ago
why not you properly install gstreamer-java? imho both jna and gstreamer-java 
is available for ubuntu.
on the other hand you/ve to install gsteamer-plugins-base which contains 
playbin and then:
java -cp /usr/share/java/gstreamer-java.jar:/usr/share/java/jna.jar 
org.gstreamer.example.SwingPlayer ./siege.ogg
should have to work.

Original comment by lfar...@lfarkas.org on 1 Jul 2011 at 8:33

GoogleCodeExporter commented 8 years ago
When you say properly install. I'm not sure what that means, there are 2 jar 
files to download, should I rename them and place into /usr/share/java? I don't 
think it is going to help. 
May be there is an instruction that you can point me to, that contains steps 
for proper installation?
Thanks,

Original comment by sopanas...@gmail.com on 1 Jul 2011 at 8:39

GoogleCodeExporter commented 8 years ago
you should have to install from the ubuntu repository like any other packages.

Original comment by lfar...@lfarkas.org on 1 Jul 2011 at 8:45

GoogleCodeExporter commented 8 years ago
sudo apt-get install gstreamer-java

results in "E: Unable to locate package gstreamer-java"

Is there special repository I should use?

Thanks,

Original comment by sopanas...@gmail.com on 1 Jul 2011 at 8:47

GoogleCodeExporter commented 8 years ago
sorry as many other people use it i assume it's already packaged. but jna 
should have to be (i hope).

Original comment by lfar...@lfarkas.org on 1 Jul 2011 at 8:54

GoogleCodeExporter commented 8 years ago
jna.jar is also not available in /usr/share/java. And I tried to install 
ubuntu-restrictred-extras that contains some of the gstreamer packages, with no 
luck. Still don't have .jar files in /usr/share/java. Even tried setting up 
yum, and doing yum search gstreamer-java -returned nothing.
tried gstreamer-java, java-gstreamer, jna, java-jna, jna-java.
Some suggested installing libgtk2.0.dev, but I have that installed already. So 
I'm kind of stuck...

But going back to the original questions, the "playbin" error does mean that 
native libraries are not installed? The reason I'm asking is that I can use fmj 
to display video in java, supposedly it is using gstreamer-java, and it works. 
I just want to try gstreamer-java  directly for performance purposes.

Thanks,

Original comment by sopanas...@gmail.com on 1 Jul 2011 at 9:29

GoogleCodeExporter commented 8 years ago
I think I figured it out, I have multiple jvms on my linux box 64 bit and 32 
bit(since the end target is 32 bit). 

The OS is 64bit, so all the libraries. When running in 32 bit JVM I'm getting 
'playbin' exception, when running in 64 bit jvm, all is well.

Thanks,

Original comment by sopanas...@gmail.com on 2 Jul 2011 at 3:41

GoogleCodeExporter commented 8 years ago

Original comment by lfar...@lfarkas.org on 2 Jul 2011 at 4:02

GoogleCodeExporter commented 8 years ago
i just recently ran into the same issue, but unfortunately the programme i'm 
using is 32bit-only and i'm trying to get it to run in a 64bit environment. the 
programme starts, but i get the gstreamer error and therefore the main 
functionality of the programme (transcription software) is broken. is there any 
way to repair this? (apart from using a virtual machine or chroot)

Original comment by simon.st...@gmail.com on 26 Jul 2011 at 12:45

GoogleCodeExporter commented 8 years ago
you can run 32bit apps on 64 bit, but you've to install 32bit jre and 32bit 
gstreamer.

Original comment by lfar...@lfarkas.org on 26 Jul 2011 at 12:55

GoogleCodeExporter commented 8 years ago
Environment can be 64bit, but you can run 32bit JVM in 64bit OS (for my linux I 
had to download specific 32 bit version and install it into a different 
directory from system java). That worked fine. 
However I had to modify the library so the colors are displayed correctly on my 
linux box, has to do with lo/hi byte order in .ogg file blue and red colors are 
swapped, other than that seems to be ok.
Not sure what your problem is when you say "is broken" - no video/audio at all? 
And not sure how chroot will help.
Regards,

Original comment by sopanas...@gmail.com on 26 Jul 2011 at 12:56

GoogleCodeExporter commented 8 years ago
could you retest the color swap it with release 1.5?

Original comment by lfar...@lfarkas.org on 26 Jul 2011 at 1:43

GoogleCodeExporter commented 8 years ago
Looks like 1.5 works without code change, colors are just fine.
Thanks,

Original comment by sopanas...@gmail.com on 26 Jul 2011 at 1:52