---
title: "Video Project Settings and Configuration | Rendley SDK Docs"
description: "Global configuration for the Rendley SDK. Encoder, decoder, render loop, media processing, subtitle defaults, canvas behavior and export quality settings."
url: https://docs.rendley.com/sdk/getting-started/settings/
---

# Project settings

Global configuration for the SDK, encoder, decoder, render loop, media processing, subtitles, and canvas behavior. Access through:

```
const settings = Engine.getInstance().getSettings();
```

Every setting has a paired getter and setter. This page groups them by domain and lists defaults inline. For deep-dive explanations of settings tied to a specific feature (filmstrip, audio samples, chunked output), follow the link at the end of each section to the topical guide where they’re used.

## Encoder

Controls the codec, quality, and acceleration used when exporting the final video.

| Setting | Default | Description |
| --- | --- | --- |
| `setEncoderCodec(codec)` | `"h264"` | Output codec: `"h264"`, `"vp8"`, or `"vp9"`. |
| `setEncoderBitrate(bitsPerSecond)` |  | Target bitrate in bits per second. |
| `setEncoderCrf(crf)` |  | Constant Rate Factor (0 = lossless, higher = smaller). |
| `setEncoderKeyframeInterval(frames)` |  | How often keyframes are inserted (shorter = easier to seek, bigger file). |
| `setEncoderUseWebCodecs(bool)` | `true` | Use WebCodecs for hardware acceleration. Disable for the WASM fallback. |
| `setEncoderUseAlpha(bool)` | `false` | Include alpha channel in the output. Requires `vp8` or `vp9` and WASM rendering. |
| `setEncoderPreferredAcceleration(preference)` |  | `"prefer-hardware"` or `"prefer-software"`. |

### Alpha channel output

```
settings.setEncoderUseWebCodecs(false);
settings.setEncoderUseAlpha(true);
settings.setEncoderCodec("vp8");
```

## Decoder

Controls how video files are decoded during playback and export.

| Setting | Default | Description |
| --- | --- | --- |
| `setDecoderPreferredAcceleration(preference)` |  | `"prefer-hardware"` or `"prefer-software"`. |
| `setDecoderUseSeparateWorker(bool)` | `false` | Decode videos in individual workers. Useful when compositions have many videos on multiple layers. Not always faster, benchmark first. |
| `setDecoderUseSubImage(bool)` | `false` | Fill the old texture instead of creating a new one per frame. Benchmark for your use case. |

## Render loop

Controls the preview and export render loop.

| Setting | Default | Description |
| --- | --- | --- |
| `setRenderShowPreview(bool)` | `true` | Show frames on the canvas while exporting. |
| `setRenderAudioUseWorker(bool)` | `true` | Mix audio in a Web Worker instead of the main thread. |
| `setRenderVideoUseDirectFrames(bool)` | `true` | Use a direct frame-grab path. Faster on most devices. Default value should be the prefered value, unless settings it to false might fix some issues. |
| `setRenderMaxQueueSize(size)` |  | Max queue of frames to add to the encoder before throttling. |
| `setRenderThrottleFactor(factor)` |  | Back-pressure throttle factor (A wait multiplier based on the number of unprocessed frames. |
| `setRenderCancelFailTimeout(ms)` |  | Failsafe for [`Engine.cancelExport`](https://docs.rendley.com/sdk/getting-started/export/#canceling-an-export). |
| `setRenderUseChunkedOutput(bool)` | `false` | Split output into chunks for files >2GB. See [chunked output](https://docs.rendley.com/sdk/getting-started/export/#large-files-and-chunked-output). |
| `setRenderChunkedOutputMaxSize(bytes)` |  | Max size of each chunk when chunked output is on. |

## Clip audio

Controls audio sample handling and fade behavior.

| Setting | Default | Description |
| --- | --- | --- |
| `setClipAudioStoreSamples(bool)` | `false` | Cache normalized samples per media entry. Required for waveforms. |
| `setClipAudioSampleRate(hz)` |  | Sample rate at which audio is extracted (lower = smaller memory footprint). |
| `setClipAudioSampleForceMono(bool)` |  | Downmix stereo to mono during extraction. |
| `setClipAudioMonoMixType(type)` |  | How channels combine on mono mix: `"average"`, `"max"`, or `"min"`. |
| `setClipAudioMonoChannelsWeight(weights)` | `[1, 1]` | Per-channel weight array applied before the mono mix. |
| `setClipAudioSeekThreshold(seconds)` |  | Precision for audio seeking. Smaller = more precise, more expensive. |

See [Filmstrip & Waveforms](https://docs.rendley.com/sdk/getting-started/filmstrip/#audio-samples-waveforms) for the full sample extraction workflow.

## Clip video

Controls video decoding, filmstrip thumbnails, and dynamic loading.

| Setting | Default | Description |
| --- | --- | --- |
| `setClipVideoSeekThreshold(seconds)` |  | Precision for video seeking. |
| `setClipVideoStoreSamples(bool)` | `false` | Cache audio samples extracted from videos. |
| `setClipVideoStoreFilmstrip(bool)` | `false` | Generate timeline thumbnails for each video. |
| `setClipVideoFilmstripInterval(seconds)` |  | Thumbnail sampling interval. |
| `setClipVideoFilmstripMaxFrames(count)` |  | Maximum number of thumbnails per video. |
| `setClipVideoFilmstripMaxWidth(px)` |  | Thumbnail max width. |
| `setClipVideoFilmstripMaxHeight(px)` |  | Thumbnail max height. |
| `setClipVideoFilmstripMaxWorkers(count)` |  | Parallel thumbnail workers. |
| `setClipVideoFilmstripKeyframesOnly(bool)` |  | Only sample on keyframes (faster, lower precision). |
| `setClipVideoDynamicLoad(bool)` | `false` | Lazy-load video decoders. Enable only for 128+ videos in the timeline. |
| `setClipVideoDynamicLoadTime(seconds)` |  | Look-ahead window for dynamic loading. |

See [Filmstrip & Waveforms](https://docs.rendley.com/sdk/getting-started/filmstrip/) for the full filmstrip setup.

## View

Controls how the canvas responds to resolution changes.

| Setting | Default | Description |
| --- | --- | --- |
| `setViewAutoLayoutOnResize(mode)` | `NONE` | Reposition/resize existing clips when the display resolution changes. See [`AutoLayoutMode`](https://docs.rendley.com/sdk/api-reference/enums/AutoLayoutMode.html). |

## Subtitles

| Setting | Default | Description |
| --- | --- | --- |
| `setSubtitlesScaleOnResize(bool)` | `false` | Auto-scale subtitles when the display resolution changes. |
| `setSubtitlesAutoWrapOnResize(bool)` | `false` | Auto-rewrap subtitles when the display resolution changes. |

## Media

| Setting | Default | Description |
| --- | --- | --- |
| `setMediaHashAlgorithm(algorithm)` | `SHA_256` | Algorithm used for content hashing. Use `XXHash64` / `XXHash128` for files larger than a few hundred MB. See [`HashAlgorithmEnum`](https://docs.rendley.com/sdk/api-reference/enums/HashAlgorithmEnum.html). |
| `setM3u8MaxResolution(width, height)` |  | Cap the resolution picked from HLS/m3u8 sources. |
| `setUseInternalTranscoder(bool)` | `true` | Use the SDK’s built-in transcoder. Set to `false` when providing a custom [`ITranscodeProvider`](https://docs.rendley.com/sdk/api-reference/interfaces/ITranscodeProvider.html). |

## Forced settings

Some settings can be applied at init time and take precedence over anything stored in a serialized project:

```
await Engine.getInstance().init({
  forcedSettings: {
    renderVideoUseDirectFrames: false,
    encoderBitrate: 8_000_000,
  },
  // ...license, display
});
```

Useful when you want to override per-project values across the board (for example, to force software encoding on a specific deployment regardless of what the saved project requested).

## What to read next

- **[Export to MP4](https://docs.rendley.com/sdk/getting-started/export/)** encodes the composition and tracks progress.
- **[Filmstrips and waveforms](https://docs.rendley.com/sdk/getting-started/filmstrip/)** draws thumbnails and audio peaks for a timeline UI.
- API reference: [`Settings`](https://docs.rendley.com/sdk/api-reference/classes/Settings.html).

[Previous pageClips](https://docs.rendley.com/sdk/getting-started/clips/) [Next pageEvents and state](https://docs.rendley.com/sdk/user-interface/listening-to-events/)
