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.
IndexSuggestions & BugsSoftware Bugs › quicktime playing without a sound
Page Index Toggle Pages: 1
quicktime playing without a sound (Read 1375 times)
quicktime playing without a sound
Jan 20th, 2006, 8:27pm
 
Hi, I am trying to play video file.
The problem is that quicktime is playing without a sound. I use win xp. Should quicktime be compressed with special compression?

Sometimes it plays only first ~2 seconds of a quicktime file and further frames play w/o sound.

thanks.
Re: quicktime playing without a sound
Reply #1 - Jan 23rd, 2006, 4:05pm
 
k, posted a bug for it:
http://dev.processing.org/bugs/show_bug.cgi?id=277
Re: quicktime playing without a sound
Reply #2 - Jan 23rd, 2006, 6:04pm
 
for now i did it in this way:
i've exported sound to WAV file.
and opened it with ess library.

Code:

import krister.Ess.*; // very nice library. respect
import processing.video.*;
Movie myMovie;
int player=1;
Channel myChannel;

void setup()
{
size(320, 240);
Ess.start(this);
myChannel=new Channel();
myChannel.loadSound("m1.wav");
myMovie = new Movie(this, "m1.mov");
myMovie.loop();
}

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

void draw()
{
image(myMovie, 0, 0);
if (player==1) {
myChannel.play();
player=0;
myMovie.jump(0); // there is no sychro between snd and video without this one
}
}

public void stop(){
Ess.stop();
super.stop();
}



probably it's not very clean, but works anyways.
Re: quicktime playing without a sound
Reply #3 - Jan 23rd, 2006, 6:07pm
 
looks like there is some (0.5 sec?) time shift between video and snd, so if anyone knows best way to play video and snd parallely, please share your thougths.
Page Index Toggle Pages: 1