Choosing a method of encoding your animation for video playback is one of the most complicated and difficult problems you will face when you first start producing video. In general, most of the basic choices are flawed in some one and you will always have to make some kind of compromise.
First - some basics. The output of any rendering software is a single image, usually some kind of bitmap. In order to create an animation from a rendering program, you will need to create a sequence of these images. Bongo's “BongoRenderAnimation” command enables you to easily create this sequence ready to convert to a ready video format. However, it is not possible to view this sequence of images as a video until they have been encoded into one of the many video formats available.
It is crucially important to save the sequence of images once an animation is rendered because each type of video format throws away an enormous amount of data from the original renderings. Re-encoding a new video file from another means that you will reduce the quality each time you do it. This is especially true of older video formats such as Cinepak or Indeo.
Most video players are able to cope with a large number of video formats. However, it's the differences that are important. The most important video players are:
Windows Media Player: Video for Windows (AVI)*, MPEG, Windows Media (WMV)
Apple Quicktime: Video for Windows (AVI)*, MPEG, Quicktime Video (MOV)
As you can see, MPEG and AVI are the common format. However, these formats are quite dated and have a number of problems associated with them. In addition, it is not possible to run Windows Media Player (and therefore WMV files) on an Apple Mac.
Here you can find a Wikipedia article that compares different video file formats.
Here you can find a Wikipedia article about Video Players and what file format they support.
The AVI file format is the format of the Video for Windows system - a rather out of date video platform. It is not actually a method of encoding video - in fact the format uses something called a “codec” (Compressor/Decompresor) which needs to be installed on both the machine doing the encoding and also on the machine doing the playing. This is the main problem with AVI since in general is it only possible to rely on some very old codecs being present on playback machines.
That said, there are some excellent modern codecs available - including the popular DivX (www.divx.com ). However, in order to use these you must download and install the codec on both the encoding and the playback computer. This is fine if you have access to both machines, but if you are distributing your video you will inevitably get into problems with users who don't know how to view your animation.
It is best to avoid AVI completely unless you have complete control over all playback targets. That said, AVI is convienient since it can be produced automatically from Bongo.
DivX is also a good choice for transferring video to other formats (such as WMV or Quicktime) by re-encoding since it is very high quality. Don't try this with other older AVI codecs - the quality loss will be dramatic.
Note that the open source XVid codec is also a popular choice for AVI encoding, but is less prevelent on computers. www.xvid.org
MPEG is an evolving format supported by most players. The original MPEG1 format (supported by Bongo) is quite basic and only supports small image sizes and certain fixed frame rates. This limits its usablility somewhat, but if it fits your needs then this is an excellent format.
Modern MPEG4 video is very high quality - and is the technology behind DivX, Quicktime and WMV. However, tough licencing conditions have meant that the pure MPG format has never really caught on. It is tricky to find encoding software to produce this kind of video - however, high end programs such as Adobe Premiere should have no problem.
Windows Media is another excellent high quality format. However, the WMV format is only supported on Windows - you won't be able to play it (easily) on a Mac. That said, if your only target is Windows machines, you can be virtually guaranteed that any computer build during the last 8 years will play it - and many older ones too if they have used Windows Update to get the latest Windows Media Players.
The difficulty with this format is that you will need to use Windows Media Encoder - available as a free download from Microsoft - to produce these files from the original files. We have found that the best way of doing this is to re-encode from a DivX or Full Frames AVI.
Ogg is a free, open container format maintained by the Xiph.Org Foundation. The creators of the Ogg format state that it is unrestricted by software patents and is designed to provide for efficient streaming and manipulation of high quality digital multimedia.
Because the format is free, and its reference implementation is not subject to restrictions associated with copyright, Ogg's various codecs have been incorporated into a number of different free and proprietary media players, both commercial and non-commercial, as well as portable media players and GPS receivers from different manufacturers.
MPEG-4 Part 14 or MP4 is a digital multimedia container format most commonly used to store video and audio, but it can also be used to store other data such as subtitles and still images. Like most modern container formats, it allows streaming over the Internet.