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 38685 times)
Re: cross-platform video library
Reply #45 - May 7th, 2008, 2:36am
 
AC, i've got it to work on Leopard 10.5.2 too.

In fact the installation in pretty simple, it just takes time to download the plugins with Macports.

Here is how i did:

- Download and install macports (http://www.macports.org)

- Follow the steps to check if your installation is ok (https://weblion.psu.edu/trac/weblion/wiki/MacPorts).

- Open a terminal and type the following commands:
(install them one by one in the same order as below)

- Before installing the plugins you must replace all the licence by license in the dist.py (make a backup) file located here
/opt/local/lib/python2.5/distutils/
otherwise you'll get an error when installing.
Code:
/opt/local/lib/python2.5/distutils/dist.py:247: UserWarning: 'licence' distribution option is deprecated; use 'license' 



Don't forget to restore dist.py after installing.

Code:
sudo port install gstreamer 



Code:
sudo port install gst-ffmpeg 



Code:
sudo port install gst-plugins-base 



Code:
sudo port install gst-plugins-good 



Code:
sudo port install gst-plugins-bad 



Code:
sudo port install gst-plugins-ugly 



(if you've got a problem/error with some plugins, just continue and at the end of all the commands restart the commands where you had the errors. It will finally install all.

Once finished, to make sure everything is well installed, just retype the commands again and you should see a message similar like this one:
(xxxx = base, good, bad, ugly and also ffmpeg)

Code:
Skipping org.macports.activate (gst-plugins-xxxx ) since this port is already active
--->  Cleaning gst-plugins-xxxx


Now you just need to copy the gsvideo library in processing library folder and open one of the Movie example (Video Capture doesn't seem to work yet).

You can now play movies, it supports so many different codecs including flash movies with sound (FLV) !

The best result in term of speed is when using JAVA2D as renderer.
P3D is a little choppy and has this annoying diagonal sliced screen effect.

Forget about OPENGL is it simply too slow.

The playback performances are much better than the FasterMovie solution.

I tried to use the Video Capture but the only thing i get is this error:

Code:
java.lang.IllegalArgumentException: No such Gstreamer factory: qtwrappersrc 



Now i just hope the gsvideo Capture for OS X will come soon Smiley

Cheers !
Re: cross-platform video library
Reply #46 - May 7th, 2008, 5:36am
 
Great! Congratulations!

Right now there is no input plugin in gstreamer for the built-in cameras in the Macs, as far as I know.

BTW, I just released a new version of the library that allows you to set parameters for the input plugin in the capture device.

http://codeanticode.wordpress.com/2008/05/07/gsvideo-setting-parameters-of-the-capture-object/

Not relevant for OSX users at this point, but it might be useful for those using Linux, since it allows to change the capture device doing something like this:

cam = new GSCapture(this, 320, 240, new String[] {"device"}, new String[] {"/dev/video0"});

Re: cross-platform video library
Reply #47 - Jun 3rd, 2008, 11:01am
 
Another succesfull OSX install on a 10.5.2 imac (leopard)

1. Install Xcode -> http://developer.apple.com/tools/download/

2. Install Macports -> http://www.macports.org/install.php

3. Edit path in '.profile' for macports -> https://weblion.psu.edu/trac/weblion/wiki/MacPorts

4. Open Terminal and install gstreamer via macports -> http://gstreamer.darwinports.com/

5. Download gsvideo lib for processing -> https://sourceforge.net/project/showfiles.php?group_id=225389

Thanks a lot for this lib!

Hm, its not working on my powerbook with 10.4.11 (tiger) ?

Can we find a faster solution to pass huge videos as a background video without all the PImage stuff? via glpixeldraw/opengl or something.
Videos 1280x720 are still not fluid on a 2.4 GHz Intel mac.

greetings ascorbin
Re: cross-platform video library
Reply #48 - Jun 3rd, 2008, 7:37pm
 
I haven't tried installing gstreamer on Tiger, so unfortunately I don't have much feedback on that regard at this point.

About speeding up the handling of large files, this is actually something I'm aware of. In fact, I'm also working on a library for GPU video effects, called glgraphics, which among other things extends the PImage object to support opengl textures. One way to really speed up the loading of videos should be to by-pass the pixel array entirely and to just copy the video buffers into the opengl textures. I'll give it a try.
Re: cross-platform video library
Reply #49 - Jun 3rd, 2008, 8:48pm
 
Wait a second... I just remembered that you can actually load very large video files with the current version of the glgraphics library, which you can download from here:

http://sourceforge.net/project/showfiles.php?group_id=225391

Look at the MovieFilter example, where the video buffer is directly transferred into an opengl texture by the following function:

tex0.putPixelsIntoTexture(movie);

where tex0 is a GLTexture object. I've been able to load and play HD video files at smooth framerates.
Re: cross-platform video library
Reply #50 - Aug 25th, 2008, 12:02am
 
I'm mostly posting to sing a massive praise for your work on this.

Both GSVideo and GLGraphics are very much needed additions to Processing... great work so far!

Very much looking forward to being able to play HD files at normal speed in 0148 and beyond (it seems to be slower now). Hope you can help figure this out!

Thanks again!
Re: cross-platform video library
Reply #51 - Aug 25th, 2008, 2:08am
 
BTW

In addition to all the warnings in PDE 0148 I get a truly annoying pop-up that says "This application has failed to start because libpng13.dll was not found..."

I think it's referring to this warning:
** (java.exe:3788): WARNING **: Failed to load plugin 'C:\Program Files\Common Files\GStreamer\0.10\lib\gstreamer-0.10/libgstpng.dll': The specified module could not be found.

Which is strange because that file does exist at that location. Perhaps it's related to the '/' vs '\' (platform issue?)
Re: cross-platform video library
Reply #52 - Aug 25th, 2008, 4:17pm
 
I checked my own installation of gstreamer (from the latest windows binary packages) and I also have libgstpng.dll, but no error message appears.

The basic examples (loop, pixelate, scratch, etc) are working ok with 1048 (on windows vista). However, the camera examples are not working anymore, even with the fixed libgstdshowsrcwrapper.dll that I made available on my website... So I have to figure this out too.

Just a slightly unrelated comment. One big issue with gsvideo is to have up-to-date gstreamer binary packages for all three platforms. I just realized that the latest version, 0.7, of the songbird music player (http://getsongbird.com/), uses gstreamer as the multimedia engine. I think it would be interesting to see how are they packaging the windows and OSX binaries of gstreamer...
Re: cross-platform video library
Reply #53 - Aug 26th, 2008, 6:36am
 
So strange... I cant get it to go away :/

I'm guessing you export to application doesn't carry through for you right?

Bundling GStreamer would be key :/

It's probably completely naive to think about bundling all the dlls and jnilib files in a jar right?
Re: cross-platform video library
Reply #54 - Aug 26th, 2008, 8:16am
 
Well,... I finally got it to go away by manually downloading "libpng13.dll" and adding it to:

C:\Program Files\Common Files\GStreamer\0.10\bin

Seems really random :/ but I wont complain as I have no horrible pop-up anymore.

Still no luck with exporting an application yet.
Re: cross-platform video library
Reply #55 - Aug 26th, 2008, 8:29am
 
Ok... figured out that the application export issue pertains to the library looking in the "data" folder instead of the "data" folder inside the jar.

It works fine if I recreate the data folder relative to the executable (although it seems to crash on exit each time).
Re: cross-platform video library
Reply #56 - Sep 3rd, 2008, 7:37pm
 
Hi,

I get this message when running any of the examples (Win XP):

** Message: don't know how to handle video/x-svq, svqversion=(int)1, width=(int)160, height=(int)120, framerate=(fraction)2997/125

Seems to happen when calling the "play" or "loop" methods.
Hope you can tell me what might be wrong.
Thx for the effort btw, that's all I can say without testing
Re: cross-platform video library
Reply #57 - Sep 3rd, 2008, 8:36pm
 
Hi,

I never seen this error...

It seems that it doesn't recognize the codec of the video file.

Did you install all the gstreamer packages for windows (gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly and gst-plugins-ffmpeg)?
Re: cross-platform video library
Reply #58 - Sep 3rd, 2008, 9:02pm
 
Thx, I didn't dl the ffmpeg one, I didn't see it on your binaries list so I thought it wasn't needed. You need to be more careful when you write instructions for dummies like me! Smiley Works just fine now, except I get a lot of warnings

** (java.exe:3284): WARNING **: Add decoder dsicinvideo (97) please

** (java.exe:3284): WARNING **: Add decoder gif (100) please

** (java.exe:3284): WARNING **: Add decoder kmvc (88) please

** (java.exe:3284): WARNING **: Add decoder nuv (87) please

** (java.exe:3284): WARNING **: Add decoder smackvid (86) please

** (java.exe:3284): WARNING **: Add decoder targa (96) please

** (java.exe:3284): WARNING **: Add decoder tiertexseqvideo (98) please

** (java.exe:3284): WARNING **: Add decoder tiff (99) please

** (java.exe:3284): WARNING **: Add decoder VMware video (92) please

** (java.exe:3284): WARNING **: Add decoder dsicinaudio (86045) please

** (java.exe:3284): WARNING **: Add decoder imc (86046) please

** (java.exe:3284): WARNING **: Add decoder smackaud (86042) please
Re: cross-platform video library
Reply #59 - Sep 14th, 2008, 8:58pm
 
Code:
java.lang.IllegalArgumentException: No such Gstreamer factory: qtwrappersrc


Now i just hope the gsvideo Capture for OS X will come soon  

Cheers !

yes on my mac this is the only one problem
Pages: 1 2 3 4 5 6