11 March 2015. AMAZING Python
is AMAZING. A project to learn this wonderful language. Documenting 2015 via a second-a-day video, except I'm automating the actual selection of each second (for, one hopes, delightful results). Computer art?!
- Idea for next project: use
imageio
to make a photo quilt? - Idea for next project: looping GIF tapestry of day clips - clickable, pulls up details, special days highlighted in yellow border
Set upgit
, installmoviepy
.Test run to see if MoviePy works.Check if any day is missing (os
file meta-data?).Loop through, check that every day has a video.- Idea 1:
Loop through files, pull their date modified. Create array. Check array against full array of days since Jan 1? - Idea 2:
Pipe date-modified data out to a text or .csv file, merge, compare?
- Idea 1:
If day is missing, writeerror
message to file and use stand-in black box with "forgotten." text.If day is present, take 1-second random snip (use video meta-data to make it adef
(function) of the video time-length).Add text for each day: JANUARY 1.Stitch all clips together. Ta-da! Use MoviePy's concatenation for this:final_clip = concatenate_videoclips([clip1,clip2,clip3])
.- Make several versions?
- Final editing polish with music, etc.
Can I useYes, I think RGB is kosher.HEX
/RGB
for font color?If multiple files for a day, randomly pick a 1-second clip from one of them.When I copy/rename them all, they overwrite with the latest one. Not random? Am I OK with this?How to preserve the raw video files?!Should I rename every video by its current (fragile!) data-modified? This would also standardize the file names, at least...Redo date arrays usingTotally inefficient, but it's working now.datetime
instead ofstr
.- Make a list of notable days, and highlight them in some way. (e.g. Color mask?)
How to only pull the last 1-2 seconds from a clip?Need to progressively concatenate.Make day-text a function of day-filename.Sort the files so they run in chrono order.Problem: it is EXTREMELY SLOW. What can I do?Instead of writing a video file iteratively, put everything in an array and concat. Also, [0,-1] was super slow.How to deal withWasn't fps, but size of the clip!fps
issue in both phone videos and webcam videos?Slot in the 'forgot.' video into final year video.Add a countdown: how many days left to make videos?Why?Anything after March 15: instead of sorting/organizing/naming by date-modified, need to do it all by filename.Post-March 15: concatting.Sorting the filenames, using the new filename convention.How to deal with December 31, 2014?Figure out how to skip over copying files (shutil
) that I already put inedited
.Figure out how to use the latest edit as the new base clip.Fix labels using%B
instead of%b
. Argh.- Make caption prettier/easier to see.
- Inspiration: Save the Children - "Most Shocking Second a Day Video"
- Inspiration: Cesar Kuriyama - TED Talk
- Q&A: StackOverflow - Missing dates in a sorted list
- Documentation: MoviePy
- Another worrying sign that I am a complete subconscious slave to fashion/the zeitgeist: xkcd - Art project