[MPlayer-dev-eng] using mencoder to make movie of graphics visualization frames.

Hugo González Monteverde hugonz-lists at h-lab.net
Sun Aug 14 02:56:13 CEST 2005


Hi Don,

It may be possible that someone is considering adding other image format 
support for mplayer. But I guess the best way would be just to convert 
them to PNG (lossless) so you get your data right. Remember also to 
scale the video frame (image) to a workable size. It is really pointless 
   to compose an AVI file made of frames which are 10 megapixels if no 
monitor would display  it unscaled.

As for conversion, I would recommend ImageMagick 
http://www.imagemagick.org/script/index.php It can be batched, as it is 
command line, and even can be plugged into your program as it exposes an 
API.

 From the mencoder man page and altered for png...

mencoder "mf://*.png" -mf fps=25 -o output.avi -ovc lavc -lavcopts 
vcodec=mpeg4

I hope I got what you wanted to do. As for filters, you could scale, but 
it would be better to scale the image as you convert it.

Hugo


don fisher wrote:
> I am using OpenDX to generate sequences of images showing velocities 
> etc. from scientific simulation studies. The simulations are lengthy, so 
> a multiframe file sequence would exceed the allowable file size on a 32 
> bit linux system.
> 
> The package will make an array of single frame tiff files. Mencoder 
> accepts multiframe sequences of JPEG, PNG, TGA and SGI formats. My goal 
> is to optimize image quality by presenting uncorrupted data to the 
> encoder. That eliminates JPEG. Section 7.5 of the MPlayer page includes 
> the SGI in the title, but is not mentioned anywhere else. I do not know 
> how to convert from Tiff to PNG or TGA.
> 
> I know how to write code etc, so suggestions on a filter would be 
> welcome. Is there any plan (or has someone already done it) to include 
> Tiff in the list of multiframe readers? I am sure other persons must 
> have approached this problem before. Any assistance would be appreciated.
> 
> First posting to this list. I hope it is within scope.
> 
> don




More information about the MPlayer-dev-eng mailing list