[mesa-users] command to make movies out of png/jpeg graphs

Raphael Hirschi r.hirschi at epsam.keele.ac.uk
Thu Dec 15 07:21:39 EST 2011


Dear All,

Here is the command we use to create avi movie using mencoder:

mencoder mf://*.png -mf fps=10:type=png -ovc copy -oac copy -o 
/fondue/hirschi/ledoux_timescale_core.avi

More options on this webpage:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html

Raphael

PS: copy of webpage below in case it disappears:

6.8. Encoding from multiple input image files (JPEG, PNG, TGA, etc.)

MEncoder is capable of creating movies from one or more JPEG, PNG, TGA, 
or other image files. With simple framecopy it can create MJPEG (Motion 
JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.

Explanation of the process:

MEncoder decodes the input image(s) with libjpeg (when decoding PNGs, it 
will use libpng).

MEncoder then feeds the decoded image to the chosen video compressor 
(DivX4, Xvid, FFmpeg msmpeg4, etc.).

Examples. The explanation of the -mf option is in the man page.

Creating an MPEG-4 file from all the JPEG files in the current directory:

mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \
-lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
Creating an MPEG-4 file from some JPEG files in the current directory:

mencoder mf://frame001.jpg,frame002.jpg -mf w=800:h=600:fps=25:type=jpg \
-ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
Creating an MPEG-4 file from explicit list of JPEG files (list.txt in 
current directory contains the list of files to use as source, one per 
line):

mencoder mf://@list.txt -mf w=800:h=600:fps=25:type=jpg \
-ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
You can mix different types of images, regardless of the method you use 
\97 individual filenames, wildcard or file with list \97 provided of course 
they have the same dimensions. So you can e.g. take title frame from PNG 
file, and then put a slideshow of your JPEG photos.

Creating a Motion JPEG (MJPEG) file from all the JPEG files in the 
current directory:

mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy 
-o output.avi
Creating an uncompressed file from all the PNG files in the current 
directory:

mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy 
-o output.avi
Note

Width must be integer multiple of 4, it is a limitation of the RAW RGB 
AVI format.

Creating a Motion PNG (MPNG) file from all the PNG files in the current 
directory:

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

mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy 
-o output.avi

On 15/12/11 01:10, mesa-users-request at lists.sourceforge.net wrote:
> Send mesa-users mailing list submissions to
> 	mesa-users at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.sourceforge.net/lists/listinfo/mesa-users
> or, via email, send a message with subject or body 'help' to
> 	mesa-users-request at lists.sourceforge.net
>
> You can reach the person managing the list at
> 	mesa-users-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mesa-users digest..."
>
>
> Today's Topics:
>
>     1. Re: mesa 3792 now current (Pieter Degroote)
>     2. Re: mesa 3792 now current (Aaron Dotter)
>     3. Re: login scripts (Richard Townsend)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Dec 2011 13:10:30 -0800
> From: Pieter Degroote<pieterd at ster.kuleuven.be>
> Subject: Re: [mesa-users] mesa 3792 now current
> To: mesa-users at lists.sourceforge.net
> Message-ID:<4EE910C6.4030300 at ster.kuleuven.be>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Bill,
>
> The astero package fails when updating in my installation. I'm working
> on 32-bit Kubuntu 11.10 (so no SDK, sorry!). I have no library or
> compiler issues since I could install everything a few weeks back. This
> is the log of my actions:
>
> 1. I'm upgrading with svn via "svn update -r 3792"
> 2. I do a ./clean and ./install
> 3. It complained about my kap_data, asked me to delete it, so I deleted
> that folder.
> 4. I did a ./clean and ./install again.
> 5.  The astero package failed comparing test_output with tmp.txt
> 6. I did a ./clean and ./install again (just do be sure)
> 7. I get the same message:
>
> ...
> mesa/adipls has been made, tested, and exported.
>
> ************************************************
>
> /home/pieterd/programs/mesa/astero
> building astero package.
>
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form
> ../../../astero/run_star_adipls/star_adipls_support.f
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form ../src/run_star_extras.f
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form
> ../../../astero/run_star_adipls/run_star_extras_adipls.f
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form ../../../star/test/src/run_star.f
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form ../src/run.f
> gfortran -fno-range-check  -fopenmp -fbounds-check -g
> -I../../../include  -c -ffree-form
> ../../../astero/run_star_adipls/star_adipls_support_procs.f
> gfortran -fopenmp -o ../star \
>           run_star_extras.o run_star_extras_adipls.o run_star.o run.o
> -L../../../lib -lstar -ldiffusion -lionization -lmlt -latm -lkaro
> -lcolors -leos -lkap -lnet -lscreen -lrates -lreaclib -lweak -lneu
> -lchem -linterp_2d -linterp_1d -lnum -lutils -lalert -lconst -lmtx
> -lmesaklu -lmesalapack -lmesablas -L/usr/lib/pgplot5 -lpgplot -lX11 -lpng  \
>           star_adipls_support.o -ladipls star_adipls_support_procs.o
>
> 5c5
> <       1    0.2715408114617294E-03   -0.1210601832184118E-06
> 0.0000000000000000E+00
> --- field 3     relative error 4.15e-02
>   >       1    0.2715405895781906E-03   -0.1162346679831949E-06
> 0.0000000000000000E+00
> 6c6
> <       2    0.3433970493707031E-03   -0.1495725015752948E-06
> 0.0000000000000000E+00
> --- field 3     relative error 2.05e-02
>   >       2    0.3433967686240131E-03   -0.1465674430847568E-06
> 0.0000000000000000E+00
> 7c7
> <       3    0.4341861725531719E-03   -0.1869277613700836E-06
> 0.0000000000000000E+00
> --- field 3     relative error 1.01e-02
>   >       3    0.4341858170268709E-03   -0.1850553955812315E-06
> 0.0000000000000000E+00
>
> /home/pieterd/programs/mesa/astero/test
> TEST FAILED -- compare test_output to tmp.txt
>
>
> /home/pieterd/programs/mesa/astero
> ./build_and_test FAILED
>
>
>
>
>
>
>
>
>
>   From the looks of it, the input and output are not too different.
>
> Many thanks,
> Pieter
>
>
>
>
>
>
> On 12/13/2011 01:43 PM, Bill Paxton wrote:
>> Fixes a bug with the test when installing the astero package.
>> (the package was fine; the test had a bug!)
>>
>> -B
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Systems Optimization Self Assessment
>> Improve efficiency and utilization of IT resources. Drive out cost and
>> improve service delivery. Take 5 minutes to use this Systems Optimization
>> Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Dec 2011 16:19:37 -0500
> From: Aaron Dotter<aaron.dotter at gmail.com>
> Subject: Re: [mesa-users] mesa 3792 now current
> To: Pieter Degroote<pieterd at ster.kuleuven.be>
> Cc: mesa-users at lists.sourceforge.net
> Message-ID:
> 	<CAN5--jMaZO+p7E22vEc2wJwOVKZ=a77gZNGFNkfpS81XMx=MRA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Peter,
>
> This is a case where you can override the install script if you trust own
> results.  As you say, the ndiff comparison suggests that the output of your
> installation is not too different from the default.
>
> The simplest way to do this ( assuming you trust your own results! ) is to
> cd adipls/test and redirect the output from the test program, ./tester>
> test_output, to "test_output".
>
> Then cd back to the top-level and run the install script again.  If you
> prefer to keep the test results in their original form but want to proceed
> with the install, you can manually compile and export the remaining modules
> listed in the main install script after adipls.
>
> Aaron
>
>
> On Wed, Dec 14, 2011 at 4:10 PM, Pieter Degroote
> <pieterd at ster.kuleuven.be>wrote:
>
>> Hi Bill,
>>
>> The astero package fails when updating in my installation. I'm working
>> on 32-bit Kubuntu 11.10 (so no SDK, sorry!). I have no library or
>> compiler issues since I could install everything a few weeks back. This
>> is the log of my actions:
>>
>> 1. I'm upgrading with svn via "svn update -r 3792"
>> 2. I do a ./clean and ./install
>> 3. It complained about my kap_data, asked me to delete it, so I deleted
>> that folder.
>> 4. I did a ./clean and ./install again.
>> 5.  The astero package failed comparing test_output with tmp.txt
>> 6. I did a ./clean and ./install again (just do be sure)
>> 7. I get the same message:
>>
>> ...
>> mesa/adipls has been made, tested, and exported.
>>
>> ************************************************
>>
>> /home/pieterd/programs/mesa/astero
>> building astero package.
>>
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form
>> ../../../astero/run_star_adipls/star_adipls_support.f
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form ../src/run_star_extras.f
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form
>> ../../../astero/run_star_adipls/run_star_extras_adipls.f
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form ../../../star/test/src/run_star.f
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form ../src/run.f
>> gfortran -fno-range-check  -fopenmp -fbounds-check -g
>> -I../../../include  -c -ffree-form
>> ../../../astero/run_star_adipls/star_adipls_support_procs.f
>> gfortran -fopenmp -o ../star \
>>          run_star_extras.o run_star_extras_adipls.o run_star.o run.o
>> -L../../../lib -lstar -ldiffusion -lionization -lmlt -latm -lkaro
>> -lcolors -leos -lkap -lnet -lscreen -lrates -lreaclib -lweak -lneu
>> -lchem -linterp_2d -linterp_1d -lnum -lutils -lalert -lconst -lmtx
>> -lmesaklu -lmesalapack -lmesablas -L/usr/lib/pgplot5 -lpgplot -lX11 -lpng
>>   \
>>          star_adipls_support.o -ladipls star_adipls_support_procs.o
>>
>> 5c5
>> <       1    0.2715408114617294E-03   -0.1210601832184118E-06
>> 0.0000000000000000E+00
>> --- field 3     relative error 4.15e-02
>>   >       1    0.2715405895781906E-03   -0.1162346679831949E-06
>> 0.0000000000000000E+00
>> 6c6
>> <       2    0.3433970493707031E-03   -0.1495725015752948E-06
>> 0.0000000000000000E+00
>> --- field 3     relative error 2.05e-02
>>   >       2    0.3433967686240131E-03   -0.1465674430847568E-06
>> 0.0000000000000000E+00
>> 7c7
>> <       3    0.4341861725531719E-03   -0.1869277613700836E-06
>> 0.0000000000000000E+00
>> --- field 3     relative error 1.01e-02
>>   >       3    0.4341858170268709E-03   -0.1850553955812315E-06
>> 0.0000000000000000E+00
>>
>> /home/pieterd/programs/mesa/astero/test
>> TEST FAILED -- compare test_output to tmp.txt
>>
>>
>> /home/pieterd/programs/mesa/astero
>> ./build_and_test FAILED
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>   From the looks of it, the input and output are not too different.
>>
>> Many thanks,
>> Pieter
>>
>>
>>
>>
>>
>>
>> On 12/13/2011 01:43 PM, Bill Paxton wrote:
>>> Fixes a bug with the test when installing the astero package.
>>> (the package was fine; the test had a bug!)
>>>
>>> -B
>>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------------
>>> Systems Optimization Self Assessment
>>> Improve efficiency and utilization of IT resources. Drive out cost and
>>> improve service delivery. Take 5 minutes to use this Systems Optimization
>>> Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
>>> _______________________________________________
>>> mesa-users mailing list
>>> mesa-users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>>
>> ------------------------------------------------------------------------------
>> Cloud Computing - Latest Buzzword or a Glimpse of the Future?
>> This paper surveys cloud computing today: What are the benefits?
>> Why are businesses embracing it? What are its payoffs and pitfalls?
>> http://www.accelacomm.com/jaw/sdnl/114/51425149/
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Wed, 14 Dec 2011 19:10:27 -0600
> From: Richard Townsend<townsend at astro.wisc.edu>
> Subject: Re: [mesa-users] login scripts
> To: zahra motahar<zamistern at gmail.com>
> Cc: mesa-users at lists.sourceforge.net
> Message-ID:<0265EB2A-FD04-4B11-B2E4-30B2614AC015 at astro.wisc.edu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You need to just add the same sequence of commands (as used interactively) to the appropriate login script file. To find out which file to edit, first you must find out which shell you are using:
>
> echo $SHELL
>
> Common shells are as follows:
>
> sh - Bourne shell; edit ~/.profile
> bash - Bourne Again shell; edit ~/.bashrc
> csh - C shell; edit ~/.cshrc
> tcsh - TC shell; edit ~/.tcshrc
>
> cheers,
>
> Rich
>
> On Dec 13, 2011, at 4:32 AM, zahra motahar wrote:
>
>> Dear MESA friends,
>>
>> How can I set environment variables in my login scripts to avoid repeating the steps every time ? (I use the Fedora 16 linux.)
>>
>> Bests,
>> Zahra
>> ------------------------------------------------------------------------------
>> Cloud Computing - Latest Buzzword or a Glimpse of the Future?
>> This paper surveys cloud computing today: What are the benefits?
>> Why are businesses embracing it? What are its payoffs and pitfalls?
>> http://www.accelacomm.com/jaw/sdnl/114/51425149/_______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 7343 bytes
> Desc: not available
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Server Consolidation
> Server virtualization is being driven by many needs.
> But none more important than the need to reduce IT complexity
> while improving strategic productivity.  Learn More!
> http://www.accelacomm.com/jaw/sdnl/114/51507609/
>
> ------------------------------
>
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>
> End of mesa-users Digest, Vol 28, Issue 9
> *****************************************




More information about the Mesa-users mailing list