> ## Documentation Index
> Fetch the complete documentation index at: https://docs.signagelab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Uploading files and video transcoding

> Upload images and videos to the library and learn which formats and limits apply and how the CMS transcodes videos.

You upload images and videos to the [file library](https://docs.signagelab.com/cms/files/library.md) by dragging them from your computer. You can then use the uploaded files in any number of campaigns. You can also upload files directly while creating a campaign, for example in a [gallery](https://docs.signagelab.com/cms/campaigns/campaign-gallery.md).

## Supported formats and limits

| Type | Formats | Limits |
| - | - | - |
| **Image** | JPG, JPEG, PNG, GIF | At most **30 MB**. The CMS rejects larger images. Resolution of at most **60 megapixels** (for example 10,000 × 6,000 px). |
| **Video** | MP4, MPEG | You can upload files up to **5 GB**. If the account uses video transcoding, only videos up to **500 MB** are processed. |

> [!TIP]
>
> For smooth playback, prepare videos in MP4 format with the H.264 codec and in the screen's resolution, for example 1920 × 1080 for a landscape screen or 1080 × 1920 for a portrait screen.

Images over 60 megapixels are uploaded, but the CMS doesn't create a thumbnail or rotated copies for them. On devices that have image rotation set, such an image won't play.

## Upload a file

**1. Open the target category**

In the top menu, click **Files** and open the category where you want to save the files. Files uploaded to the library root won't be in any category.

**2. Upload the files**

Drag the files into the **Upload file** area, or click **Upload a file** and select them on your computer. You can upload multiple files at once.

![Upload file area and a newly uploaded file in the Seasonal offer category](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/files/upload/dropzone.en.png)

Progress is shown during the upload. Each uploaded file is confirmed with the message *File has been uploaded.*

**3. Check the file**

The file name is taken from the name on your computer without the extension. For example, `Winter tea offer.jpg` becomes *Winter tea offer*. You can change the name, category, and tags in the [file detail](https://docs.signagelab.com/cms/files/library.md#file-detail).

After the upload, the CMS processes the file in the background. For images, it creates a thumbnail and rotated copies for devices with a rotated display. For videos, it creates a thumbnail and reads the metadata: resolution, size, codec, and duration. You'll see the metadata in the library's **List** view, usually within a few seconds of the upload.

![Uploaded videos with metadata in the List view](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/files/upload/video-metadata.en.png)

> [!NOTE]
>
> If your account uses [file approval](https://docs.signagelab.com/cms/files/approval.md), files uploaded by a user without approval permission wait for approval. Until then, they don't play on screens.

## Video transcoding

The CMS can automatically convert uploaded videos into a format suitable for your players. Transcoding is configured for the whole account in two parts:

* The **Video Transcoding Mode** determines how transcoded videos are handled.
* The **Video Transcoding Settings** are the target variants. Each one has a name, a resolution, and optionally a picture rotation.

SignageLab configures both for your account. You can't change them yourself in the CMS. If you want to turn on transcoding, contact support.

| Mode | Behavior |
| - | - |
| **Off** | The video isn't converted and plays on screens exactly as it was uploaded. This is the default mode. |
| **Separate files** | You choose the variants when you upload. Each variant is saved to the library as a separate file. |
| **Hidden variants** | The original is saved to the library. The variants are created in the background and each device plays its own. |

### Separate files mode

1. When the account has multiple variants, the **Transcoding variants** option appears below the upload area. Check at least one. With a single variant, it's selected automatically.
2. Upload the video. Progress appears below the upload area in the form *file name \[variant] — status*.
3. When it's done, each variant appears in the library as a separate video. Its name includes the target resolution, for example *Summer promo \[1920x1080]*.

In this mode, the originally uploaded video isn't saved to the library. A variant can have [file tags](https://docs.signagelab.com/cms/files/tags.md) assigned in its settings, which the resulting video gets automatically.

### Hidden variants mode

You upload the video the same way as without transcoding, and you see only the original in the library. In the background, a variant is created for each transcoding setting. You can see the status of the variants in the file detail, in the **Video Transcoding Settings** section. For a completed variant, you can copy the link. To restart a failed one, click **Retry**.

Each device plays the variant set in its **Video Transcoding Setting** field in the [device detail](https://docs.signagelab.com/cms/devices/detail.md). If the device doesn't have it filled in, the account default is used.

> [!WARNING]
>
> In Hidden variants mode, devices never play the original. Until the variant for a given device is ready, the video is skipped on it. Once transcoding finishes, the video starts playing with the next playlist.

When you save a campaign, the CMS checks all videos in the gallery and in conditional playback. It creates any missing variants and restarts failed ones.

### Transcoding statuses

| Status | Meaning |
| - | - |
| **Waiting for transcoding** | The video is uploaded and waiting in the queue. |
| **Transcoding video** | The conversion is in progress. |
| **Completed** | The variant is ready to play. |
| **Failed to transcode** | The conversion failed. In Hidden variants mode, restart it with **Retry**. |
| **Canceled, source file too large** | The video is larger than 500 MB and won't be processed. Make it smaller and upload it again. |

### What a transcoded video looks like

* MP4 format, H.264 codec, 25 frames per second, 5 Mbps bitrate.
* **No sound.** The audio track is removed during conversion.
* The video is fitted into the target resolution while keeping its aspect ratio. The remaining area is filled with black bars.
* Depending on the variant settings, the picture can be rotated (90°, 180°, 270°). A portrait video can get its width and height swapped, or it can keep its original resolution.

## FAQ

> [accordion] Why didn't my image upload?
>
> Check the format (JPG, JPEG, PNG, or GIF) and the size. The CMS rejects images over 30 MB with the message *The image you are trying to upload is too large. The maximum size is 30 MB.* Make the image smaller, for example by exporting it at a lower quality or resolution.

> [accordion] Why don't I see the duration and resolution of a new video?
>
> Metadata is read in the background. Refresh the page after a few seconds. For large videos, it may take longer.

> [accordion] Why doesn't a transcoded video have sound?
>
> Transcoding always removes the audio track. If you need a video with sound, upload it in an account without transcoding, or contact support.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.