Advertisement Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  


There was a thread on how to take an AVI and convert it into a FrameStrip BMP file. I said that it would be a simple program to make, so I did. Using mplayer to generate the frames, I wrote a java app to convert those frames into one big long PNG file.

'mplayer [some video source like a file] -z 9 -vo png' Converts to PNG...[3k]

Its a simple java program to take the frames from mplayer and convert them into a single FilmStrip PNG file. You can then take this file and convert it to BMP if you'd like.

NOTES: [OUTPUT FILE] is always a png file, so name it correctly.
[FRAMES DIRECTORY] is a folder with PNG files named 0.png to X.png
[WIDTH] and [HEIGHT] are the width and height of one frame.
('show') should only be used on a small number of frames. Final
Image is displayed in a JFrame (non-scrolling)

SAMPLE: java FilmStrip ~/Desktop/FilmStrip/frames 640 480 filmstrip.png

Thought that this would also be usefull for other people so here you go.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!