Skip to content

Commit bb5989f

Browse files
committed
Switch examples to H.264 MP4
This miraculously makes the Reverse example work for me on macOS (the previous example file was a Theora video in a MKV container). Using the new example file I am moreover unable to make the Scratch example stop giving us frames, which it did previously (H.264 in a QuickTime MOV). Since H.264 in a MP4 container seems to be the most reasonable default these days anyhow, let's try at least for a while. Feel free to re-compress the example file to make it smaller though.
1 parent c75f386 commit bb5989f

18 files changed

Lines changed: 17 additions & 21 deletions

File tree

examples/Movie/Frames/Frames.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Movie mov;
1313
int newFrame = 0;
1414

1515
void setup() {
16-
size(640, 360);
16+
size(560, 406);
1717
background(0);
1818
// Load and set the video to play. Setting the video
1919
// in play mode is needed so at least one frame is read
2020
// and we can get duration, size and other information from
2121
// the video stream.
22-
mov = new Movie(this, "transit.mov");
22+
mov = new Movie(this, "launch2.mp4");
2323

2424
// Pausing the video at the first frame.
2525
mov.play();
2.08 MB
Binary file not shown.
-1.08 MB
Binary file not shown.

examples/Movie/Loop/Loop.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import processing.video.*;
1010
Movie movie;
1111

1212
void setup() {
13-
size(640, 360);
13+
size(560, 406);
1414
background(0);
1515
// Load and play the video in a loop
16-
movie = new Movie(this, "transit.mov");
16+
movie = new Movie(this, "launch2.mp4");
1717
movie.loop();
1818
}
1919

@@ -26,4 +26,4 @@ void draw() {
2626
// movie.read();
2727
//}
2828
image(movie, 0, 0, width, height);
29-
}
29+
}
2.08 MB
Binary file not shown.
-1.08 MB
Binary file not shown.

examples/Movie/Pixelate/Pixelate.pde

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Movie mov;
1515
color movColors[];
1616

1717
void setup() {
18-
size(640, 360);
18+
size(560, 406);
1919
noStroke();
20-
mov = new Movie(this, "transit.mov");
20+
mov = new Movie(this, "launch2.mp4");
2121
mov.loop();
2222
numPixelsWide = width / blockSize;
2323
numPixelsHigh = height / blockSize;
@@ -47,5 +47,4 @@ void draw() {
4747
}
4848
}
4949

50-
}
51-
50+
}
2.08 MB
Binary file not shown.
-1.08 MB
Binary file not shown.

examples/Movie/Reverse/Reverse.pde

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ boolean speedSet = false;
1717
boolean once = true;
1818

1919
void setup() {
20-
size(640, 360);
20+
size(560, 406);
2121
background(0);
22-
mov = new Movie(this, "transit.mkv");
22+
mov = new Movie(this, "launch2.mp4");
2323
mov.play();
2424
}
2525

@@ -44,5 +44,4 @@ void draw() {
4444
mov.play();
4545
}
4646
image(mov, 0, 0, width, height);
47-
}
48-
47+
}

0 commit comments

Comments
 (0)