DigitaldogmaMain Page | About | Help | FAQ | Special pages | Log in

MJPEG Tools

At a lanparty awhile back I had setup the webcam to take pictures every few minutes, so afterwards I wanted to create a flip book type movie when them.

The camera saved the images with a timestamp as the filename, but I needed to rename them to a more standard format. I did so with this command:

count=0; for item in `find . -type f`; do mv $item frame-`printf "%05d" $count`.jpg; count=$(( $count + 1 )); done (isn't bash grand?)


I used MJPEG Tools with this command to convert the image files into an mpeg movie:

jpeg2yuv -f 5 -j frame-%05d.jpg -I p | mpeg2enc -a 1 -F 5 -o movie.mpg

This first converst the jpg files into the yuv format

Retrieved from "http://digitaldogma.org/index.php/MJPEG_Tools"

This page has been accessed 603 times. This page was last modified 16:11, 4 January 2005.


Browse
Main Page
Life Events
Tech Stuff
Photo Gallery
Current Resume
MP3 Database
Recent changes
Random page
Donations
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...

Valid XHTML 1.0 Transitional

Viewable With Any Browser

Powered by MediaWiki