I’ve watched the episode Deja Q of Star Trek The Next Generation (Season 3 Episode 13),
anyway I’ve decided to use it as a custom 404 page for a small project I’m doing,
this aside, I’ve desired a fancy animated-GIF, with caption, to capture the entire thing…
- get getting the video source (YouTube is a good source, or any HD deluxe package of Star Trek The Next Generation for a better, higher quality result).
- For Video-Processing :: get VirtualDub (x64) and install it
here are some configuration (grey ones, are optional).
- set all scales to far right (increase buffer).
- set value of default frame rate to 0.5000, it means “capture an image every ½ of a second”.
- Video compression threads: change from 0 to 1.
- increase max-threads in combo-box below.
- ->3D accel
- check ON the Enable 3D video filter acceleration (VDXA)
- For Adding Caption- The Easy Way (As a Subtitle) ::
- get K-Lite x86 and x64 mega codec pack, install all ffdshow64 filters.
- copy content of C:\Program Files (x86)\K-Lite Codec Pack\Filters\ffdshow64 into
- restart VideoLan
now a little watching through the video shows that Jean-Luc Picard starts the meme stuff at
frame number 9287 (in time this is about 0:06:11.480 into from the very start),
and ends on 9333 (0:06:13.320)
- go to the start location, you can jump frames with [RIGHT Arrow] [LEFT Arrow] keys, press the ‘Mark In’ button.
- do the same with the end location (press the ‘Mark Out’ button.
- in the menu:
- File->Export->Image Sequence
- select a folder (probably best if it will be an empty one)
- select ‘PNG’ and remove the checkbox ‘Quick compress’
- press ‘OK’ and wait ’till done,
- open command-line (CMD) and change-dir to this folder.
- *make sure you have ‘imagemagick’ (a.k.a Image-Magic) in the PATH so you could write ‘convert.exe’ anywhere and get the executable running..
convert -background white -alpha remove -layers OptimizePlus -delay 6 *.png -loop 0 myAnimatedGif.gif
- * we are delaying 6/100 since we have a-lot of frames, and it will be reasonably smooth animation (also very high-quality)
- this will be now need to be processed again so the animation will be repeated back and forth
convert myAnimatedGif.gif -coalesce -duplicate 1,-2-1 -layers OptimizePlus -loop 0 backnforthAni.gif
- *the command is removing optimizations and applying back after processing, duplication (meaning adding..) frames.
- File->Export->Image Sequence
you can apply filters in VideoDub to shrink result before exporting the static-images
the subtitle (there are few) are very useful since you can modify the subtitle file and reload it, and export the result,
which is faster then using another program to image-process text into an image, and put it as an overlay to the video frame,
using subtitle will, naturally, be rendered into the video, but it will be on the higher quality since it will be done once..
very high-quality but huge file, so unless you’re serving it from localhost, with the rest of your project files,
– use fewer frames and higher delay.
– use different quality imagemagick-command-line-switch
I’m using 46 frames and 6/100 delay
half size image
nice, isn’t.. :)