CrystalMaker provides industry-leading digital video capabilities, allowing you to record video as you work, build, edit and save animations - and export rotatable QTVR objects. The technology used to do this is called QuickTime®. This article provides some general tips for making the most of QuickTime's powerful video compression settings, and includes the results of our own tests on video output quality and file size.
22 July 2011: This document has been updated to take into account the new H.264 video support available in CrystalMaker 8.5 for Mac and 2.5 for Windows.
|
|
Video CompressionMany people are familiar with the notion of compression, in the context of making computer images smaller. Common image compression formats include the ubiqutous "JPEG" files, found on most websites. With video, the problem of file sizes is much worse than with static images. Videos need to display many images per second, so the file sizes quickly mount up. Developers have come up with a wide range of algorithms for compressing these video sequences - some algorithms are just like those used for compressing still images; others are more advanced, and compare a sequence of frames, so that only the changes between frames need to be saved. Controlling QuickTime
Video compression button CrystalMaker's Video Palette (Window > Palette > Video) includes a Compression Settings button (with an "accordion" icon). Pressing this brings up a dialog that's crammed with controls. CrystalMaker is giving you full access to the extraordinary wealth of control settings provided by QuickTime. These include video frame rate, output size/quality controls - and a choice of many different video compressors, also known as "codecs". The question is: which codec should you use - and what particular settings are going to work best when recording your video? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CrystalMaker's Compression Settings dialog. The compression type ("codec") is displayed in the popup menu at the top of the dialog and the output quality can be previewed in the bottom right-hand corner |
Criteria for Choosing the Best Video SettingsThe key factors you need to consider when recording video are: image quality and file size. Unfortunately, these two factors tend to oppose each other, so that the best image quality tends to result in the worst (i.e., highest) file sizes. However, some codecs are more efficient than others, so is possible to make some general recommendations. By default, CrystalMaker uses the Animation compressor. This is a good, safe choice. It is designed to work well with images that contain lots of sharp edges: the type of "synthetic" images used in programs such as CrystalMaker. The downside is that this compressor isn't particularly efficient. By contrast, more efficient video compressors - such as the popular H.264 codec - don't work very well with CrystalMaker's images. These type of compressors are designed for natural images - movies of real objects, where there are softer transitions, and where things don't change very much from frame to frame. If you try to using this type of compressor with "hard" synthetic objects, then you'll end up with fairly poor results. Video TestingTo help you choose a good, general purpose codec, we undertook a detailed series of tests, using a "typical" CrystalMaker file, and comparing the file sizes and video quality for the different compressors/settings used. Test Settings.We used CrystalMaker 8.5 for Mac, displaying the Fullerene ("bucky ball") structure as a ball-and-stick model, viewed in red/blue colour stereo, in a graphics pane with dimensions 800 × 600 pixels and using millions of colours. For each test, the structure was rotated through 60 frames (at 6° intervals), making a complete revolution. We used the highest-quality rendering mode (Rendering > Full Rendering Mode), to give smooth bonds. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Results of video tests, showing the output file size (1MB = 1,000,000 bytes) and our (subjective) quality ranking. |
(*) Subjective quality ranking, based on visual inspection of each video, where 1=best. DiscussionWe should begin our discussion with a very-important caveat. These tests were specific to CrystalMaker - and one structural model in particular. They should not be interpreted in isolation. Using different models will give different results. In attempting to rank the different codecs, we put particular emphasis on the appearance of video artifacts, such as stripes or banding. These were felt to be more objectionable than subtle blurring of fine detail - at least, from the perspective of having a model rotating, where spots, stripes and bands are clearly evident, whereas the odd blur here and there is easily missed. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Examples of output quality for different compressor settings used. |
In the tests we carried out, output file sizes varied from 0.3 to 86 MB - that's a factor of 286 difference! The most interesting observation, however, was that "bigger" wasn't necessarily better. In particular, the video codecs used by digital video (DV) cameras fared particularly poorly in these tests - resulting in large file sizes with very-poor video quality. The best performing codec in these tests was the H.264 codec, and we'd recommend the Millions of Colours setting, with the output quality set to Medium or High. One would need to be careful as the number of sharp edges increases - e.g., with polyhedra or stick displays. Comparison with Earlier TestsNote that in our earlier tests, carried out before we had incorporated support for the H.264 multiple-frame compression, we had found the results from H.264 to be rather disappointing. Things have moved on from then, and this video compressor - as used in CrystalMaker - now shows an impressive combination of size/quality output. ConclusionIn conclusion, we've found that for a typical CrystalMaker structure, the best compressor to use is probably the H.264 compressor, set to display Millions of Colours and using a Medium to High quality output. Other models may require slightly-different settings, but this table of results should give a good general guide as to which compressors work best |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||