Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kalach
kalach's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Store a single frame from a video into a PImage
[1 Reply]
11-May-2012 03:17 PM
Forum:
Core Library Questions
HI, I'm new to Processing and I'm trying to store a single PImage from a Movie but I can't do it
I've been looking but I can't find anyone with the same problem
import processing.video.*;
PImage img;
Movie theMov;
void setup() {
frameRate(30);
size(600, 400,P2D);
theMov = new Movie(this, "Marvels The Avengers- Trailer (OFFICIAL).mp4");
theMov.play();
}
void draw() {
image(img,30,30);
}
void movieEvent( Movie m )
{
theMov.read();
img = m;
}
I don't know why NullPointerException is raised in line 12
Please help :S
«Prev
Next »
Moderate user : kalach
Forum