newish with linux, need help with encoding an mpeg out of multiple pngs
so my problem is basically a "logic" one I think. the command that seems to work is:
mencoder mf://*.png -mf w=352:h=240:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
but some of the .pngs need to be repeated, if that makes sense. (context: recorded a .xaf animation of XaoS fractal renderings, at some points during the animation there's no movement, so it generates a .par file which has the exact frames, ok bad at explaining, here's a section from animation1.par):
animation10320.png
animation10321.png
animation10322.png
animation10323.png
animation10324.png
animation10325.png
animation10326.png
animation10327.png
animation10328.png
animation10329.png
animation10330.png
animation10330.png
animation10330.png
animation10330.png
animation10330.png
so you see animation10330.png needs to be inserted multiple times.
okay, the solution I think is going to be something like :
mencoder mf://`cat animation1.par` -mf w=352:h=240:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
(which doesn't work) or somehow cat animation1.par | mencoder ............ but I'm not sure. thanks for any help!
mencoder mf://*.png -mf w=352:h=240:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
but some of the .pngs need to be repeated, if that makes sense. (context: recorded a .xaf animation of XaoS fractal renderings, at some points during the animation there's no movement, so it generates a .par file which has the exact frames, ok bad at explaining, here's a section from animation1.par):
animation10320.png
animation10321.png
animation10322.png
animation10323.png
animation10324.png
animation10325.png
animation10326.png
animation10327.png
animation10328.png
animation10329.png
animation10330.png
animation10330.png
animation10330.png
animation10330.png
animation10330.png
so you see animation10330.png needs to be inserted multiple times.
okay, the solution I think is going to be something like :
mencoder mf://`cat animation1.par` -mf w=352:h=240:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
(which doesn't work) or somehow cat animation1.par | mencoder ............ but I'm not sure. thanks for any help!
