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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Smooth video as a texture just isn't possible
Page Index Toggle Pages: 1
Smooth video as a texture just isn't possible? (Read 1023 times)
Smooth video as a texture just isn't possible?
Jan 11th, 2008, 5:34pm
 
Hi, just wondering:

Has anybody had any satisfactory results with using high resolution video as a texture?

...because the normal Movie class from the video library is just awful, but if I try and use the FasterMovie class then I can't seem to use the output as a "PImage" for textures, like I can with the Movie class.

So I just can't win, right? Or...?

- T
Re: Smooth video as a texture just isn't possible?
Reply #1 - Jan 11th, 2008, 7:57pm
 
Quote:
if I try and use the FasterMovie class then I can't seem to use the output as a "PImage" for textures


since FasterMovie extends PImage, it should work. can you post some code?
Re: Smooth video as a texture just isn't possible?
Reply #2 - Jan 12th, 2008, 11:25am
 
I have the same problem. Only why is video so slow?
Re: Smooth video as a texture just isn't possible?
Reply #3 - Jan 12th, 2008, 6:02pm
 
ascorbin wrote on Jan 12th, 2008, 11:25am:
I have the same problem. Only why is video so slow

http://processing.org/reference/libraries/video/index.html
-> read "Problems with Video (Quicktime for Java)"
Re: Smooth video as a texture just isn't possible?
Reply #4 - Jan 15th, 2008, 3:03pm
 
Ah, it seems that my problem lies somewhere else than I thought:

Even if I just try the standard fastermovie example patch:

--------------------------------------------------------
FasterMovie fm;
PImage mImage;

void setup ()
{
   size(640,480);
   fm = new FasterMovie(this, "countdown15.mov", false);
   fm.loop();
   background( 0 );
}

void draw ()
{
 image( fm, 0,0, width, height );
 if ( mImage != null ) image( mImage, 0,0, width, height );
}

void movieImageAvailable ( PImage _movieImage )
 {
     mImage = _movieImage;
 }

--------------------------------------------------------

...then I don't get anything to work. I get these error messages:

java.security.AccessControlException: access denied (java.security.AllPermission <all permissions> <all actions>)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at quicktime.QTCallbackManagement.registerForCallback(QTCallbackManagement.java:24)




...does anybody know what the **** this means? I'm using java version 1.5.0_14-b03 and quicktime version 7.3.1

And I've "installed" the fastermovie class by just copy-pasting the fastermovie class code into my processing patch (it should normally work that way, no?)

Thanks
Re: Smooth video as a texture just isn't possible?
Reply #5 - Jan 20th, 2008, 5:06pm
 
Its a problem with Apple's quicktime libraries. The easiest fix is to change Java's security policy. I can't remember what the change is, but if you do a google search you should find it.
Page Index Toggle Pages: 1