A midterm script or two...

So,  for this awesome midterm assignment, I created three scripts. Two are auxiliary, and can be reused: one extracts frames from a video file, and the other compiles them into a movie.  They are both user-input based, so the use can decide things like directory names, file types, etc., as well a the video/frames you're working on. The third script utilizes both, as well as taking the frames and applying a fun oil paint/sepia tone adjustment.  This script utilizes ImageMagick. I'm working on a counterpart that uses Netpbm, but it's a little more complicated, as I found out that it doesn't support the nice %d string formatting... sad. I just need to write a workaround up, which I'll probably do in Python, as its formatting process is similar. That will be another auxiliary script, so that whenever I want to use Netpbm on a group of frames, I'll just call it.


On a side note... seems to take up quite a lot of CPU power. Makes sense, but takes FOREVER to run. My poor laptop. Therefore, I'm including a sample frame of the end result, until I can sit and let the thing run to get the video.




























































Here are the links to my scripts:


extractFrames
compileFrames
cpPaintSepia


They are in .txt, because my website won't upload any fun extensions. ;]
The notes at the top of the file include the inputs the script needs to run.

0 comments:

Post a Comment