Advertisement Jump to content
  • Advertisement

Yar

Sign in to follow this  
  • entries
    208
  • comments
    383
  • views
    66248

FilmStrip

Sign in to follow this  
H_o_p_s

131 views

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...

FilmStrip.zip[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.
SYNTAX: java FilmStrip [FRAMES DIRECTORY] [WIDTH] [HEIGHT] [OUTPUT FILE] ('show')

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  


0 Comments


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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net 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!