A script to convert an image or a set of sequential images to an array of rgba values. These values correspond to an rgb led in a 10x10 custom rbg led display.
/bin/bash lo2fi.sh <videofile> <output_namespace>
The script will read movie inputs from /data_raw directory and output sequential csv files in /data_out/<movie_namespace>
- capture keyframes from a film at regular intervals
- resize keyframes to the desired size (with 10px)
- convert pixels to a
.csvfile containing RGB values for every pixel. - output the rgb values (on a screen or with P3 mockup)
convert -resize x10 test_out23.png test_out23_sm.png // max height 10px
convert -resize 10x test_out23.png test_out23_sm.png // width 10px
ffmpeg -ss <timestamp> -i <movie_filename> -frames:v 1 <output_filemane>
// example:
ffmpeg -ss 00:23:00 -i A.Girl.Walks.Home.Alone.at.Night.2014.720p.BRRip.900MB.MkvCage.mkv -frames:v 1 test_out23.png