Split media locations
Since EMu searches through the list of paths registered in the ServerMediaPath Registry entry it is possible to have the media associated with a singe multimedia record split across multiple locations. This is very useful if one of the locations is a large optical storage device as it allows large multimedia files to be moved to a slower device while still maintaining thumbnails and smaller images on the faster magnetic drives.
For example, assume that we store all multimedia over one megabyte on an optical jukebox drive (slow retrieval time of approx 8 seconds) while all other files are on magnetic drives. The path for multimedia on the magnetic drive is /home/emu/cmcc while the path for the optical jukebox is /multimedia/cmcc.
The ServerMediaPath Registry entry would be set to:
Key | Setting |
---|---|
Key 1 | System
|
Key 2 | Paths
|
Key 3 | ServerMediaPath
|
Value | /home/emu/cmcc;/multimedia/cmcc
|
When searching for a media file EMu will first look on the magnetic drive and if it does not find the file, it will then look on the optical drive. So we end up with:
Thus when viewing either the thumbnail or the 640x480 image the magnetic disks are consulted and the optical disk is ignored. If however we need to get the original image, the optical disk will be accessed.
With the Images | Default Registry entry (formerly the Launch Viewer Registry entry) it is possible to change the default image displayed when a user double clicks a thumbnail. The entry:
Key | Setting |
---|---|
Key 1 | System
|
Key 2 | Setting
|
Key 3 | Multimedia
|
Key 4 | Image
|
Key 5 | Default
|
Value | 1024
|
will ensure that the image that will display by default is closest to, but not exceeding, 1 Mb (1024 Kb). This entry can be used to minimize traffic to the optical drive; however users can still view the original by using the View command on the Multimedia tab of the Ribbon.
It is also possible to limit access to images stored on the optical drive by using the Maximum Registry entry (formerly the Maximum Viewer Registry entry):
Key | Setting |
---|---|
Key 1 | System
|
Key 2 | Setting
|
Key 3 | Multimedia
|
Key 4 | Images
|
Key 5 | Maximum
|
Value | 640:480
|
Key | Setting |
---|---|
Key 1 | Group
|
Key 2 | Admin
|
Key 3 | Multimedia
|
Key 4 | Images
|
Key 5 | Maximum
|
Value | 0:0
|
The two entries above limit access to the optical drive to users who are in group Admin (the value 0:0
is a special case and indicates an unlimited size). All other users can only access images up to 640x480 pixels (and hence on the magnetic drive).
Finally, when new images are saved they are always placed in the first location listed in ServerMediaPath. Using the example above, this means that all new images will be stored in /home/emu/cmcc/multimedia
, i.e. the magnetic drive. In order to get the images onto the optical drive it is necessary to write a simple script that is run each night to:
- copy over files larger than one megabyte to the optical drive (using the correct directory structure); and
- deletes the files from the magnetic drive.