News you won't see in controlled mainstream media.

Who's Online Now
1 members (Russ), 11,481 guests, and 1,562 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
December
S M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Left Sidebar Ad
This is another custom island. This one could be used for ads. This spot is one of the best places for ads on your site to be placed. This can be enabled/disabled on a per forum basis.
Popular Topics(Views)
419,408 DOES GOD EXIST?
324,402 Please HELP!!!
Support Our Forum
Previous Thread
Next Thread
Print Thread
Rate Thread
#49487 04/20/09 04:05 AM
Joined: Dec 1999
Posts: 30,868
Master Elite Member
****
Joining JPGs Into A Movie

Using mencoder

The explanation of the -mf option can be found below in the man page.

Creating a DivX4 file from all the JPEG files in the current dir:
mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi \*.jpg

Creating a DivX4 file from some JPEG files in the current dir:
mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi frame001.jpg,frame002.jpg

Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current dir:
mencoder -mf on:w=800:h=600:fps=25 -ovc copy -o output.avi \*.jpg

Creating an uncompressed file from all the PNG files in the current dir:
mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb -o output.avi \*.png

Note: Width must be integer multiple of 4, it's a limitation of the RAW RGB AVI format.

Creating a Motion PNG (MPNG) file from all the PNG files in the current dir:
mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy -o output.avi \*.png

Creating a Motion TGA (MTGA) file from all the TGA files in the current dir:
mencoder -mf on:w=800:h=600:fps=25:type=tga -ovc copy -o output.avi \*.tga


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)
Joined: Dec 1999
Posts: 30,868
Master Elite Member
****
How to turn a series of numbered images into an mpeg or avi movie using free software
This is mainly oriented towards Unix systems (MacOSX / Linux / Unix) but some things also work on Windows

It is assumed that the image files are something like name001.jpg, name002.jpg, name003.jpg, etc.
Here is a quick summary and links to fuller information: for more extensive discussion and other options see here, with specific information about using ffmpeg here and about ppmtompeg here.

Step 0: Getting the image files in the right format
It may be necessary to convert your image files before encoding them. For example, mencoder seems to need jpgs. The most convenient command for this is "convert", part of the ImageMagick package that comes with most Linux distributions and for the Mac can be downloaded using fink.

e.g.,
to convert a single ppm image to jpg: convert -quality 100 image123.ppm image123.jpg

For a series of images, use something like:

for f in *.ppm; do convert -quality 100 $f `basename $f .ppm`.jpg; done
(if this doesn't work on the command line, put into an ascii file e.g., script then run using 'sh script').
Option 1: Use 'convert'
convert is part of the ImageMagick package, which comes with many Linux distributions. For Mac it can be downloaded using fink.

mpeg: To convert images to an mpeg movie it is necessary to also install mpeg2encode, which is available from the same places (note, this may be in the 'unstable' branch of fink). To convert a series of numbered ppm files to an mpg movie:

convert -delay 6 -quality 95 test*ppm movie.mpg

-delay and -quality flags are optional. If -delay is set >4, it will add extra frames to make the movie run more slowly, thereby increasing the size of the file. The default quality is 75 and maximum is 100.

animated gif: e.g.,

convert -delay 20 test*ppm movie.gif

After this, the animated gif can be converted to mov format using quicktime pro.
Option 2: Use mencoder
To convert a series of jpg files to an avi movie that can be displayed by, for example, Quicktime Player with no add-ons, use:

mencoder "mf://*.jpg" -o movie.avi -ovc lavc -lavcopts vcodec=mjpeg

Notes:

* It can also make mpeg movies but these don't seem readable by Quicktime Player
* Other vcodecs may give more efficient or higher quality results and be playable on some players, but mjpeg is the only one I found to work with the standard Quicktime Player
* To download mencoder for MacOSX, particularly for Intel CPU, follow the link at http://ffmpegx.com/download.html .

Useful discussions are on Wikipedia and here.

Source: http://jupiter.ethz.ch/~pjt/makingMovies.html


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 8.0.1