We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › cross-platform video library
Pages: 1 2 3 4 5 6
cross-platform video library (Read 38682 times)
Re: cross-platform video library
Reply #30 - Feb 29th, 2008, 6:18pm
 
the problem on OSX resides in installing gstreamer itself, which is not a trivial matter (yet). Here there are instructions on how to do it:

http://code.google.com/p/gstreamer-java/wiki/GstreamerOnMacOSX

Unfortunately, it involves compiling from source...
But read the notes in the howto, there could be a new version of gstreamer on macports which might work
Re: cross-platform video library
Reply #31 - Mar 1st, 2008, 7:01pm
 
Sad GStreamer & Processing wont work on my mac!

I have a Mac Powerbook 2.2 GHz Intel with 3GB Ram with GeForce 8600M GT 128 MB VRam

I did the following:

install Xcode tools 2.5 (Tiger) from http://developer.apple.com/tools/xcode (register as apple developer)
install MacPorts 1.6.0 (Tiger) from http://www.macports.org

open ' Terminal '
-> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
-> export MANPATH=/opt/local/share/man:$MANPATH
-> sudo port selfupdate
(Macport version is the newest)
-> sudo port install gstreamer
(about 30 packages sucessfully installed)

The GSvideo Processing example gives me: "unsatisfied link, could not find gstreamer..."

download gstreamer-0.10.17.tar from http://gstreamer.freedesktop.org

unpack and navigate with Terminal in folder gstreamer-0.10.17
-> LDFLAGS="-L/usr/local/lib -L/opt/local/lib" CFLAGS="-I/usr/local/include -I/opt/local/include"
-> PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/opt/local/lib/pkgconfig"
-> ./configure --prefix=/usr/local && make DEPRECATED_CFLAGS="" && sudo make install
(everything fine)

The GSvideo Processing example now generates some errors:
(GSMovie:243): GLib-GObject-WARNING **: cannot register existing type `GstObject'
(GSMovie:243): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0' failed
(GSMovie:243): GStreamer-CRITICAL **: gst_element_register: assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: Unable to load library 'glib-2.0': dlopen(libglib-2.0.dylib, 1): image not found

at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:114)

then I tried to install gst-plugins-base-0.10.15 but there was a:"cant find gstreamer-check.pc in pkgconfig path..."

and so on, after more than 3 hours I gave up...

Sad
Re: cross-platform video library
Reply #32 - Mar 1st, 2008, 9:10pm
 
Thanks for the feedback.
I don't have a mac myself, so far I'm testing on windows and linux... I'll try to do my best to get some time soon to start testing on mac.

From the errors you are getting, particularly:

Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: Unable to load library 'glib-2.0': dlopen(libglib-2.0.dylib, 1): image not found

seems to me that there is a problem with the paths. Some component of the library (gsvideo, gstreamer-java o gstreamer itself) is unable to find libglib-2.0.dylib
Re: cross-platform video library
Reply #33 - Mar 1st, 2008, 9:28pm
 
Another thing, did you try running gst-inspect to see what are the available plugins?

If the output doesn't give you any errors, then it probably means that gstreamer is ok, and the problem is either with the java bindings for gstreamer or on gsvideo...
Re: cross-platform video library
Reply #34 - Mar 1st, 2008, 10:34pm
 
ok, gst-inspect gives mes:

Total count: 3 plugins, 16 features

Hm, it seems that GStreamer isnt installed fully and properly, its maybe just the base...

Well I dont know lot about Paths, Compiling or even ' Ports ' and stuff
some hints?

greetings ascorbin

Re: cross-platform video library
Reply #35 - Mar 2nd, 2008, 1:16am
 
Yeah, there is definitely something wrong. According to the OSX tutorial on the gstreamer-java website, there should be at least 126 plugins present...
Re: cross-platform video library
Reply #36 - Mar 27th, 2008, 9:08am
 
Hello,

I finished a new version of the library, which includes the GSCapture object. Tested only on windows, and definitely not easy to setup, but hopefully the situation will improve soon.

More details and download links at:

http://codeanticode.wordpress.com/2008/03/27/new-version-of-gsvideo-with-capture-object/
Re: cross-platform video library
Reply #37 - Mar 27th, 2008, 1:24pm
 
wow,great.thxs for the update
one question,the Capture size must be 320 x 240 ? otherwise i can't see anything from the screen. if i play with 320x240 it working fine.
Re: cross-platform video library
Reply #38 - Mar 27th, 2008, 3:51pm
 
I think the maximum resolution depends on your webcam. I have tried 160x120, 320x240 and 640x480 on mine, and works fine.
Re: cross-platform video library
Reply #39 - Mar 28th, 2008, 8:36am
 
sorry to ask again.

it just really weird! the new version seems not very stable,when i testing some HD quicktime movs it always crashed,the window just disappeared . however if i switch it back to the old version(include the GStreamer&jna) everything is fine.

also i upgrade the GStreamer to 0.10.17, is that causing the problem?



Re: cross-platform video library
Reply #40 - Mar 28th, 2008, 3:47pm
 
I just loaded an HD quicktime movie (the codec is H.264, res. is 1920x800) using the latest version of the library, and works fine.

Are you sure that you have installed the plugin for the codec of the file you are trying to open?
Re: cross-platform video library
Reply #41 - Apr 21st, 2008, 2:03am
 
I was able to run gsvideo on OSX (the movie class only, not capture yet), after installing the latest version of gstreamer using macports. I added some fixes to gsvideo that allow it to find where the gstreamer libraries get copied to. Here there is more info:

http://codeanticode.wordpress.com/2008/04/20/gsvideo-and-osx/
Re: cross-platform video library
Reply #42 - May 6th, 2008, 2:08pm
 
Hi - thanks for providing gsvideo :)

I've been messing around with the video playback and it works well on my system (ubuntu studio ... 8.10)

I'm now trying to use the capture facility... using a dvcam under linux.  I'm able to do this using a utility called dv4l (http://dv4l.berlios.de/) which routes the firewire dvcam input to /dev/video1....

I was wondering which '/dev/video#' gsvideo requires??
Re: cross-platform video library
Reply #43 - May 6th, 2008, 10:35pm
 
Hi, right now the library only reads from /dev/video0

In this blog post (in spanish):

http://lab-pecesito.blogspot.com/2008/04/usando-gsvideo.html

it is explained how to change the order in which devices are loaded so that you can set your camera to /dev/video0

For the next release of gsvideo I'll be adding the option to specify the input device.
Re: cross-platform video library
Reply #44 - May 7th, 2008, 12:01am
 
Thanks for the info.

As I mentioned before, I'm trying to use my digital camcorder as a webcam with processing(+GSvideo), in linux.

I've posted about it here (http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Video;action=display;num=1210072258;start=0).
Pages: 1 2 3 4 5 6