Saturday, May 26, 2012

Make a movie with your kid! Part3

In order to combine all the frames into a movie (without the sound) we will use a program called mencoder, which comes with the mplayer: http://www.mplayerhq.hu/design7/news.html

All the frames from the directory RESULT3 will be combined into a single AVI file with the command:

mencoder "mf://RESULT3/*.png" -mf fps=14 -o movie.avi -ovc copy

The parameter fps passed above means "frames per second" - it should be chosen according to the original frame rate used by the ffmpeg.

The next thing we need is the soundtrack. I would propose to record the whole soundtrack with audacity - http://audacity.sourceforge.net/. Then we can easily edit the soundtrack adding special effects like for example echo.

It is possible that we will need to cut off a piece of the video. In order to do it type:

ffmpeg -i movie.avi -ss 1 -t 5 -c copy hallo.avi

This will start after the first second and cut off 5 seconds of the video. The result will be placed in the file hallo.avi. You can watch the movie using the totem video player (http://projects.gnome.org/totem/index.html). This will allow you to choose the correct time to cut the video off.

No comments:

Post a Comment