- français
- English
How To
Tips are given here for the following subjects:
- Display images, movies and presentations using the display sever
- Perform off-line rendering using the render server
A. Create a high-quality, high-resolution movie
For best viewing (for example, on the CoViz facility), movies are required to be of high resolution, generally UHD (3840x2160 pixels) or FullHD (1920x1080 pixels). At the same time, it is required that the file size not be excessive. The following aspects are important to choose appropriately:
- file type (generally MPEG-4 or QuickTime are most suitable)
- codec (the recent H.264 codec provides high-quality compression/decompression)
- frame rate (for scientific animations, generally 15 images/sec is adequate)
The following information is provided as a guideline for the implementation of the above choices.
- using QuickTime 7 Pro
(available on Mac OS X and Windows)
Complete details are provided in the Technical Note and the QuickTime User's Guide (see Chapters 2-4).
- Produce a series of images using your application or visualization software (e.g. ParaView, VMD). While the software may enable the direct export of a movie file, this is generally not the optimal method. (For a stereo movie, two series of images are required, one for the left eye and the other for the right.)
- Read the images into QuickTime 7 Pro using File/Open Image Sequence ...
- Select Export, and the "Movie to MPEG-4". Similar file control is possible for MPEG-4 and QuickTime file types, and both can provide good quality movies.
- Select "Options" and then the following values:
- Video Format: H.264
- Data Rate: Determines file quality and size. Adjust so that file size (shown at bottom of window) is not excessive. (For UHD format, 15000 kbits/s may be appropriate.)
- Optimized for: Download
- Image Size: Custom
- wxh: 3840x2160 (for UHD format)
- Frame Rate: 15
- Key Frame: Automatic
- Video Options:
- Restrict Profile(s) to: Main
- Encoding Mode: Best quality (Multi-pass)
- Save file
- using graphicsmagick and avconv
(available on Linux and Mac OS X)
B. Create a top-bottom stereo movie
- using QuickTime 7 Pro
(available on Mac OS X and Windows)
For viewing on a passive stereo screen, stereo movies should be created in top-bottom format, with half the final resolution in the movie for each eye. This can be easily achieved using QuickTime 7 Pro.
- Open both the left and right eye movie files in QuickTime 7 Pro.
- For each individual movie, open the Show Movie Properties from the Window menu. Click on Video Track and choose Visual Settings tab, then using Scaled Size with Preserve Aspect Ratio unchecked, reduce to 50% the size of the movies in the vertical direction.
- Choosing the right eye movie, use the Select All then Copy functions from the Edit menu.
- Click on the left eye movie, use the Select All and then apply the Add to Selection and Scale function from the Edit menu. Both movies will now be directly on top of each other.
- Open again the Show Movie Properties from the Window menu: The left eye movie will be Video Track 1, and the right eye will be Video Track 2. Select Video Track 1 and click the Visual Setting tab. Now using the Offset, change the the second value to height of the video file. In the Player window, the left eye video tracks should be on top of the right eye track.
- Now Save/Export the file and the creation of the stereo movie is complete.
[25.02.2014 - ms]
Note: Using 'Save', the resulting video is still composed of two videos embedded together. This means that there is no quality loss, but you require a fast computer to view and scale the two videos at the same time, and the you need to view the video with QuickTime (in my case, the resulting video did not work in VLC). If you want to get a single-channel video, you have to use 'Export' in QuickTime (that requires though much more time and may bring some quality loss if the compression parameters are not chosen properly).
[03.04.2014 - gp]
- using graphicsmagick and avconv
(available on Linux and Mac OS X)
Note: I strongly suggest to use two passes to get a better quality
Note: to use the libx264 on ubuntu for encoding, you need an additional package: libavcodec-extra-53