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.
Page Index Toggle Pages: 1
Reading movie from remote QTSS (Read 431 times)
Reading movie from remote QTSS
Jul 4th, 2006, 12:58pm
 
Hi all,

I am trying to adapt the MoviePlayBack example to read a movie from a remote Quicktime Streaming Server (instead of a local file).

I get the following error:


quicktime.std.StdQTException[QTJava:6.1.3g],-5401=Unknown Error Code,QT.vers:7048000
at quicktime.std.StdQTException.checkError(StdQTException.java:38)

Now THAT is not a useful error message Smiley

My program is as follows:


=====================================================

import processing.video.*;
Movie myMovie;

void setup()
{
 size(200, 200);
 background(0);
 // Load and play the video in a loop
 try {
 URL myurl = new URL("http://myserver/sample_100kbit.mov");
 if (myurl != null) {
 myMovie = new Movie(this, myurl);
 //myMovie = new Movie(this, "street.mov");
 
 myMovie.loop();
 }
 else {
  println("bla");
 }
 }
 catch (Exception e) {
   println("dah");
   println(e);
   }
}

void movieEvent(Movie myMovie) {
 myMovie.read();
}


void draw()
{
 tint(255, 20);
 if (myMovie.available()) {
 image(myMovie, mouseX-myMovie.width/2, mouseY-myMovie.height/2);
 }
 else {
    //println("Movie not available");
 }
 //image(myMovie, 200, 200);
}

=====================================================

Finally, I can read http://myserver/sample_100kbit.mov in a browser just fine, so it not an access problem.

Any help would be greatly appreciated!

Billy Boy, lost in QT land...
Re: Reading movie from remote QTSS
Reply #1 - Jul 6th, 2006, 11:16am
 
Following my own post, I have found someone with a similar problem: http://lists.apple.com/archives/QuickTime-java/2005/Jun/msg00032.html

The solution (http://lists.apple.com/archives/QuickTime-java/2005/Jun/msg00040.html) suggests that a call to method preroll() is responsible for the error.

I suppose that Movie in Processing is calling preroll?? Is there a way to change this behaviour?

Cheers

Billy
Page Index Toggle Pages: 1