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

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Dec 15 16:30:23 CET 2005


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
>>
>
 




More information about the MEncoder-users mailing list