Skip to content

Making Movies

gforney edited this page Oct 4, 2017 · 1 revision

Smokeview

A movie may be made of a Smokeview animation by creating a sequence of still images, one image for each time step and then combining these images into a movie file. A dialog box for creating movies, opened using the Dialogs>Files>Make Movies menu item, is activated if Smokeview finds the public domain program ffmpeg. Versions of ffmpeg for Windows, Linux and Mac platforms may be downloaded from https://www.ffmpeg.org/download.html.

The program ffmplay may also be downloaded which is used as the name suggests to play the movies you create with ffmpeg. After downloading ffmpeg and ffmplay, copy them to a directory that is in your PATH.

ffmpeg generates movies in avi, mp4 and wmv formats. You may also select the frame rate and bit rate to control the quality and size of the generated movie.

For the options as set in the dialog box below, Smokeview runs the following command

ffmpeg -y -r 10 -i thouse5_%04d.png -b 5000k  thouse5.avi

where 10 is the framerate and 5000k is the bitrate . Once you have created the individual frames from within Smokeview, you may run this command yourself with other options.

movie dialog box


png2yuv

An alternative way to make movies, at least on a linux computer is as follows:

png2yuv -f 25 -I p -j jobname_%04d.png | mpeg2enc -o jobname.m1v

where the individual images produced by Smokeview are named jobname_0389.png, for example. The string %04d indicates a field of 4 digits. This command also works for JPEGs, where you write jpg2yuv ...

Clone this wiki locally