[MEncoder-users] Trouble when making a movie from *.png files

Mario Valle mvalle at cscs.ch
Thu Dec 15 16:51:58 CET 2005


You know the phrase: "this is left as an exercise to the student..."
Anyway:

file_out=x2.avi
fps=24
obr=1200
opt="mbd=2:keyint=132:cmp=2:subcmp=2:dia=2:mv0:last_pred=3"
codec="msmpeg4v2"

mencoder -ovc lavc -lavcopts \
vcodec=$codec:vbitrate=$obr:vpass=1:$opt:turbo -nosound -mf \
fps=$fps:type=png   -o NUL: mf://*.png
mencoder -ovc lavc -lavcopts \
vcodec=$codec:vbitrate=$obr:vpass=2:$opt -nosound -mf \
fps=$fps:type=png -o $file_out mf://*.png

Ciao
		mario

Nils Wagner wrote:
> Mario Valle wrote:
>>You should use codec msmpeg4v2
>>or install a mpeg4 codec like divx or ffdshow.
>>I normally work with this line (from a windows script)
>>
>>set file_out=x2.avi
>>set fps=24
>>set obr=1200
>>set opt="mbd=2:keyint=132:cmp=2:subcmp=2:dia=2:mv0:last_pred=3"
>>set codec="msmpeg4v2"
>>
>>mencoder -ovc lavc -lavcopts
>>vcodec=%codec%:vbitrate=%obr%:vpass=1:%opt%:turbo -nosound -mf
>>fps=%fps%:type=png   -o NUL: mf://*.png
>>mencoder -ovc lavc -lavcopts
>>vcodec=%codec%:vbitrate=%obr%:vpass=2:%opt% -nosound -mf
>>fps=%fps%:type=png -o %file_out% mf://*.png
>>
>>Hope it helps
>>            mario
> Mario,
> 
> Thank you for your reply. Unfortunately, it doesn't work for me. I am on
> Linux ...
> 
> Cheers,
>                    Nils
> 
>>Nils Wagner wrote:
>>>DMITRY GORODNITSKY wrote:
>>>>I am using following and it works on all platforms
>>>>/usr/bin/mencoder mf://*.png -mf type=png:fps=30 -of avi -ffourcc
>>>>DX50  -ovc lavc -oac mp3lame -lameopts preset=medium -lavcopts 
>>>>vcodec=mpeg4:autoaspect:vstrict=1 -audiofile 
>>>>/DATA/preview/Test/v_0_[58-153].jpg.avi/v_0_short2.wav.ogg -o 
>>>>/DATA/preview/Test/v_0_[58-153].png.avi/v_0_[58-153].png.avi
>>>>
>>>I followed your advice, but if try to open the avi file with Windows
>>>Media Player  a window pops up
>>>
>>>Windows Media Player cannot play the file. The file may be formatted
>>>with an unsupported codec, or the Internet security setting on your
>>>computer is set too high. Lower your browser's security setting, and
>>>then try again.
>>>
>>>Any idea ?
>>>
>>>Nils
>>>
>>>>Nils Wagner <nwagner at mecha.uni-stuttgart.de> wrote:  Hi all,
>>>>
>>>>I have used mencoder to convert a series of *.png files to a movie.
>>>>
>>>>http://matplotlib.sourceforge.net/faq.html#MOVIE
>>>>
>>>>My question is:
>>>>
>>>>Is the generated movie (*.avi *.mpg) platform independent, that is
>>>>can I
>>>>use it on both platforms (Windows & Linux) ?
>>>>
>>>>The included animation in PDF using LaTeX doesn't work.
>>>>http://darkwing.uoregon.edu/~noeckel/PDFmovie.html
>>>>
>>>>I tried both versions (see below) on a Linux box. mplayer can open the
>>>>movies without any problem. If I try to use them under Windows it
>>>>failed.
>>>>
>>>>#os.system("mencoder 'mf://_tmp*.png' -mf type=png:fps=10 \
>>>>#  -ovc lavc -lavcopts vcodec=mjpeg -oac copy -o animation.mpg")
>>>>os.system("mencoder mf://_tmp*.png -mf w=800:h=600:fps=25:type=png -ovc
>>>>raw -oac copy -o animation.avi")
>>>>
>>>>How can I resolve this problem ?
>>>>
>>>>Nils
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>MEncoder-users mailing list
>>>>MEncoder-users at mplayerhq.hu
>>>>http://mplayerhq.hu/mailman/listinfo/mencoder-users
>>>>
>>>>
>>>>_______________________________________________
>>>>MEncoder-users mailing list
>>>>MEncoder-users at mplayerhq.hu
>>>>http://mplayerhq.hu/mailman/listinfo/mencoder-users
>>>>
>>>
>>> 
>>>
>>>
>>>_______________________________________________
>>>MEncoder-users mailing list
>>>MEncoder-users at mplayerhq.hu
>>>http://mplayerhq.hu/mailman/listinfo/mencoder-users
>>>
>  
> 
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mencoder-users
> 

-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the MEncoder-users mailing list