Fisher Price's My First LJ Icon
Nov. 10th, 2007 11:22 pmJWZ then issued a challenge to turn the squirting octopus scene into an LJ icon. I have, uh, attempted to rise to the challenge, and my contribution is visible there on the right. If you go to JWZ's LJ you'll see many worthy variations, although right now I'm holding out for
To make this, I first cut it out with mplayer:
mplayer -vo png -ss 00:52 -endpos 00:56
Then created a common map with netpbm:
for i in *.png ; do pngtopnm $i > $i.pnm ; done pnmcat -lr 0*.pnm | pnmcolormap 48 > map48.pnm
Then created a collection of cut, scaled, and remapped gifs (I determined the dimensions of my cut with GIMP):
for i in *.png ; do pngtopnm $i | pnmcut -l 93 -t 34 -w 243 -h 243 | \ pnmscale -xy 100 100 | pnmremap -mapfile=map48.pnm | \ ppmtogif > ../$i.gif ; echo $i ; done
And then assembled them together with gifsicle:
gifsicle -d 24 --loop=forever -D bg -O2 *.gif > anim.gif
I did some judicious removal of frames with rm (I could always rerun the script to regenerate them) and it took a little tweaking, but comes in at 38,410 bytes. Because there are so many dropped frames, I slowed it down a little, from 160ms to 240ms. I think the frame jerkiness suggests watching something in slo-mo, and tweaking the speed emphasizes that, so the experienced viewer won't be annoyed by the painfully low frame rate.
no subject
Date: 2007-11-11 07:32 am (UTC)no subject
Date: 2007-11-11 07:56 am (UTC)no subject
Date: 2007-11-11 10:29 pm (UTC)I also used free tools:
1) ffmpeg, to convert from FLV to MPEG1/AVI
2) VirtualDub, w/ cropping and the "resize" and "sharpen" filters. Selected the frames I wanted, cropped and then resized down the larger dimension to 100 and maintained aspect ratio, then applied the sharpen filter to clean it up. Extracted the frames w/ "Export -> Image sequence" to generate each frame as a separate TGA file
3) GIMP 2.4, create a new image and then "Open as Layers" all the TGA files, then remove some frames and use "Image -> Mode -> Indexed..." to reduce to a 32-color palette, "Filters -> Animation -> Optimize (for GIF)" then Save a Copy as an animated GIF.
I decided to grab the 20-odd frames before the Octopus juice squeeze bit in the video to make another LJ usericon that I'm calling the "Orangina rabbit-kakke" ... I'm sure you understand why. :-)
no subject
Date: 2007-11-12 12:09 am (UTC)