This winter I bought a new digital camera, the Canon A570 IS. It was a great purchase. It was inexpensive, takes excellent pictures, has optical image stabilization, nice manual settings, uses AA batteries, and has very little lag between when you press the shutter button and when it actually takes the picture. It’s movie mode is also great, although it takes MJPEG videos, which are very large. I spent a very long time figuring out the best way to edit the videos and then compress them to some standard format. I chose Cinelerra as my video editor, and Microsoft MPEG4-v2 as my compression codec.
Unfortunately the movies do not load correctly into Cinelerra the way the camera saves them – the audio is messed up. I found I had to run the movies through mencoder using this command before I could open them in Cinelerra:
mencoder input.avi -ovc copy -oac pcm -o output.avi
When I was done composing my movie in Cinelerra, I export the movie using the “Quicktime for Linux” file format and choose “Uncompressed RGB” from the video setup menu and “Twos Complement” from the audio setup. The movie that gets rendered is huge, but then I compress it with ffmpeg to MPEG4 using this command. The resulting video will play in Windows Media Player. qscale sets the quantization level, and is an alternative to setting a static bitrate:
ffmpeg -i input.avi -f avi -b 2000k -qscale 5 -vcodec msmpeg4v2 -acodec mp3 -ar 48000 -ab 128k output.avi