Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

LINUX Combining Video and Audio - Video won't play anymore

$
0
0

Hello!

I have been working with video and audio during a project, and when they both seemed to work properly I decided to put them together. After searching for the problem in my code, I found that loading in the audio files blocked the ability to play a video. I isolated the part of the code that does not work:

import processing.video.*;
import processing.sound.*;

SoundFile ring;

Movie mov1;


void setup() {

  size(200,200);
  background(0);

  mov1 = new Movie(this, "VIDEO1.mp4");
  ring = new SoundFile (this, "vintage.mp3");  //soundfile phone ringing
  mov1.loop();
}

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

void draw() {
  image(mov1, 0, 0, width, height);
}

When I remove the part "ring = new SoundFile (this, "vintage.mp3")" it the video plays, but otherwise it won't.

I have no clue how to solve this problem, do you?

Thank you in advance! :)


Viewing all articles
Browse latest Browse all 2896

Trending Articles