New Movie Loader in Quartz Composer for Snow Leopard

New Movie Loader in Quartz Composer for Snow Leopard

Exploring the awesome updates to the Movie Loader patch in the new Quartz Composer for Snow Leopard

Structure in VJ Performance

Structure in VJ Performance

An exploration of Structure – 4 Layers for Visual Performance.

Cut Up Video using Lucifer and Ableton Live

Cut Up Video using Lucifer and Ableton Live

Make realtime AV Cutups the easy way – with Lucifer and Ableton Live

Quartz Composer: 3D Cubes and Audio Input

Quartz Composer: 3D Cubes and Audio Input

A Beginner’s Tutorial on Lighting, Cubes and Audio Input to make an Interactive Toy in Quartz Composer.

AV Challenge 2: Part One, Making the Clips

AV Challenge 2: Part One, Making the Clips

Momo the Monster’s Method for AV Madness

Wii to MIDI Walkthrough for Windows

Wii to MIDI Walkthrough for Windows

Everything you need to get started making some interactive video on a Windows PC

Playsonic: AV Fun with a Game Controller

Playsonic: AV Fun with a Game Controller

From the 2007 Maker Faire – a project where Video Art meets Gaming and DJing

AV Sequencing with Live + VDMX + Monome

AV Sequencing with Live + VDMX + Monome

A solution for hands-on live audiovisual performance

Crossfader Triggering with the NuVJ

Crossfader Triggering with the NuVJ

Using the NuVJ for AudioVisual performance – a remix and demo.

NuVJ Crash Course

NuVJ Crash Course

The basics on the NuVJ – what the buttons do, what it’s like to mix with.

A VJ’s Pet – Lemur

A VJ’s Pet – Lemur

Introduction to the Lemur Multi-Touch Interface device. How to connect it up, some things you can do with it.

Build a Projector Mount that will Go Anywhere

Build a Projector Mount that will Go Anywhere

You can’t count on venues to have a proper place to put your projector. Build one of these and you can go anywhere.

Play a Movie in Quartz Composer

Play a Movie in Quartz Composer

QC can look daunting at first – here’s how to get started.

How To Install Quartz Composer

How To Install Quartz Composer

Free video processing app from Apple – you may already have it!

New Movie Loader in Quartz Composer for Snow Leopard

playMovie

Quartz Composer has always had an easy way to play movies. You drag and drop your movie into the editor, connect the image ports and the movie plays. However, its control over movies has left much to be desired. We can set the timebase to external for a movie, which the exposes the Patch Time parameter. If we change that the movie shuttles to our new position, but we can’t get it playing again without changing our timebase. And you can’t change the timebase with an external controller, so this method is out for live performance.

Also, to play the audio track of a movie, you have to switch to Asynchronous mode. In Leopard, this also meant losing any control over playback.

The movie loader in Snow Leopard changes all of that. We can zoom between positions in our movie, while the video and audio play continuously.

Let’s take a look.

movieLoaderAsynchronous mode in Snow Leopard gives us a lot more options than it did before. Here are the new parameters we’ll focus on:

Reset Signal:
Shuttles the movie back to the Selection Start and continues playing.
Selection Start:
The playhead, effectively. Changing this will not affect current position until Reset = True.
Rate:
Playback speed for audio and video. Slow-mo effect also pitches audio up and down. Works in reverse.

Building it Yourself

In this short tutorial, you’ll learn how to use these parameters to control your video and audio.

  1. Start a new composition and add a Clear patch and a Billboard.
  2. Set the Billboard’s Width to 2.
  3. Drag in a movie from your hard disk (an SSD is highly recommended). You can download a free high-quality countdown movie at the end of this article.
  4. Connect the Image output of your Movie Loader to the Image input of your Billboard.
  5. Use the Inspector (Command-i) on your Movie Loader to turn on Asynchronous mode.
  6. Set the Movie Loader’s Rate to 0 to stop playback.
  7. Change the Selection Start to an arbitrary amount and check the Reset box to see your movie jump to the new point. Note that you have to uncheck and then recheck the box to get it to jump again.

Now we just have to combine these actions – setting a new Selection Start and resetting the movie. I’ve got a finished version of this page available for download at the end of this article. I recommend you download it and open it up.

Playing With My Version

movieControlAdv

In this setup,  we still have the Movie connecting to the Billboard, and we’ve got two new additional patches. We’ve got the Keyboard patch, which sends key signals through the Javascript patch, which interprets them, sends the Position data out to the Selection Start on the Movie, and also sends a Reset signal.

Notice that the Movie’s Duration is being fed into the Javascript patch. This is how the Javascript patch knows where in the movie to jump to. For the curious, here’s the Javascript code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
function (__number position, __boolean reset) main (__number inputNumber[8], __number duration)
{
var result = new Object();
var slice = duration/8;

if ( inputNumber[0] > 0 ) {
result.position = slice*1-slice;
result.reset = true;
} else

if ( inputNumber[1] > 0 ) {
result.position = slice*2-slice;
result.reset = true;
} else

if ( inputNumber[2] > 0 ) {
result.position = slice*3-slice;
result.reset = true;
} else

if ( inputNumber[3] > 0 ) {
result.position = slice*4-slice;
result.reset = true;
} else

if ( inputNumber[4] > 0 ) {
result.position = slice*5-slice;
result.reset = true;
} else

if ( inputNumber[5] > 0 ) {
result.position = slice*6-slice;
result.reset = true;
} else

if ( inputNumber[6] > 0 ) {
result.position = slice*7-slice;
result.reset = true;
} else

if ( inputNumber[7] > 0 ) {
result.position = slice*8-slice;
result.reset = true;
} else {
result.reset=false;
}

return result;
}

Using the home row keys on your keyboard (a, s, d, f, j, k, l, ;), you can jump to 8 different spots in the movie. You can also change the Rate for some fun time-bending effects. So there you have it – controlling a movie – With Audio – in the new Quartz Composer for Snow Leopard.

Next time we’ll take a look at swapping out this keyboard patch for a Midi Notes receiver so we can control our videos with Ableton Live.

Coming in early 2010: Realtime Graphics With Quartz Composer

The first how-to book on using this awesome language. Co-authored by Surya Buchwald (Momo the Monster) and Graham Robinson (VJ Shakinda).