At peak beard, I took a few photos to animate.

Further experimentation with FFmpeg and the creation of some visual monstrosities. Visual cortex stimulated / confused? Check!

Timothy Lee Russell | 3/30/2018 12:49:09 PM

Further tests of FFmpeg and time, experiment 2

Next up, with some photos of me at peak beard, we have some Warholian masonry using what we learned last time with FFmpeg. In this case, we created 4 sub-directories, copied all the photos to each directory and then went through and explicitly deleted the photos we didn't want in that particular sequence. These animations range from 2 to 5 frames each.

Then, using PowerShell, we renamed the photos left in each directory, renumbering them from 1.

PS> ls *.jpg | foreach-object -begin { $count=1 } -process { rename-item $_ -newname "IMG_$count.jpg"; $count++ }

And then, we processed them with FFmpeg.

PS> .\ffmpeg -f image2 -framerate 24 -i 'IMG_%d.jpg' generatedVideo.gif

Embed the animated gifs we just made

We were then left with 4 animated gifs at 24 frames per second. We created 9 instances, duplicating a few of them and sized them the same, so an example of the first line of images represented in HTML looks something quite similar to this. Three images followed by a break before the next set of images starts.

<img style="width: 150px; height: 200px;" src="/media/1170/generatedvideo1.gif?width=150&amp;height=200" />
<img style="width: 150px; height: 200px;" src="/media/1170/generatedvideo2.gif?width=150&amp;height=200" />
<img style="width: 150px; height: 200px;" src="/media/1170/generatedvideo1.gif?width=150&amp;height=200" />
<br/>

Warholian masonry selfie



 

comments powered by Disqus