The composites are created with extracting each frame as a png file. So if a video has 30 frames per second and the video is 90 seconds long you will have 2700 images. What /u/tomasfra and /u/piecat have been doing is arranging those images to create the composite. Some variables are how big is each image (1x1, 5x5 pixels, etc) and what are the dimensions of the grid.
(created by hellajt)
Easy to use + with instructions, made for beginners: https://www.dropbox.com/s/ozn5emlgtaak85r/UFSC.7z?dl=0
So for example, using a video from the BRINE series…
Each video was 30 FPS and 180.2333 Seconds (30 FPS * 180.2333 Seconds = ~5407 Frames Total) Each frame was exported as a 50x50px image (5407 images total - and the 50x50 is the size UFSC uploaded them as) What seemed to line up was 541 images on the x axis and 10 on the y axis (although if you do the math it leaves you with a floating number) What also worked was using 1080x5 which is why we saw some of /u/tomasfra’s “double” image composites. The script that was written by /u/tomasfra stiches each of those 5407 images (541x10 grid) together into one image. And so after each BRINE video was released, the new composite fit right below the previous one. Sidenote: it would seem like 540 on the x-axis would be a more consistent number (divisible by 1080 -> a common aspect ratio), but that resulted in that slanted version we’ve seen. Unlike the previous BRILL composites that worked with 540 (IIRC). But changing that to 541 made it look more correct.
To create your own composite you’ll need to install python, the pillow library, and ffmpeg
(Using BRINE 0 as an example):
Open Terminal and paste:
` /usr/bin/ruby -e “$(curl -fsSL
brew install ffmpeg
(Python 3 is needed for script to run) Video on how to Install Python 3
(Python Image Library - The script needs this to run correctly)
<https://bootstrap.pypa.io/ez_setup.py> -o - | sudo
sudo easy_install pip
pip install Pillow
Save the file and open terminal and run: python3 /path/to/composite.py
Check the /UFSC/output folder and you will see the composite image.
You’ll have to clear out the keyframes folder if you plan on working with another file, or create a folder for BRINE0 in keyframes and change output_dir = r”path/to/UFSC/keyframes/BRINE0” (and you’ll have to change this for each video you want to extract from).
To output a file with a different name you can change line 46:
comp.save(output_dir + 'brine0.png')
You can combine all videos in a series using Qucktime, then create the composite using that file instead of lining them up individually post composite creation.
You can change the thumbnail size to whatever you want (default in script is 1x1), but the script isn’t written to automatically update the height and axis placement, so you’ll have to modify it, for example using 2x2 images would change:
@ line 15:
height = (int(5407/width))*2
@ line 19:
thumbnail_size = (2, 2)
starting @ line 38:
if(x == width):
x = 0
(as suggested by piecat)