ID:158371
 
I opened up an old project from years ago hoping to finish it up so we have something different here on BYOND. Though, I am a bit stumped on how to do this efficiently. In my project, there is a feature that will happen often, and that is a movie playing each time a character is on their way to the ring. What I'm trying to figure out is how to display the movie (titantron is the wrestling term). The screen for the movies is 11 tiles horizontal and 6 tiles vertical.

I don't want to be bothered to cut and crop in several icon states to display it. Can I use gif / png as a whole image? Is there an easier way? Also, what would be the best way to spawn the movie on that location (depending on the method)?
You can use an entire PNG as an icon, and then you can access portions of the PNG via icon states such as "1,3" and such.

However, I'd recommend programmatically cutting up the image into icon states. Normal PNGs don't support animation. If you could break up these movies into single-frame PNG files then a simple proc could generate animated DMI files from the frames. I'm sure there's already plenty of programs on the market to dump frames from a video into PNG files, else one shouldn't be too hard to write in, say, Python. Edit: Frame from AVI looks like it could do the trick, and so does AVIedit.

Scratch the above. I'd use FFmpeg to extract the frames. See here for more info.
In response to Kuraudo
Hmm, thanks Hie--...ehmm, Kuraudo. Very useful. I used Windows Movie Maker though to make BMP's.