Source Code. Projects. Nerd Stuff. Art Stuff.

A Light Grafitti Effect


Posted on March 3rd, by amoeboar in classes, emerging processes. No Comments

Start here for an overview. Granjow explains his process for writing a light graffiti effect for an open source video editing software called Kdenlive (pronounced “kay-den-live”).

For Kdenlive you’ll need to install MacPorts on your machine.

This can be a tricky process, but if you follow the steps you should be alright. A lot of what is on the MacPOrts Guide can be skipped over, but I’ve included a rundown of important steps. You’ll need to do some command line stuff in your Terminal to get this going:
1. Section 2.3.1 : Standard Mac OS X Package Install Should be fine
2. Section 2.6.2 : Verify the configuration file, type ‘env’ in Terminal to get output similar to what’s sown
3. Section 3.1.2 : Run ‘sudo port -d selfupdate’

I got this error:

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
My-MacBook-Pro:~ amoeboar$ sudo port selfupdate
Password:
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.0 installed,
MacPorts base version 2.1.3 downloaded.
--->  MacPorts base is outdated, installing new version 2.1.3
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 1
Command output: checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking MacPorts version... 2.1.3
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.6.8
checking Xcode location... /Developer
checking Xcode version... 3.2.6
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
I see the error is at `/opt/local/var/macports/sources/rsync.macports.org/release/base' I cd into this directory and run `open config.log' This tells me what the problem is: checking Xcode version... 3.2.6 checking for gcc... no checking for cc... no checking for cl.exe... no

 

Macports cant find gcc (gcc is a compiler for C and usually comes with Xcode. This source tells me that since I changed Xcode’s default directory I’ll need to re-install)

4. Now that that nonsense is over you’ll need a bunch of software libraries. The light painting source is a plugin for a library called frei0r, but it’s best to install the reliant libraries in the right order, otherwise when you try to install, your system won’t be able to find things it needs and it’ll be a mess. Run this Mac install for the simplest process (NOTE: This will take a long time!).

If you’re experienced you can install from source. The light painting plugin should come with the latest frei0r install.

The light painting plugin is a cpp file which can be found here. It would be amazing to write an openFrameworks-compatible version of this.

Run the software in the command line
`open -a kdenlive’ and you’re ready to go!

Refer to the very first link for a description of how to use the plugin.

Yay!





Leave a Reply