gBroutin / gstreamer-java

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

[Windows 7] - BUG ? NOT working. #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I was using latest version of OSSBuild then i get this error in 64-bit Windows 
7 PC: https://gist.github.com/1548204  (screen shot: 
http://i.imgur.com/BZjc1.png)

Then i used older version of OSSBuild seems to be working but still with 
following issues:

64-bit Windows 7 PC:
====================
Nothing is working

32-bit Windows XP:
==================

Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: Error looking up
function 'gst_x_overlay_set_window_handle': The specified procedure could not be
 found.

        at com.sun.jna.Function.<init>(Function.java:179)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:345)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:325)
        at com.sun.jna.Library$Handler.invoke(Library.java:203)
        at $Proxy31.gst_x_overlay_set_window_handle(Unknown Source)
        at org.gstreamer.interfaces.XOverlay.setWindowHandle(XOverlay.java:88)
        at org.gstreamer.interfaces.XOverlay.setWindowID(XOverlay.java:101)
        at main.main.callLocal(main.java:1208)
        at main.main$6.run(main.java:810)
        at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by iamtryin...@gmail.com on 1 Jan 2012 at 9:19

GoogleCodeExporter commented 8 years ago
OSSBuild is way too old:-(
us the fedora mingw builds

Original comment by lfar...@lfarkas.org on 1 Jan 2012 at 9:25

GoogleCodeExporter commented 8 years ago
Thanks for the hint. I did that, but there is no x264enc element. (OSSBuild old 
one which just got new one, has that, and then i copied the libgstx264.dll to 
my own mingw path and it fails too). Is there any mingw builds for x264enc 
please?

Follow up (seems now we have duplicate link):
==============================================

1) 
http://groups.google.com/group/gstreamer-java/browse_thread/thread/329734df522f0
cf6  
( no not reply)

2) 
http://www.google.com/url?sa=D&q=http://code.google.com/p/gstreamer-java/issues/
detail%3Fid%3D94&usg=AFQjCNGCZqyxmvEzRjDrvK7EJeXeTyReBw
( can reply)

Original comment by iamtryin...@gmail.com on 2 Jan 2012 at 4:52

GoogleCodeExporter commented 8 years ago
x264 in not in fedora nor in rhel. it's only in rpmfusion. but here are the 
full builds:
http://www.lfarkas.org/linux/packages/redhat/6/mingw-w64/

Original comment by lfar...@lfarkas.org on 3 Jan 2012 at 12:23

GoogleCodeExporter commented 8 years ago
Thank you. 

Very strange previous one and the new one both is having unfortunately 2 
serious issues:

1) Gstreamer-java wrapper is not working. I have the environment variable setup 
as below:

- GST_PLUGIN_PATH
- GST_PLUGIN_SYSTEM_PATH
- Java wrapper does not recognize and when i launch my application it fail to 
use the gstreamer

Any help on this please?

2) With VLC i can capture the camera video. 

- But with both versions of mingw i get this:

C:\>gst-launch -v autovideosrc ! ffmpegcolorspace ! directdrawsink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstFakeSrc:fake-video-src:
last-message = "get      ******* > (    0 bytes, timestamp: none, duration: none
, offset: 0, offset_end: -1, flags: 0) 029D6328"
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0: Reso
urce not found.
Additional debug info:
../../../gst/autodetect/gstautovideosrc.c(316): gst_auto_video_src_find_best ():
 /GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0:
Failed to find a usable video source
ERROR: from element /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0: not negotiat
ed
Additional debug info:
../../../../libs/gst/base/gstbasetransform.c(2328): gst_base_transform_handle_bu
ffer (): /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0:
not negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Original comment by iamtryin...@gmail.com on 3 Jan 2012 at 8:01

GoogleCodeExporter commented 8 years ago
try to be able to run gst-inspect. if you're able to run it you can use other...

Original comment by lfar...@lfarkas.org on 3 Jan 2012 at 8:50

GoogleCodeExporter commented 8 years ago
1) I just installed from the repository as you mentioned earlier. 

# cat lfarkas.repo 
[lfarkas]
name=LFarkas Repository
#baseurl=http://www.lfarkas.org/linux/packages/centos/$releasever/$basearch/
#gpgkey=http://www.lfarkas.org/linux/packages/RPM-GPG-KEY
baseurl=http://www.lfarkas.org/linux/packages/redhat/6/mingw-w64/$basearch/
enabled=1
priority=3
gpgcheck=0

Installed:
  mingw32-gstreamer.noarch 0:0.10.35-2.fc15                        mingw32-gstreamer-ffmpeg.noarch 0:0.10.12-2.el6                            
  mingw32-gstreamer-plugins-bad.noarch 0:0.10.22-4.el6             mingw32-gstreamer-plugins-bad-free-static.noarch 0:0.10.22-1.el6           
  mingw32-gstreamer-plugins-base.noarch 0:0.10.35-2.el6            mingw32-gstreamer-plugins-good.noarch 0:0.10.30-3.el6                      
  mingw32-gstreamer-plugins-ugly.noarch 0:0.10.18-2.el6           

Dependency Installed:
  mingw-binutils-generic.i686 0:2.21.53.0.2-1.el6                           mingw32-SDL.noarch 0:1.2.13-11.el6                                
  mingw32-binutils.i686 0:2.21.53.0.2-1.el6                                 mingw32-cairo.noarch 0:1.11.2-1.el6                               
  mingw32-cpp.i686 0:4.5.3-2.el6                                            mingw32-fontconfig.noarch 0:2.8.0-3.el6                           
  mingw32-freetype.noarch 0:2.3.11-4.el6                                    mingw32-gcc.i686 0:4.5.3-2.el6                                    
  mingw32-gcc-c++.i686 0:4.5.3-2.el6                                        mingw32-gdk-pixbuf.noarch 0:2.23.5-2.el6                          
  mingw32-gettext.noarch 0:0.18.1.1-6.el6                                   mingw32-glib2.noarch 0:2.29.10-2.el6                              
  mingw32-gstreamer-plugins-bad-free.noarch 0:0.10.22-1.el6                 mingw32-headers.noarch 0:2.0-0.1.rc1.el6                          
  mingw32-jasper.noarch 0:1.900.1-16.el6                                    mingw32-libffi.noarch 0:3.0.10rc8-1.el6                           
  mingw32-libjpeg-turbo.noarch 0:1.1.1-6.el6                                mingw32-libogg.noarch 0:1.2.2-1.el6                               
  mingw32-libpng.noarch 0:1.5.2-1.el6                                       mingw32-libsoup.noarch 0:2.34.2-2.el6                             
  mingw32-libtheora.noarch 0:1.1.1-1.el6                                    mingw32-libvorbis.noarch 0:1.3.2-1.fc15                           
  mingw32-libxml2.noarch 0:2.7.8-2.el6                                      mingw32-pango.noarch 0:1.29.3-2.el6                               
  mingw32-pixman.noarch 0:0.23.2-1.el6                                      mingw32-pthreads.noarch 0:2.8.0-14.cvs20110104.el6                
  mingw32-termcap.noarch 0:1.3.1-11.el6                                     mingw32-win-iconv.noarch 0:0.0.3-6.el6                            
  mingw32-zlib.noarch 0:1.2.5-5.el6                                        

Complete!

2) And then i start using gst-inspect to check. But nothing is available, as 
you can see below:

C:\bin>gst-inspect-0.10.exe x264enc
No such element or plugin 'x264enc'

C:\bin>gst-inspect-0.10.exe ksvideosrc
No such element or plugin 'ksvideosrc'

C:\bin>gst-inspect-0.10.exe dshowvideosrc
No such element or plugin 'dshowvideosrc'

Original comment by iamtryin...@gmail.com on 3 Jan 2012 at 12:18

GoogleCodeExporter commented 8 years ago
you can install rpm only on linux, so at least one step is missing when copy 
the content from
/usr/i686-w64-mingw32/sys-root/mingw/
into C:\X\
then set:
set GST_PLUGIN_PATH=C:\X\lib\gstreamer-0.10
set PATH=C:\X\bin;%PATH%

Original comment by lfar...@lfarkas.org on 3 Jan 2012 at 12:42

GoogleCodeExporter commented 8 years ago
1) I did this missing part:

GST_PLUGIN_PATH=C:\x\lib
GST_PLUGIN_SYSTEM_PATH=C:\x\lib\gstreamer-0.10
Path=C:\x\bin;%Path%

2) Again i applied gst-inspect after reboot twice (to re-confirm)

C:\bin>gst-inspect-0.10.exe x264enc
No such element or plugin 'x264enc'

C:\bin>gst-inspect-0.10.exe ksvideosrc
No such element or plugin 'ksvideosrc'

C:\bin>gst-inspect-0.10.exe dshowvideosrc
No such element or plugin 'dshowvideosrc'

Original comment by iamtryin...@gmail.com on 3 Jan 2012 at 12:59

GoogleCodeExporter commented 8 years ago
you've got right these are missing from these build:-(
you'd have to edit the spec file and the missing requirements and rebuild:-(((

Original comment by lfar...@lfarkas.org on 3 Jan 2012 at 1:47

GoogleCodeExporter commented 8 years ago
Thanks a lot, that we identified the issue at-least. Appreciating.

1) I have very little knowledge on this edit.
- if you just give me some hints where to get started, i can do my best and 
learn.

Please advise which spec file i can jump and do the patch, if possible can post 
the patch back.

Original comment by iamtryin...@gmail.com on 3 Jan 2012 at 2:06

GoogleCodeExporter commented 8 years ago
probably the biggest problem is that x264 lib is not ported to the mingw 
framework which also has a lot's of dependencies...
so probably it's a rather large work...

Original comment by lfar...@lfarkas.org on 3 Jan 2012 at 2:09

GoogleCodeExporter commented 8 years ago
OK. 2 serious issues i have for the moment, if there is something/anything we 
can do please?

1) `ksvideosrc` and `dshowvideosrc` and `autovideosrc` is missing and its not 
capturing any video source, i have usb camera connected which works directly 
with VLC (but not with OSSBuild nor MinGW-Gstreamer).

2) Windows 7 what ever i did (default mingw packages and from your repository), 
seems to be not working completely. 

- Gstreamer-java wrapper does not able to use Gstreamer. But i allocated 
GST_PLUGIN_PATH + GST_PLUGIN_SYSTEM_PATH + Path variables (same thing working 
in Windows XP)

Is there any fix for this above two point Guru!!
(crossing my finger in 55 directions :-()

Original comment by iamtryin...@gmail.com on 3 Jan 2012 at 2:30

GoogleCodeExporter commented 8 years ago
for 1. i can't help. it's really a lots of work to build it. may be you can ask 
the upstream gstreamer.

for 2. it's working for us:-) what does the "not working completely" means?

Original comment by vitorl...@gmail.com on 8 Jan 2012 at 9:55