Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Digizuite supports converting assets to different formats.

For instance, a thumbnail is automatically generated for a wide range of file types, allowing for an easy visual identification of assets in, e.g., the Media Manager.

The entire system related to formats and their conversions is referred to as the transcode system.

This section covers the most important concepts related to configuring and using formats in Digizuite.

Format definition

A format has a format type, which is defined by a file extension. Examples of supported format types are:

  • webp

  • jpeg

  • png

  • mp4

  • mov

  • avi

  • mp3

  • pdf

A format defines the output of a transcode, which is the process of converting an input file from one encoding to another. When an asset is transcoded to a format, the end result is called a rendition.

Digizuite comes with a set of predefined formats primarily used for thumbnails and previews. These formats can be edited. You can also define new formats. Both predefined and new formats can be configured from the Media Manager’s General settingsSystem administrationFormats page.

image-20240229-070338.png

By default, thumbnails are automatically generated for all assets as webp files with transparency, optimized for efficient loading on web pages.

When defining a new format, the following parameters must be set:

  • Name: A unique name of the format.

  • Description: An optional, more elaborate description of the format. This is visible to users when downloading a rendition that uses the format. It can, e.g., be used to describe which use cases the format is intended for.

  • Format type: The type of the format.

  • Immediately generated for: The asset types for which renditions of the format should be generated immediately when an asset’s file is uploaded or replaced. See below for more information.

  • Mapped media formats: In previous versions, the transcode system worked with a concept of media formats, similar to the new format concept. This parameter can be used when migrating from the old transcode system to the new transcode system. More details can be found here.

image-20240229-073647.png

Depending on the chosen format type, a number of different parameters will appear. Most parameters should be self-explanatory. However, a short description of some of the key features can be found here.

Generation

Renditions of assets can be either generated on-demand or pre-generated.

If a rendition of an asset is requested but has not been generated yet, it is always automatically generated. This feature is referred to as on-demand transcoding and makes it possible to ensure that renditions are only generated when needed. Thus, storage space is not wasted on saving renditions that are never used.

The transcode system also supports pre-generating renditions before they are requested. This is, e.g., useful for thumbnails and previews, which are always needed. However, it can also be used to automatically start time-consuming transcodes of large videos that are likely to be requested.

Renditions can be pre-generated in two ways:

  1. On upload and replace: This can be configured with the “Immediately generated for” parameter when defining a format, as described above. Note that if a new format is defined with this setting, existing assets in the system must be republished to pre-generate renditions of the format for these assets.

  2. Triggered from an automation: The automation step “Generate asset renditions” can be used to pre-generate renditions based on more complex conditions. For instance, an automation can be set up to pre-generate renditions for videos with a certain size or when an asset is published to a specific channel folder.

For most formats, it most likely suffices to rely on on-demand transcoding.

No matter if a rendition is requested on-demand or pre-generated, it is never generated if it is already available. If the definition of a format changes, the corresponding renditions are automatically re-generated when they are requested again.

Note that renditions of a specific format can not be generated for all input file types. For instance, renditions of video or audio formats can not be generated for image assets such as png, jpeg, and webp since it does not make sense to create a video or an audio file from an image. However, renditions of image formats can be generated for most common input file types. Thus, even though a limited set of output formats are available, a wide range of input formats are supported.

Format visibility

One use case for defining a format is to make it easy for users to download renditions of assets in this format. However, by default, a format is not visible in the download dialog in the Media Manager. The visibility of formats in the download dialog can be controlled from the general settings page in the Media Manager, where it can be configured for individual user groups.

image-20240229-100544.pngimage-20240229-100606.png

Note that the configured download renditions only affect the visibility of formats in the download dialog and does not affect security. Thus, a user is able to request a rendition of a format that is not visible to the user, as long as the user has access to the asset.

Custom renditions

In addition to the formats defined on the system administration page, it is possible to allow users to request custom renditions of formats that the users define on-the-fly. This can be done via the “Custom rendition” button in the download dialog shown above or by calling the endpoint <api-url>/DigizuiteCore/LegacyService/api/renditions/<asset-id>/custom.

image-20240229-101407.png

A user must have at least one of these two roles Asset_Can_Download_Custom_Quality or Asset_Can_Download_Any, to gain access to the custom rendition download functionality.

Custom renditions are always generated on-demand. However, if the exact requested rendition has already been generated, it is reused. Custom renditions are automatically cleaned up if they have not been downloaded in a while. By default, custom renditions are cleaned up after 30 days. This can be configured from the general settings page in the Media Manager. Only custom renditions are cleaned up.

image-20240229-102055.png

  • No labels