elfs: (Default)
[personal profile] elfs

JWZ was one of the first people to originally mention the Orangina octopus somewhere where I could see it, although I didn't find the video until PZ Meyers pointed it out to me.

JWZ 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 [livejournal.com profile] dossy's as the best so far.

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.

Date: 2007-11-11 10:29 pm (UTC)
From: [identity profile] dossy.livejournal.com
Wow, you liked mine? Thanks. :-)

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. :-)

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 31st, 2025 04:04 pm
Powered by Dreamwidth Studios