2-14, held a brief meeting explaining the basics of video encoding, the inspiration behind the project, and presenting what has been done so far. The script attached depends on wxPython and the vlc mediacontrol bindings for python - to get these, vlc must be compiled from source with the following flag included in the ./configure command:
--enable-mediacontrol-python-bindings
The script takes advantage of vlc's difficulty in seeking through wmv files, and presents these artifacts proudly.
At the top of the script you'll find the "dir" variable, which should be the full path to the wmv files you want to use for this, and a few other useful flags (all set either to 0 or 1) - FullScreen, UseTimer, which determines whether the script's internal clock should be used to seek through videos and skip to the next video, and SizeConst, which is a constant roughly representing the number of bytes per milisecond the video uses for encoding. For videos encoded in the 1000kbps range I've been using 75 as SizeConst - all this is used for is to determine how deep into the video we can skip. A smaller value will only seek through the earlier parts of the video, and a value too large will run the risk of overseeking, which does nothing.
Forthcoming will be more detailed instructions on how to install all dependencies, including ffmpeg, vlc w/ python bindings, and wxPython, as well as some other goodies to be used in the audio side of the program. For now, the user interface is fairly simple - hitting tab will randomly seek through the current video, piling up artifacts; hitting space will skip to the next video, and the escape key exits out of the program (don't forget this one). I'm looking into interfacing with the wiimote for controlling these functions & more but it remains to be seen if I can (1) come up with a sensible way to interpret wiimote data and (2) figure out how to keep the wiimote in the gallery without having it stolen.
-
Screenshot
- synth1.py - First simple version of the video script