Compare commits

..

3 Commits

4 changed files with 46 additions and 1 deletions

View File

@ -4,6 +4,8 @@ Scripts and templates for making "filmless", cameraless analog films using free
Building off of the [v2f](https://github.com/sixteenmillimeter/v2f) application for generating film-sized strips of images, this is a set of tools for building pixel-perfect image sequences for printing and laser cutting into viable 16mm film strips. Create 16mm films from non-film materials and convert video to strips of film using [Processing](https://processing.org/).
This project was made in collaboration with [Wenhua Shi](https://shiwenhua.net/) for a workshop run during the [Revolutions Per Minute Festival](https://revolutionsperminutefest.org/) held at UMass Boston.
### [Download](https://github.com/sixteenmillimeter/filmless/archive/master.zip)
## What this repository contains

View File

@ -65,6 +65,9 @@ void printInfo() {
println("CALIBRATION H (MM): " + (ROWS * (SPACING / DPMM)));
println("SOUNDTRACK SAMPLE RATE: " + (SPACING * 24));
println("MAGIC H CORRECTION: " + MAGIC_H_CORRECTION);
println("MAGIC W CORRECTION: " + MAGIC_W_CORRECTION);
}
void setup () {

View File

@ -1,6 +1,12 @@
#!/bin/bash
WITH_SOUND=true #change to false for a silent film
if [[ "${1}" == "" ]]; then
echo "Please include path to video file as first argument"
exit 1
fi
WITH_SOUND=false #change to false for a silent film
#changes based on printer DPI, this is for 1440
#check the output of the calibration script
@ -11,6 +17,11 @@ AUDIO_RATE=10368
#or hardcode it by changing VIDEO=${1} to VIDEO=/path/to/my/video.mov
VIDEO="${1}"
if [ ! -f "${VIDEO}" ]; then
echo "Video file ${VIDEO} does not exist, exiting script..."
exit 2
fi
# change these to directory where you will store your frames and audio
FRAMES_DIR=~/Desktop/frames/
AUDIO_DIR=~/Desktop/audio/

29
scripts/image.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
set -e
if [[ "${1}" == "" ]]; then
echo "Please provide path to an image as your first argument"
exit 1
fi
if [[ "${2}" == "" ]]; then
echo "Please provide your DPI as your second argument"
exit 2
fi
IMAGE="${1}"
DPI=${2}
filename=$(basename -- "${IMAGE}")
extension="${filename##*.}"
NEW_IMAGE="${IMAGE/.$extension/.png}"
if [ -f "${IMAGE}" ]; then
convert -units PixelsPerInch "${IMAGE}" -density ${DPI} "${NEW_IMAGE}"
rm "${IMAGE}"
else
echo "${IMAGE} does not exist"
exit 3
fi