# Media studio

> From the Guides page of the Rtorrent 16 panel, version 16.29-15W. Polish: https://nasutils.net/rtorrent16/docs/pl/studio.md

Media studio edits a film in time: cut pieces of picture and sound, move them, add another sound track, and fit that track
to the picture with stretch markers. The source files stay as they are. The edit lives in a project file beside the film, and
**Save as MKV** writes a new file.

## Open a film

In Files, open the menu of a video file and choose **Media studio** in the **Video tools** group. The studio opens with one video track
(V1), one audio track for each sound track of the film (A1, A2 and so on) and one subtitle track for each of the film's subtitle tracks (C1
and so on). **Files** in the top bar goes back.

The studio keeps your changes in `<film>.rt16studio` beside the film, a second after each edit and when you leave. The
status line says **Changes saved**. The film itself does not change, and the top bar says **Not saved as MKV** until you
use **Save as MKV**. Opening the film again, or the `.rt16studio` file, brings the changes back, and the status line
says so. If the folder cannot be written, the studio asks where to keep the project.

## Edit

| Key | What it does |
| --- | --- |
| V, A, B, N, R, C, Y, U, H, Z | The tools (see **Tools**) |
| S | Snap on or off |
| Ctrl+K | Add Edit: cut the selected clips at the playhead |
| Delete | Delete, leaving a gap |
| Shift+Delete, Alt+Backspace | Ripple Delete: delete and close the gap |
| Ctrl+drag | Duplicate a clip |
| Alt+click | Select one part of a linked clip |
| Alt+drag | Move a film's sound alone; it stays linked (see [Move the sound alone](#move-the-sound-alone)) |
| Shift+click | Add a clip to the selection, or take it out |
| Ctrl+G, Ctrl+Shift+G | Group clips, ungroup clips |
| =, -, \ | Zoom In, Zoom Out, Zoom to fit |
| Space, J, K, L | Play, back, stop, forward |
| Left, Right | One frame back or forward (with Shift, five) |
| Up, Down | The previous or the next edit point, on any track |
| Home, End | The start or the end of the timeline |
| Alt+Left, Alt+Right | Move the selected clip or marker one frame |
| I, O | Mark in and out on the ruler (see [In and Out](#in-and-out)) |
| Shift+I, Shift+O | Go to In, Go to Out |
| Ctrl+Shift+X | Clear In and Out |
| ; | Lift range: clear the audio and subtitles between In and Out, leaving a gap |
| ' | Extract range: take the range out of every track and close the gap |
| Q, W | Cut the start or the end of the clip at the playhead and close the gap |
| Alt+Q, Alt+W | The same, leaving a gap |
| M | Add chapter at the playhead (see [Chapters](#chapters)) |
| Ctrl+Shift+Space | Play In to Out |
| Ctrl+/ | Loop playback on or off |
| Shift+W | Stretch marker at the playhead |
| Ctrl+Z, Ctrl+Shift+Z | Undo, redo (200 steps) |
| Delete, Ctrl+K, Alt+Left, Alt+Right | With subtitles selected: delete them, split one at the playhead, move them one frame (see **Subtitles**) |
| Ctrl+A, Ctrl+Shift+A | Select all clips (of the tracks that are not locked), deselect all |
| Ctrl+` | The picture on the full screen (Esc goes back) |
| ? | **Keyboard Shortcuts**: every key on one sheet |

A cut is virtual: the source stays whole, and the two clips play from it. A gap on an audio track is silence. To fill it, Ctrl+drag a
piece of another track into it. A clip dropped on another clip of the track replaces that part.

A right click on a clip offers the same actions. Press a track's name to set its name, language and default flag, to mute, solo or
lock it, or to duplicate it. Drag a track's name up or down, or use **Move up** and **Move down** in its menu, to change
the order of the tracks: the new MKV has its audio and subtitle tracks in this order. The video track stays first.

The picture has no gaps. Deleting a piece of picture closes the gap, and the same time goes from every track, so sound and
subtitles stay in sync. An H.264 film up to 1080p in an MKV, MP4 or MOV file is cut on the frame you choose: when you save,
the NAS encodes again only the frames between each cut and the key frame next to it inside the clip, and copies the rest as it
is. The save window's **Video:** line says how many seconds were encoded again. Other films (HEVC, 4K and some H.264 files)
are cut on key frames, because their picture is copied, never encoded. In some of them the clip before a cut ends a few frames
early: those frames cannot be shown without the key frame that was cut off. The clip's edge on the timeline shows where the cut
really is, and when that is not at the playhead, the status line gives its time and says why.

Before a file is saved, the NAS plays every cut and compares the copied frames around it with the film. If a frame is missing,
extra or different, the file is not saved, and the job names the cut.

A subtitle that a cut goes through keeps the part that is left, from the first frame it belongs to. A part shorter than 0.3 s is
left out. This holds for SubRip, ASS, WebVTT, MP4 subtitles, PGS and VobSub. A DVB subtitle stays whole in the clip it starts in.
In an ASS subtitle that loses its start, a movement or karaoke starts anew.

An audio clip shows small squares at its top corners and a bar at its top centre. Drag a square inward for a Fade In or a
Fade Out, and drag the bar up or down for the clip's Audio Gain. A film's fades are straight; **Info** shows the same values
as numbers.

Q and W cut the start or the end of the clip at the playhead and close the gap; Alt+Q and Alt+W leave the gap. They work on
the selected clip under the playhead, or on the video when nothing is selected. A video clip is cut at the playhead (on a
film cut on key frames, at its nearest key frame) and takes the same time out of every track. After Q the playhead stands where the clip now starts.

## Move the sound alone

A film's own sound stays linked to its picture: a cut in the picture cuts the sound too. To move the sound alone, for example
when it plays a few frames late, hold Alt (Option on a Mac) while you drag its clip. On a phone, hold your finger on the clip
until the circle is gone, then drag; a finger lifted without moving opens the clip's menu, as before. The link stays, so later
cuts in the picture still cut that sound.

The clip then shows how far it is from its picture: +3 f is three frames late, −200 ms is 200 milliseconds early. Whole frames
show as frames, other shifts in milliseconds, and a second or more in seconds. **Info** shows the same as **Offset from
video**. While a finger drags the clip, the number shows above the finger.

**Move into Sync**, in the clip's menu or in Info, puts the selected sound back under its picture, in one undo step. Like any
moved clip, it replaces what it lands on; Undo brings that back.

Moving a video clip takes its shifted sound along whole, with the same shift. A clip that plays at another speed, and a sound
from another file, show no number. The new MKV or MP4 plays the sound exactly as far from the picture as the timeline shows;
when the sound starts later than the picture, the part before it is silent.

## In and Out

I sets the In point at the playhead and O the Out point; the ruler shows the range between them. Right-click the ruler or
empty track space for what the range is for:

- **Play In to Out** (Ctrl+Shift+Space) plays the range once, or again and again while **Loop playback** is on.
- **Lift range** (;) clears the audio and subtitle tracks between In and Out. The video and everything after the range stay
  where they are, and the range plays in silence. A subtitle track whose subtitles follow the video's cuts (the film's own
  track before you edit it, or subtitles made in the studio) stays as it is, and the status line names it; delete those
  subtitles in the subtitle list.
- **Extract range** (') takes the range out of every track and closes the gap, as Ripple Delete does with a clip.
- **Save In to Out as MKV** saves only the range as a new MKV file, in the same window as **Save as MKV**. Its **Range:**
  line gives what is saved.
- **Clear In and Out** (Ctrl+Shift+X) removes both points.

Shift+I and Shift+O move the playhead to In and Out. Extract and Save In to Out cut the video at each point (a film cut on key
frames at the key frame nearest each point), and every track at the same moments; the status line or the **Range:** line
gives the times. Lift and Extract are one undo step each and clear the points.

## Chapters

A film's chapters stand as flags on the ruler, with their names. **M** adds a chapter at the playhead, named after its
place, for example "Chapter 3". Drag a flag along the ruler to move a chapter. Right-click a flag, or hold your finger on
it, for **Rename**, **Go to chapter** and **Delete**. **Info** lists the chapters: press a name to rename it, a time to go
there. Each change is one undo step.

Chapters move with the video. A cut that removes the start of a chapter moves the chapter to the cut, and a chapter whose
whole length is removed goes. **Save as MKV** writes the chapters as the timeline shows them, and the review says
"Chapters: as on the timeline". Until you change a chapter, the save keeps the film's own chapters with all their data.
Importing a chapters file replaces the chapters with the file's.

**Save chapters as separate files** (in the menu of empty timeline space, or the menu on a phone, once there are two
chapters) writes one MKV file a chapter, from its flag to the next one, named after the film, its number and the
chapter, for example "Film - 02 The middle.mkv". The window shows the first file's tracks and rows; the others are written
with the same choices, each as a job of its own. A file whose rows differ stops there and shows them; **Save** again
writes the rest.

## Tools

The toolbar above the timeline holds the editing tools. Rest the pointer on a button to see its name and key.

Tap **(i)** at the start of the toolbar to open the film's **Info** (see [Info](#info)). Its first row, **Show button
names**, shows the name of every icon button of the studio at once, in a tag with a line to it (or with the button's icon in
the tag, where no line can reach). The next tap anywhere hides the names and does what it always does. To see one button's
name on a touch screen, hold your finger on that button for half a second; lifting the finger does not press it.

| Tool | Key | What it does |
| --- | --- | --- |
| Selection Tool | V | Drag a clip to move it (with Ctrl, a copy), drag an edge to trim it, drag a stretch marker. On empty track space, drag a box: every clip it touches is selected. |
| Track Select Forward Tool | A | Selects the clips of the track from the pointer on (with Shift, of every track). Drag to move them. |
| Ripple Edit Tool | B | Drag an edge: the later clips of the track move with it, so no gap opens. |
| Rolling Edit Tool | N | Drag the cut between two clips: one gets longer, the other shorter. Linked cuts on the other tracks move too. |
| Rate Stretch Tool | R | Drag a sound clip's edge to change its speed. A double click adds a stretch marker. |
| Razor Tool | C | Click to cut the clip there (with Shift, every track). |
| Slip Tool | Y | Drag a clip to play another part of its source in the same place. Drag right for earlier source. |
| Slide Tool | U | Drag a clip between its neighbours, which get longer or shorter. |
| Hand Tool | H | Drag to move the timeline. |
| Zoom Tool | Z | Click to zoom in at the pointer, Alt+click to zoom out. |

On the video track, Slip and Rolling Edit land on any frame of a film cut on any frame, else on key frames, and Slide does not work: move
picture clips with the Selection Tool. Alt+click selects one clip without its linked clips or group, and a drag then works
on that clip alone.

**Group clips** (Ctrl+G) keeps clips selected together; **Ungroup clips** (Ctrl+Shift+G) separates them. **Label** gives
the selected clips one of eight colours, or **None**. A right click on a clip offers both, too.

## Zoom and scroll

The magnifier in the toolbar zooms out, zooms in, or fits the whole timeline in the window; the slider between them goes
through every zoom level. The keys are -, = and \.

| Wheel or gesture | What it does |
| --- | --- |
| Wheel | Scrolls the tracks up and down |
| Shift+wheel, a sideways swipe on a trackpad | Scrolls through time |
| Alt+wheel | Zooms in or out at the pointer |
| Ctrl+wheel, or drag the lower edge of a track's header | Makes the tracks taller or lower, from 40 to 160 pixels; a double click on the edge gives the usual height back |
| Pinch on a trackpad, two fingers side by side on a touch screen | Zooms |
| Two fingers one above the other on a touch screen | Make the tracks taller or lower as you spread them apart or bring them together (on a phone the audio tracks) |
| Two fingers moved together, on a tablet in the computer's layout | Zoom and scroll through time at once: the moment under them stays under them |
| A finger on the ruler, on a tablet in the computer's layout | Moves the playhead |

The track height is not part of the project.

Each waveform has two shades: the light part reaches the loudest peaks, and the solid part inside it shows how loud the
sound is on average, so a loud track keeps its shape when you zoom out.

## Workspaces

Three buttons in the top bar change how the studio is laid out on a computer.

| Workspace | Keys | What it shows |
| --- | --- | --- |
| Editing | Alt+Shift+1 | Sources, the picture and Info above the timeline. The cue list opens beside the timeline. |
| Timeline | Alt+Shift+2 | The same, but the tracks take the height the picture had, so more of them fit. |
| Subtitles | Alt+Shift+3 | The cue list as a column the whole height of the picture and the timeline. Sources makes room for it, and **Import** stays in the timeline's menu. On a film without a subtitle track the column offers **Add subtitle track** and **Download subtitles**. |

Drag the cue list's left edge to make the list wider or narrower. With the keyboard, Tab to the edge and press Left or Right
(with Shift it moves four times as far), Home or End. Double-click the edge to get the workspace's own width back. The NAS
keeps your workspace and the list's width in each workspace with your account, so they come back in another browser too. A
width kept on a wide screen opens narrower on a smaller one and stays kept as it was. A phone keeps its own layout and opens
the cue list over the whole screen.

## Info

The **Info** panel on the right shows what you select on the timeline. For a clip it shows the source file, the timeline
track, the start and the length, then the source track the clip plays: for video the codec, frame size and frame rate,
for audio the codec, channels with their layout, sample rate and language, for subtitles the format and language, and the
bitrate where the file states it. Under **Track** you set the track's name, language and default flag, and mute or solo an audio track. A
sound clip also lists its stretch markers. With nothing selected, the panel shows the film the timeline starts from, the
**Release** it came from with its **Release group**, the chapters file and the fonts **Save as MKV** takes, and every
subtitle track of the file with its fonts (see [Fonts](#fonts)). The release name comes from the torrent that holds the
file, else from the Movie Agent's record of the download (the agent renames the file to the film's own name), else from
the title saved in the file; when none of them names it, Info says **Unknown**. **(i)** at the start of the toolbar
opens the same in a window on any screen, with the picture and the audio tracks first; on a phone, **Info** in the menu opens it too. A subtitle clip of a file also shows its number of lines and the encoding
it was read in. A subtitle clip, or a selected subtitle, also shows the fonts of the subtitles and the track's **Track Style**
(see [Fonts](#fonts) and [Track Style](#track-style)), the switch **Show over the picture**, and the buttons **Match timing to
C1…** (when the project has another subtitle track) and **Translate subtitles**.

An audio clip has three more fields: **Audio Gain** in dB, from -60 to +20, and **Fade In** and **Fade Out**, typed as a
timecode or in seconds. They apply to every selected audio clip, linked clips included; 0 removes one. The
clip draws a fade as a slope at its edge and the gain as a chip. The preview plays them, and **Save as MKV** writes them
the same way.

Under them, **Levels** lists each channel of the clip's source track by name (FL, FR, FC, LFE, SL, SR) with its **Peak**,
**True peak** and **RMS** in dBFS, then the track's **Loudness** in LUFS and its **Loudness range** in LU. The NAS measures
the whole track once, in the background, the first time you select one of its clips, and the line says how far it has
measured in the track's time, such as **Measuring the levels: 00:41:07 of 02:30:10**. On a long film that takes minutes: the
NAS reads the whole file, at the lowest priority, behind the studio's own picture work. When the connection drops for a
moment, the studio asks again and the measuring goes on. The values leave out the clip's Audio Gain, and −∞ marks a silent channel. For a track made by **Add
voice-over…**, each channel takes two lines: the values of the film's track the voice-over was made from, then the new
track's values after an arrow. These are the figures the job's lines in the jobs list show. **Save as MKV** measures
each sound track it writes in the new file, so **Levels** is already filled in when you open that file in the studio. If
the studio had measured the source track, each channel takes two lines there too: the source track's values, then the
saved track's after an arrow. On a phone, **Levels** is in the track's **Properties** (tap the track's header, then
**Properties**). What the numbers are is under the "?" beside **Levels**.

The padlock on a track's header, or **Lock track** on the top row of its menu, locks the track. An edit that would change its clips is
refused, and the status line says which track is locked. That includes a picture cut, which takes the same time from
every track. Mute, solo and the track's name still work. **Discard changes** still takes a locked track back to the film,
and unlocks it.

## Undo and discard

**Undo** and **Redo** (Ctrl+Z, Ctrl+Shift+Z) step through your changes. **History** (beside them, or in the menu on a
phone) lists every step, newest first, by what it changed; press a step to go back or forward to it at once. The last 50 steps stay in this browser when you
leave the studio, so Undo still works after you come back, unless the project was changed in another window meanwhile.

**Discard changes** (the eraser in the top bar, or the menu on a phone) takes the timeline back to the film as it
is, after one question. It is a change like any other: Ctrl+Z brings your changes back. When you go back to Files after
changing something, the studio asks whether to keep the changes or discard them; Escape stays in the studio.

A waveform grows across its track while the NAS draws it, so you can start working on the part that is ready. Waveforms,
key frames and subtitles are read beside a preview copy being made, so they do not wait for the copy; the NAS runs one of
these reads and one copy or match at a time. A track longer than 12 hours gets no waveform, and the status line says why.

When the NAS is still working on the film for you (drawing a waveform, reading key frames, making a preview copy, reading
subtitles, matching a sound to the film, or subtitles from speech, a voice-over track or a translation you started), leaving asks once
more, also when you changed nothing and the film has no project file yet: **Keep running** lets that work finish in the
background, so it is ready next time; **Stop** ends it and removes what it had made so far. A closed tab is not asked:
work nobody looks at stops by itself after 90 seconds, while subtitles from speech, a voice-over track or a translation goes on.
Deleting or moving the project file (the `.rt16studio` next to the film) stops its work, and a job in Files says
"Stopped: the project file was deleted or moved."

## Add audio

**Add audio** takes WAV, FLAC, MP3, AC-3, E-AC-3, AAC, M4A, MKA or the sound tracks of another video. The sound goes on a new audio track,
which becomes one sound track of the new file.

## Import

**Import** in the Sources panel takes:

- a video: its audio and subtitle tracks, picked from a list when it has more than one;
- an audio file: WAV, FLAC, MP3, AC-3, E-AC-3, AAC, M4A or MKA;
- subtitles: SRT, ASS, SSA, WebVTT, PGS (`.sup`), MicroDVD, MPL2 or TMPlayer;
- a font: TTF or OTF;
- chapters: Matroska XML or OGM text.

An audio track goes on a new audio track from 0:00. A subtitle file gets a new subtitle track whose clips follow the video
track, so cutting the video cuts it too. A font is attached to the new MKV. A chapters file replaces the film's chapters in
the new MKV, and its chapters move with your cuts. A second chapters file replaces the first.

Subtitles are read in UTF-8 when the file is UTF-8. Otherwise the studio picks the code page of the language in the file's
name (`Film.pl.srt` is read as Windows-1250), or of the panel's language. If the file holds a byte that code page does not
have, the studio asks which encoding the file is in. If the first line in the Sources panel looks wrong, **Encoding** in the
file's menu there reads it again in another encoding. MicroDVD counts frames, so it is timed at the video's frame rate.
The new MKV holds the subtitles in UTF-8, and MicroDVD, MPL2 and TMPlayer become SubRip.

A subtitle file can be cut and moved like any subtitle track. A PGS file and a subtitle track of another video are copied as
they are, so they must stay one clip from 0:00 and the video must stay uncut. If they do not, **Save as MKV** names the track
that stops it.

## Record a voice-over

**Record voice-over** in an audio track's menu records from your microphone onto that track; in the menu of empty timeline
space, and as **Record** on a phone's bar, it records onto a new audio track. The film plays from the playhead while you
speak, so you can follow the picture. **Stop** on the status line, Space or Esc ends the take, and the recording goes onto
the track from where it began, as one step of Undo, kept in the project's folder like any file you add. Use headphones,
or the microphone records the film's sound too.

The browser asks for the microphone the first time. It allows it only to a page opened over HTTPS, so open the panel at
its HTTPS address to record.

## Drop files on the timeline

Drag audio or subtitle files onto the timeline, from your computer or from Files open in another browser tab. Dropped on
an audio or subtitle track, they go onto it one after another from where you dropped them. Dropped anywhere else, they
go on new tracks as **Import** puts them. **Add audio**, **Import** and a track's **Import** do the same through the
file picker, whose **Upload files** button takes files from your computer or phone.

A file from another folder is copied into `Film.mkv.rt16media` beside the project file, so the project keeps working when
you move the film's folder. Files next to the film stay where they are. A film from another folder comes without its
video: its audio, subtitles, fonts and chapters are copied into an MKA file, since the studio only plays the film's own
picture. A file in a format the save cannot read is converted on the NAS without losing quality: its sound to FLAC. Each
file is one step of Undo.

Hold Ctrl (Cmd on a Mac) while you drop to insert: the track is cut where you drop, and the rest of it moves right to
make room, so nothing is overwritten. A file dropped on the video track comes in on new tracks, and the status line names
them. Before a copy of 100 MB or more, the studio says how much it takes, how much space is free and where it goes, and
copies only after **Copy**.

## Sources

The Sources panel lists every file the project reads. The three buttons beside its title switch its view between **List** (one
row per file with a small picture), **Grid** (tiles) and **Panels** (one large card per file). Each file has a picture. A video
shows a frame, a sound its waveform once its track has drawn it, a subtitle file its first line, a font "Aa" in its own face,
and a chapters file its first titles. The view you pick is kept with your panel account on the NAS, so it is the same in every
browser. On a phone, **Sources** in the menu opens the same panel.

**Import** and **Add audio** open Files' own file picker. Pick a file and Files' quick view shows it beside the list (under
it on a phone): a frame of a video with its facts, a player for a sound, the first lines of a text.

## Menus

A click on a track's header opens the track's menu. A right click, or on a phone a finger held on the spot and lifted, opens
the same menu; elsewhere a right click opens the studio's own menu for what is under the pointer. The browser's menu opens in
the studio only in a text field. While you hold a finger, a circle grows under it; once it is gone, lift the finger. No text
gets selected on the way. The menus look like the menu of Files: the name at the top, a row of buttons with icons under it,
then the commands, and what deletes last, in red.

*Figure: The menu of a subtitle track: its switches on the top row, then its commands*

- A track's header: the top row holds the track's switches, each lit while it is on: **Default track** (the flag the saved
  MKV gets), **Mute** and **Solo** for an audio track, **Show over the picture** for a subtitle track, **Lock track**, and
  **Preview voice-over** for a subtitle track that can be read aloud. A switch acts at once and the menu stays open, so you
  see it change; a tap beside the menu or Escape closes it. Under the row: **Create subtitles from speech** for an audio
  track; for a subtitle track with subtitles **Create new voice-over track**, **Quickly create film with voice-over** (one
  that comes from one of the film's own subtitle tracks), **Translate subtitles** (text, not pictures), **Sync subtitles to
  speech** and **Match timing to C1** (one for each other subtitle track); then **File** with **Export**, **Import** (a
  file's matching track as one clip at the playhead, over what is there) and **Replace** (every clip of the track plays
  another file's track instead, at the same moments); **Duplicate track**, **Properties** and, last, **Delete track** in
  red. The video track has only **Lock track** and **Properties**. **Properties** opens the track's name, language, its
  channels and, for an audio track, its **Levels**. A subtitle track whose subtitles are pictures (Blu-ray PGS, DVD
  VobSub) has **Create SRT track**: the NAS reads the text of the pictures as a job, saves it beside the film as an SRT file
  (`Film.pl.srt`) and, when it is done, adds it as a new subtitle track shown over the picture. Text read from pictures can
  contain mistakes, so check it in the cue list ([Convert to SRT](files#subtitles-convert) in Files says more).
- A channel's row (see [Channels of an audio track](#channels-of-an-audio-track)): **Mute** and **Solo** on the top row, then **Hide
  channels** and **Properties**.
- Empty timeline space: **Import**, **Add audio track**, **Add subtitle track** and **Paste** (Ctrl+V) on the top row, which
  puts copies of the copied clips on the timeline, the first at the playhead; under them **Download subtitles** and, for a
  film with speech, **Create subtitles from speech**.
- A clip: **Add Edit**, **Copy** (Ctrl+C), **Duplicate** and **Delete** on the top row, then the clip's other commands, such
  as **Speed** of an audio clip (50 to 200 %); **Link and group** holds linking and grouping.
- A subtitle on the timeline (a right click on its block): **Edit text**, **Split subtitle** (at the playhead), **Insert after**
  and **Delete** on the top row, then **Merge subtitles** when two or more subtitles are selected.
- The Sources panel: the three views on the top row, then **Import**. A subtitle file also has **Encoding**, and a file no
  clip plays (a font, a chapters file) has **Remove from project**.
- The preview: **Copy frame time** (the playhead's timecode) and **Save frame as JPEG** (the exact frame from the NAS,
  downloaded by the browser).

A window's "?" opens its section of this guide over the window, with the drawing first. The window and what you chose in it
stay as they are; **Close** takes you back to it. A link in the help to another section opens that section in the same
place, and **Back** returns.

**Export** writes one track into a file of its own, as **Save as MKV** would write it, in the save window. An AC-3 track goes
to `.ac3`, AAC to `.aac`, subtitles to `.srt`, `.ass`, `.vtt` or `.sup`, and what no plain file holds to `.mka` or `.mks`. An
audio file is named after the film and the track, for example `Film (A2).ac3`. An `.mka` or `.mks` file keeps the track's name and
language; a plain file keeps neither.

A subtitle track of text has **Format:** in the window: **SubRip (.srt)**, **ASS (.ass)** or **WebVTT (.vtt)**, the track's own
first. SubRip becomes ASS in FFmpeg's plain style (white Arial with a thin outline at the bottom centre). ASS becomes SubRip or
WebVTT with its italics, bold and underline; the window says that the ASS styles, fonts and colours are not kept. SubRip keeps
a line's place at the top (`{\an8}`), WebVTT does not. The file goes into the film's folder and is named after the film and the
track's language, for example `Film.pl.srt`, the name Files' player and other players look for beside a film; a track with no
language gives `Film.srt`. When that name is taken, Files adds a number (`Film.pl (2).srt`), and the player still finds it.

## Stretch markers

A stretch marker pins a moment of the sound to a moment of the picture. Drag a marker and the sound before it plays faster and
the sound after it slower, or the other way round. Each part shows its speed, from 50 % to 200 %. A marker cannot pass its
neighbours, and it stops at those limits.

With the Stretch tool, a double click adds a marker, dragging a marker moves it, and dragging a clip's edge changes the whole
clip's speed.

Stretching with the mouse works like a tape deck: the pitch follows the speed.

**Speed** in a clip's menu opens **Speed/Duration**: type the speed in percent, from 50 to 200, or pick a pair of frame
rates, such as **25 → 23.976** for a track made for a 25 fps release that plays on a 23.976 fps film (95.904 %). **Maintain
audio pitch** is on by default: the clip plays slower or faster and keeps its pitch, as FFmpeg's atempo filter makes it in the
saved file; the preview plays it the same way. Turned off, the pitch follows the speed, as with the Stretch tool. The window
says the clip's new length, and the clip keeps its start. A speed that would run into the next clip is refused whole. On a
phone, **Stretch** on the bar under a selected audio clip opens this window.

The **Stretch markers** table in the Info panel lists each marker's **Sound at**, **Picture at** and **Speed**. Type a timecode or
seconds into **Picture at** to move a marker exactly. **Sound at** is the moment the marker pins and does not change.

## Fit a tape track to a film

Take a voice-over captured from a PAL tape, which runs about 4 % fast against a film release.

**Match to Film** does most of it for you. Right-click the tape's clip, or select it and use the button in **Info**. The
NAS compares the clip's sound with the film's first audio track, moves the clip into place and adds the stretch markers
that keep it in step. When that track carries a voice-over the tape lacks and the match is not sure, the film's other
audio tracks are compared too, and the surest match is used. The status line shows the percent; a film's sound is read once and kept for the next match. When
the tape shares too little sound with the film, or a long scene is missing from it or added to it, the clip stays as it
was and the status line says why. Then fit it by hand:

1. **Add audio** with the captured file.
2. Pause on an early event you can see and hear, such as the first cut after the titles. Put a marker on its sound and drag it onto
   the frame.
3. Do the same near the end of the film. The part between the markers now plays at about 95.9 %.
4. Where the voice drifts from the lips, pause on a clear event, add a marker on its sound and drag it to the playhead.
5. Where the tape lacks a scene, split the track and drag the rest to where the picture carries on.

## Channels of an audio track

An audio track of 2 to 8 channels can be edited channel by channel. Click the arrow on the track's header; on a phone tap
the foot of the track's header, which names the track's layout (**5.1**), or choose **Show channels** in the track's menu. A
row opens on the timeline under the track for each channel, in the order of the audio meters: L and R
for stereo; FL, FR, C, LFE, SL and SR for 5.1, then BL and BR for 7.1. The centre channel (C) stands right above the subtitle
track shown over the picture, with its track's name (**A1 C**) and a coloured edge, so the dialogue and the subtitles line up
by eye; the other channels stay under their track. When a 5.1 file names its rear pair BL and BR, the rows and the meters call them
SL and SR; the saved file keeps the file's own layout.

Each row shows the waveform of its channel alone, which the NAS draws after the waveforms of the tracks: the centre first,
and every channel of the track in the same read of the film, so a 5.1 track costs one read of the file, not six. The waveforms
grow while the NAS draws them, and the line under the timeline says which channels it draws. **M** mutes the
channel and **S** plays only the soloed channels of the track. Click the channel's name, or tap the row on a phone, to open
the channel's menu: **Mute** and **Solo** on its top row, then **Hide channels** and **Properties**. **Properties of A1 C**
holds:

- **Gain**, from −60 to +20 dB;
- **Audio**: **Own audio**, **Replace with** another audio track, or **Mix with** it. With no other audio track in the
  project, the window offers **Import audio file** instead.

To give a film a new centre from a mono WAV, **Import** the WAV, so that it becomes an audio track of its own, then open the
C row and choose **Replace with** that track. It keeps its clips: move, trim and fit them as on any track, **Match to Film**
included. Replace takes the whole channel, so the centre is silent wherever that track has no clip. A track goes into one
channel at a time, and a track that takes others into its channels cannot go into one itself.

The preview plays all of it as the save writes it, and each channel's bar on the audio meters shows the channel after its
mute, solo and gain. The track that goes into a channel is mixed to mono as FFmpeg mixes it and has no bars of its own; its
header says **into channel C of A1**. When the browser cannot play a track's channels one by one (a WebKit browser such as
Safari refuses 8-channel sound), the preview plays the track without its channel settings and says so.

**Save as MKV** writes such a track anew in its own layout: a muted channel is silent, a gain is applied, and a replaced
channel carries the other track's sound. Solo plays no part in the save, as with a track's solo. The track that goes into
a channel is not saved as a track of its own: the save window lists it as **into channel C of A1**, without a tick, and **Export** of it asks you to export A1
instead. Each
change is one step of **Undo**; showing or hiding the channels changes nothing in the project.

## Subtitles

A subtitle track (C1, C2 and so on) shows its subtitles as blocks on the timeline and over the picture. The first time the
studio shows a track, the NAS reads its subtitles from the film in a background job. It waits its turn behind the waveforms
being drawn (the NAS runs one such job at a time) and then reads the whole file once. Meanwhile the cue list and the corner
of the picture say **Reading the subtitles: 40%**. Looking at subtitles changes nothing.
Your first edit puts them in the project, and Undo takes that edit back like any other.

One subtitle track at a time shows over the picture. The eye on a subtitle track's header shows that track;
the eye of the track already shown hides the subtitles until you turn an eye on again. A click on a subtitle track's header, its
clip or one of its subtitles shows that track too. On a phone, the shown track's header has the eye, and **Show over the
picture** on the top row of the track's menu chooses it. Which track shows is not saved in the project and is not part of Undo: the next time
the film opens, the default track shows, else the first one. **Default track** is the flag the saved MKV gets, and does not
change the track shown here. A track made by **Translate subtitles** or **Create subtitles from speech** shows at once.

Click a clip on a subtitle track to open its cue list beside the timeline. On a phone, choose **Subtitles** in the menu. Each row
shows the subtitle's number, where it shows on the timeline and its text on one line: a subtitle of two lines shows both,
joined by ⏎, without its tags, and a long one ends in "…". Point at a row to see the whole text.

Click a row to select the subtitle, move the playhead to it and open it in the subtitle editor under the list
([Edit a subtitle](#edit-a-subtitle)). Shift or Ctrl adds rows to the selection, and the editor closes while more than one is
selected. A double-click on a row also puts the cursor in its text. On a phone, tap a row: the list closes and the subtitle
opens in the subtitle editor under the timeline, so the picture stays in view ([On a phone](#the-subtitle-editor)).

You can also double-click a subtitle over the picture or its block on the timeline to edit its text in place. On a phone, hold
the subtitle over the picture, or tap a selected subtitle again. Enter keeps the text, Shift+Enter starts a new line and Escape
gives the old text back. On the timeline, drag a subtitle to move
it and drag one of its edges to change when it starts or ends. A subtitle stays inside the clip it starts in. On a phone a finger
pans the timeline over the subtitles as anywhere else: tap a subtitle to select it, hold it to grab it and move it, and drag the
grips of a selected subtitle to change its start or end.

A subtitle clip's menu also has **Change frame rate** and **Sync points**, for the track's subtitles or the ones selected; on
a phone, **Stretch** on the bar under a selected subtitle clip opens **Change frame rate**. A track of picture subtitles has no
times to change here: **Create SRT track** first.

| Tool | What it does |
| --- | --- |
| Add subtitle | Adds an empty subtitle at the playhead, 2 seconds long or up to the next subtitle, and opens its text. |
| Split subtitle | Splits the selected subtitle at the playhead. With two lines or more, each half gets half of the lines; one line splits at the space nearest its middle. |
| Merge subtitles | Joins the selected subtitles into one, from the first start to the last end, their texts on separate lines. |
| Delete | Deletes the selected subtitles. |
| Shift subtitles | Moves every subtitle, or the selected ones, earlier or later by the time you type (1.5, or a timecode such as 00:00:01:12). |
| Change frame rate | Converts timing made for one frame rate to another: 23.976, 24, 25, 29.97 or 30 fps. Every frame number stays the same, so from 25 to 23.976 each time is multiplied by 25 × 1001 / 24000. **Round to whole MicroDVD frames** first puts each time on a whole frame of the original rate, for subtitles read from a MicroDVD file at the wrong rate. |
| Sync points | Type where two subtitles should start (the first and the last selected, else the first and the last of the track), or press **Set to the playhead**. The other subtitles move in proportion along the line through those two points. |

With subtitles selected, Delete, Ctrl+K and Alt+Left or Alt+Right act on them instead of on clips. An ASS subtitle keeps its
style; pick another one in the subtitle editor.

SubRip and ASS (also SSA) subtitles keep their own format. WebVTT and other text subtitles are read as SubRip. Subtitles made of
pictures (PGS, VobSub, DVB) have no text to edit, and the cue list says so.

### Edit a subtitle

The subtitle editor shows the subtitle's number, its text, its times and the buttons of the phone's editor (see
[The subtitle editor](#the-subtitle-editor)): Split, Merge, Insert after, To track and Delete. On a computer it opens under the cue
list; on a phone it takes the place of the bar under the timeline.

The text shows the subtitle as the file holds it. Its tags (`<b>`, `{\an8}`) are greyed out, and the text between them looks as
players draw it: bold, slanted, underlined or in its colour.

| Key | What it does |
| --- | --- |
| Enter | Keeps the text. |
| Shift+Enter | Starts a new line. |
| Escape | Gives back the text as it was when you clicked into it. |
| Tab, Shift+Tab | Keeps the text and opens the next or the previous subtitle. |
| Ctrl+B, Ctrl+I, Ctrl+U | Bold, italic, underline. |
| Ctrl+Z, Ctrl+Y | Undo and redo what you typed. Once the text is as it was when you clicked into it, they undo and redo the studio's last changes. |

The style buttons under the text change the selected words, or the whole subtitle when nothing is selected. They offer only what
the track's format keeps and players show:

| Format | Styles |
| --- | --- |
| SubRip (SRT) | Bold, italic, underline (`<b>`, `<i>`, `<u>`), a colour (`<font color="#FFFF00">`) and the position on the screen (`{\an1}` to `{\an9}`; bottom centre needs no tag). |
| ASS and SSA | Bold, italic, underline (`{\b1}`, `{\i1}`, `{\u1}`), a colour (`{\c&H00FFFF&}`), a font (`{\fn…}`), a size (`{\fs…}`), the position (`{\an…}`) and the subtitle's style from the track's styles. A style that is bold already is turned off with `{\b0}`. Other tags of the file, such as `{\pos}` or `{\fad}`, stay where they are. |
| WebVTT | Read as SubRip, so it gets SubRip's styles. **Save as MKV** writes the track as SubRip. Exported as WebVTT, bold, italic and underline stay, and the colour and the position are left out. |

**Default colour**, **Default font** and **Default position** give the track's own back. An empty size gives the style's own
size back. The picture shows the result the way the NAS draws it for the saved file.

#### Spell check

Misspelt words get a wavy red line. The editor checks the language of the track (its **Language** in Info). For a track
whose language is not set it checks the panel's language, and the list at the end of the style row picks another one, or **No
spell check**. That choice is kept in this browser for the track and does not change the track's language in the saved file.

Put the cursor in an underlined word to see suggestions under the text: tap one to replace the word, or **Add to dictionary**
to stop marking it. On a computer, a right-click on the word opens the same choices in a menu. Words you add are kept on the NAS
for your account and for that language.

The dictionaries come with Rtorrent 16 and are updated with it. The editor loads one from the NAS the first time it opens in
that language, and nothing is sent anywhere else. The spell check uses Hunspell, the checker of LibreOffice and Firefox. It
has dictionaries for English (United States and United Kingdom), Polish, German, French, Italian, Dutch, Swedish, Spanish,
Portuguese, Danish, Norwegian Bokmål, Czech, Slovak, Hungarian, Romanian, Russian, Ukrainian, Turkish, Greek, Croatian,
Slovenian, Serbian, Bulgarian and Catalan. There are none for Chinese or Japanese.

### Sync subtitles to speech

Subtitles from another release often show a few seconds early or late, or drift further off as the film goes on because they
were timed for another frame rate. Right-click the subtitle track's header (on a phone, hold it) and choose **Sync subtitles to
speech…**. The NAS listens to the film's first audio track, and on a track with a centre channel (5.1, 7.1) only to that
channel, where films put the dialogue. On a stereo track it listens to the sound common to both channels, the centre channel
**Quickly create film with voice-over** makes from stereo, so music and effects spread over the two sides count less. It
notes where people speak and compares that with when the subtitles show, so the subtitles' language does not matter.
Meanwhile the window says **Analysing the speech in A1: 40%**. The "?" beside the window's title opens this section.

*Figure: The Sync subtitles to speech window*

The window then shows what it found, and nothing changes until you press **Apply**:

- **Audio track:** the track it listened to. When the answer from the first audio track is not sure, the film's other audio
  tracks are listened to as well, and the surest answer is shown.
- **Frame rate:** when the subtitles were timed for another frame rate, for example `25 → 23.976 fps` for subtitles made for a
  PAL release. It finds the changes between 25, 24 and 23.976 fps, and between 30 and 29.97 fps, either way round. A small
  steady drift that no frame rate explains (up to 0.3 %) shows as **Speed:** in percent instead.
- **Shift:** how far the subtitles move, earlier or later, after the frame rate change. The search goes up to a minute either way.
- **Matching parts:** the subtitles are compared in parts of twelve, and this says how many parts agree with the result.

**Apply** moves every subtitle of the track, and Ctrl+Z puts them all back in one step. For a known frame rate the times are
computed exactly, as **Change frame rate** does.

The NAS analyses each audio track's speech once and keeps the result, so a second sync of the same film starts at the
comparison. The same subtitles asked again are answered at once. On a NAS with an Intel Core i5 of 2022, a two-hour film's
speech takes about 10 seconds and the comparison under a second; a NAS with a slower processor takes longer.

When the subtitles do not match the speech even when moved by up to a minute, or the track has fewer than 20 subtitles or covers
less than a minute of the film, the window says so and nothing changes. Subtitles from a cut with scenes added or removed can
match nowhere as a whole; set two subtitles by hand with **Sync points**. When the film has too little dialogue to compare,
the window says so in the words **Quickly create film with voice-over** uses, and nothing changes: the subtitles are compared
two minutes at a time, and fewer than four such stretches had enough speech and subtitles to tell one place from another
(always so for subtitles that cover less than seven minutes of the film). Match their timing to another subtitle track of the
film, or set two subtitles by hand with **Sync points**. The sync needs the video on the timeline in one clip, and a subtitle
track played from a file also in one clip.

**Quickly create film with voice-over** checks its subtitles against the speech before it reads them, with the analysis this
window keeps, so the film's speech is analysed once for both. Its list of subtitles also holds this project's subtitle tracks
that have subtitles of their own, such as a translation made here ([Quickly create film with voice-over](files#voice-over)).

### Subtitles over the picture

Picture subtitles from Blu-ray (PGS) and DVD (VobSub) show as the pictures they are; DVB subtitles do not show. The NAS reads such a track once, in
the background, as it reads a text track: its subtitles appear as blocks on the track, and the picture showing at the
playhead lies over the video, paused and playing. Their text cannot be edited, translated or read aloud: **Create SRT track**
in the track's menu reads it into a new subtitle track first.

While the film plays, an ASS track as the film has it (no Track Style of the studio over it) is drawn by libass in the page,
with the film's own fonts and the package's: every frame, so a fade, a move or karaoke moves as it does in a player. The
library loads the first time such a track plays (about 1 MB to download); a browser that cannot run it keeps the NAS's
pictures.

While the film stands still, and for every other track, the NAS draws the subtitles at the playhead with libass, the library players use, in the package's fonts. It draws a
transparent picture for each stretch of time where the same subtitles show, and the viewer lays it over the video. While the
film plays, the next subtitles are asked for ahead. SubRip subtitles are drawn in FFmpeg's plain style: white text with a thin
black outline at the bottom centre, its size following the height of the picture. ASS subtitles keep their own styles. Paused, the viewer shows the exact moment of an ASS effect that changes over time, such as a fade, a move or karaoke. After an edit, the new text appears as soon as the NAS has drawn it. On a phone, the field
that edits a subtitle moves up so that the keyboard does not cover it.

A style or a `{\fn…}` tag can name a font that neither the film, the added fonts nor the package has, such as `sans-serif`
or Arial. The NAS has no other fonts to choose from, so the preview draws such text in DejaVu Sans, as a player draws it in
its default font. The saved MKV keeps the font name the subtitles have.

### New subtitles

To write subtitles from nothing, right-click empty timeline space and choose **Add subtitle track**. The new track has no
clip, and the cue list opens on it. Move the playhead, press **Add subtitle**, type the text and press Enter. These subtitles
belong to the film's frames: they show where the video shows those frames, so trimming or cutting the video takes them along,
as it takes the film's own subtitles. A subtitle can only go where there is video; past its end the status line says
**No video at the playhead.** **Save as MKV** writes the track as SubRip (as ASS when it has a Track Style). A track
whose subtitles you have all deleted is left out of the MKV. A clip of a file put on this track (with **Import** or Paste)
cannot be saved with it, and the save names the track.

A subtitle file you added with **Import** is read straight from the file, in the encoding it was read in (or the one you
chose with **Encoding**), MicroDVD at the film's frame rate. A film's own subtitle track is read by a background job.

### Download subtitles

**Download subtitles** opens the Subtitles window of Files for the film the video track plays: the same services, the same
search, **Preview** and badges (see the Files guide, Subtitles). It is in the menu of empty timeline space, beside **Add
subtitle track**, and in the head of the cue list; on a film without a subtitle track, the Subtitles workspace's column has
it under **Add subtitle track**.
On a phone, open **Subtitles** in the menu: the sheet has **Download subtitles** beside **Close**, also when the film has
no subtitle track; a long press on empty track space opens the same menu as on a computer.

A file you download is saved beside the film and comes in at once as a new subtitle track, shown over the picture; Undo
takes the track back, and the file stays beside the film. The first Polish file is `Film.pl.srt`. When a file of that
name is there already, the window asks: **Keep both** saves the new one as `Film.2.pl.srt`, the language still the last
part of the name, so players read it as Polish; **Replace** writes over the other file, and is not offered for a file this
project uses. The new track takes its language from the file's name, or, for a default `Film.srt`, from the language you
downloaded. The status line says, for example, **Subtitle track C2 added from Film.2.pl.srt.** Downloading the same
subtitles again shows their track and adds nothing.

### Fonts

For a selected subtitle clip or subtitle, Info lists **Fonts in the film**: every font the film carries, by the family name a
subtitle style asks for, its style (such as Bold) and its file name. Fonts you add with **Import** (TrueType, OpenType or a
collection) are listed under **Added fonts** in the same way. The NAS draws the subtitles with the film's fonts, the added
fonts and the package's own fonts (DejaVu Sans and the free fonts of the Track Styles below), never with other
fonts on the NAS. **Save as MKV** keeps the film's fonts and attaches the added ones. On a phone these rows stand at the
top of the subtitles sheet.

With nothing selected, Info lists **Subtitle tracks in the file**, every one of them, with its format, language, title and
fonts. An ASS or SSA track lists each font its styles use and where it is: **In the film** with the file name,
**Included with Rtorrent 16**, or not in the film. The preview shows a missing font in DejaVu Sans, and a player picks a
font of its own. A SubRip track has no font of its own: the preview shows it in DejaVu Sans and a player uses its own
font. PGS and VobSub subtitles are pictures and use no font.

### Track Style

A subtitle track of text takes a **Track Style** in Info (on a phone, in the subtitles sheet):

- **None**: the plain style described above; the track stays SubRip.
- **Cinema (Alegreya Sans)**, **Cinema (Lato)**, **Cinema (Montserrat)** and **Cinema (Proza Libre)**: the look of a film's
  subtitles on Blu-ray, pale cream letters (#FFF0CF) with a thin black outline and no shadow, at the bottom centre. The four
  differ only in their free font (SIL Open Font License): Alegreya Sans Bold, Lato Semibold, Montserrat SemiBold or Proza
  Libre SemiBold. Each is sized and spaced to the subtitles it was measured on, with the same letter height and about the
  same width; Alegreya Sans and Proza Libre come closest to the letters of those subtitles. Each line of a subtitle is
  written as its own line in the ASS file, so the lines keep their distance; a line that a player wraps by itself keeps its
  font's own.

The first choice puts the track's subtitles in the project, as a first edit does, and Undo takes it back. When you save, the
track is written as ASS in that style and the style's font files are attached (the font's upright face and its italic); a
font file the film already carries is not attached again. Sizes follow the height of the
frame: on a 1920×800 picture a line is 50 pixels high and a capital letter about 27. A film with black bars inside its frame
(a 1920×1080 frame holding a 2.40:1 picture) gets larger subtitles than one without them. On an ASS track the list starts
with **Own styles (ASS)**, its styles as they are. Another Track Style turns the track into SubRip subtitles in that style:
the text keeps its italics, bold and place at the top, the ASS styles are replaced, and Undo gives the ASS track back.

#### Your own style

**Edit style** under the list opens the fields of the track's look, starting from the look it has now (an ASS track's own
style, a Track Style's, or the plain style):

| Field | What it sets |
| --- | --- |
| Font | a font the NAS has: the package's own, the fonts inside the film, and the fonts you added with **Import** |
| Font Size | the size of the letters |
| Bold, Italic | the whole text bold or slanted (a word marked in the text stays as it is) |
| Fill | the colour of the letters |
| Stroke, Stroke width | the colour and width of the outline around the letters |
| Shadow, Shadow distance | the colour of the shadow and how far below and to the right it falls; 0 is no shadow |
| Background | a box of one colour behind the text. It takes the stroke's place, as ASS draws it, so its padding is the stroke width |
| Position | where the text stands: top, middle or bottom, on the left, in the centre or on the right |
| Side margin, Vertical margin | the distance from the picture's sides and from its top or bottom edge |

Sizes are pixels of a 1920 × 1080 picture and follow the picture's height, so the subtitles look the same on a 720p and a 4K
copy. While the fields are open, the picture shows the track in them (on a phone the subtitles sheet moves down under the
picture so you can see it); **Cancel** leaves the track as it was. **Apply** gives
the track this style in one step that Undo takes back (an ASS track becomes SubRip in it) and keeps it as **My style** on the
NAS: the Track Style list of every other subtitle track, and the **Track Style** field of **Translate subtitles**, then offer
**My style**. A track whose own style is not My style shows **Custom style** in the list.

**Save as MKV** writes such a track as ASS in its style and attaches its font when it is one of the package's (a font of the
film is in the film already, and an added font is attached as every added font is). **Export** keeps the style in an ASS
file, which names its font but cannot hold it: a player of that file needs the font installed. SubRip and WebVTT cannot keep
a Track Style, and the export window says so when you choose them. When a style names a font the NAS does not have (an ASS
track's own may name `sans-serif`), the editor says so, the picture shows DejaVu Sans, and the saved file keeps the name.

### AI translation and speech

**Translate subtitles**, **Create subtitles from speech**, **Create new voice-over track**, **Preview voice-over** and
**Quickly create film with voice-over** run on the built-in engine or on a service of your own, each with its own API key: OpenAI (or a server of
yours that answers like OpenAI) and ElevenLabs.

| Feature | Built-in (on the NAS) | With a key |
| --- | --- | --- |
| Translate subtitles | Argos for English → Polish; Bergamot (Firefox's translation models) for the other languages, through English when neither side is English | OpenAI |
| Create subtitles from speech | Whisper (whisper.cpp): large-v3-turbo or small | OpenAI or ElevenLabs |
| Create new voice-over track | Piper voices, two or three for each language: darkman, bass and gosia (Polish), thorsten and kerstin (German), siwis and tom (French), serena and paola (Italian), pim and nathalie (Dutch), nst and alma (Swedish), joe, norman and cori (English) | OpenAI or ElevenLabs |
| Preview voice-over | the same Piper voices: the one chosen for the track's language | OpenAI or ElevenLabs |

The built-in engine runs on the NAS. The first time it is used, the NAS downloads the program and the
model or the voice it needs, and keeps them for the next time.

The defaults are set once in **Media library → AI translation and speech**, the part of the Media library's settings right
after **Subtitles**. Like the other groups there, each field has a "?" that says what it is for. The keys come first:
**OpenAI API key** and **ElevenLabs API key**. A key's "?" says which features use it, what the NAS sends the service and what
to allow when you create or restrict the key, with **Create a key at OpenAI** or **Create a key at ElevenLabs** (the service's
key page, in a new tab). Paste the key and press **Save and check**. The NAS saves the key in a file only its administrator can
read and asks the service which models this key can use; the line under the field says **The key works.** or what is wrong.
The panel never shows the key again: the field shows dots, its button says **Check**, and a new key typed there replaces the
saved one. **Remove key** takes it off the NAS.

If a key works but lacks a permission, the check says which one and what to allow. An ElevenLabs key needs **Voices (Read)**,
**Text to Speech** and **Speech to Text**; the check reads one voice of your account, which costs nothing.

Then one field for each feature:

| Field | The default of | What it offers | Chosen at first |
| --- | --- | --- | --- |
| Subtitle translation | Translate subtitles and Quickly create film with voice-over | **Built-in (on the NAS)** and the OpenAI models of your key | The built-in engine. With an OpenAI key saved, `gpt-6-luna`, OpenAI's cheapest: in our test it translated film subtitles almost as well as `gpt-6-astra`, which costs a hundred times more and stays in the list. |
| Speech recognition (speech → subtitles) | Create subtitles from speech | **Built-in (on the NAS)** and the OpenAI and ElevenLabs models of your keys | The built-in engine. With a key saved, `whisper-1`, the only OpenAI model that returns the times subtitles need; scribe_v3 with ElevenLabs. |
| Speech synthesis (subtitles → speech) | Create new voice-over track, Preview voice-over and Quickly create film with voice-over | **Built-in (on the NAS)** and the OpenAI and ElevenLabs models of your keys | The built-in engine. With a key saved, `gpt-audio-1.5` with OpenAI, eleven_v4 with ElevenLabs. |
| Voice | The voice speech synthesis reads in | On the built-in engine, the voices of each language, one row a language; OpenAI's voices; with ElevenLabs, your account's voices and the Voice Library's voices in the panel's language | darkman for Polish and the first voice of each other language on the built-in engine; `cedar` with OpenAI. |

Each option names the model and says in a few words what it is; the field's "?" says why you would choose the one chosen, from
our measurements and the services' own pages. The services list only what your key can use, and the rest of it stands under
**Other models** in each list (**OpenAI · Other models**, **ElevenLabs · Other models**). A model its service has
retired is not offered, and one it is retiring says when. A choice is saved as soon as you make it, and the field says
**Saved.**

The built-in engine reads each language in its own voices. With it, **Voice** has one row for each language, the panel's
language first: Polish offers **darkman** (male, calm, in the style of a voice-over; the default), **bass** (male, very deep)
and **gosia** (female); German, French, Italian, Dutch and Swedish offer two each, English three (joe, norman and cori). Each voice is named with what it sounds like,
and in the list one that is not on the NAS yet shows what it downloads, such as **66.4 MiB to download**; once chosen, its row
says **This voice is not on the NAS yet. It downloads the first time it is used (66.4 MiB).** A choice is saved for its language as soon as you make it; a job reads with
the voice chosen for its subtitles' language, and a window's **Advanced** part can choose another of that language's voices
for one run. bass is a high-quality voice: the NAS needs about five times as long to make speech with it as with darkman. The
"?" of **Voice** names each voice's licence. Each row has its own play button, which reads one sentence in that row's voice.
The play button beside **Voice** reads one sentence in the chosen voice: ElevenLabs' own sample; for OpenAI, a sentence read
once with your key, which costs as much as a few seconds of speech and is then kept on the NAS; for the built-in voice, a
sentence read on the NAS, where the first play may download the voice first and the field says **Downloading the voice…**
meanwhile. **Preview voice-over** is something else: it plays the film while the voice reads its subtitles.

#### Add a Piper voice of your own

Any Piper voice can join the built-in ones, such as one you trained yourself or one from the Piper voice list that the
package does not ship. A Piper voice is two files: the voice model (`.onnx`) and its settings file (`.onnx.json`).

1. Under **Voice**, with the built-in engine, press **Add a Piper voice**.
2. Press **Choose files** and select both files at once.
3. Press **Add voice**. The window shows **Uploading:** with the bytes sent, then **Checking the voice…**. The first time,
   the NAS may download its voice-over program first, and the window says **Downloading the voice-over program (…)…**.

The NAS reads the language's sample sentence with the voice before it keeps it. The voice then appears in the row of its
language, after that language's built-in voices, named after the voice's own name with **your voice** beside it, such as
**radio · your voice**. Choose it there like any other voice; its play button plays the sentence the check read. Under the
rows, each voice of your own has **Remove**, which deletes it from the NAS; speech tracks made with it stay.

The NAS refuses a voice, and keeps nothing of it, when:

- the two files are not a Piper voice model and its settings file, or the model is over 250 MiB;
- the voice's language is one the voice-over program cannot pronounce (it reads Polish, German, Dutch, Swedish, French,
  Italian, English, Spanish and Greek);
- the voice does not read the sample sentence, which is the case when the two files belong to different voices;
- the same model is already on the NAS.

A voice whose name a built-in voice of its language already has gets `_2` after its name. The NAS keeps up to ten voices
of your own. Only the two files travel, from your computer to the NAS; nothing is downloaded for the voice. A model with
several speakers reads with its first speaker.

With the page's **Advanced** switch on, **Address of an OpenAI-compatible service** takes the address of a server on your
network, up to `/v1`, such as `http://192.168.1.20:8000/v1`. The panel cannot judge such a server's models, so they all show
under **Other models**.

Each window that runs a feature (Translate subtitles, Create subtitles from speech, Create new voice-over track and Quickly
create film with voice-over) holds its fields, one line on who does the work and what goes where, and any warning; the "?"
beside its title opens its section of this guide over the window. Each can depart from these defaults in its own **Advanced** part, closed at first. Closed, its line says what the run
uses, such as **Advanced · Default: Built-in (on the NAS), Argos**; a service's model by the name its service gives it,
such as Eleven v4 Turbo. Open, it chooses the **Engine**, the **Model** and, in Quickly create film with voice-over, the
**Voice** with its play button (Create new voice-over track shows the voice above, as its one choice), for this run only: nothing there is saved, and its "?" says where the defaults are. For
English → Polish the built-in engine offers Argos and Bergamot, for the other languages Bergamot. An engine that cannot run is
listed but cannot be chosen, and the part says why, such as **OpenAI: API key missing. Add it in Media library settings.**,
with a link to **Media library → AI translation and speech**.

What leaves the NAS, and when:

- **Translate subtitles**: on the built-in engine, nothing. With OpenAI, the text of the subtitles, when you press
  **Translate**; the window counts the subtitles and their characters before you start.
- **Create subtitles from speech**: the audio the clip plays, as 16 kHz mono WAV in pieces, to OpenAI or ElevenLabs, when you
  press **Create**.
- **Create new voice-over track**: on the built-in engine, nothing. With OpenAI or ElevenLabs, the text of the
  subtitles that are on the timeline when you press **Create track**, without its formatting; the window counts the
  subtitles and their characters before you start.
- **Preview voice-over**: on the built-in engine, nothing. With OpenAI or ElevenLabs, the text of the subtitles coming up while
  the film plays with the preview on, without its formatting.

The NAS sends a clip's audio only for Create subtitles from speech, and it sends no video. Each key goes to its own service
only, in the request's header. The NAS keeps both keys in one file only its administrator can read, and no job, log or
project file holds them. The services' own terms and prices apply.

Each of them but Preview voice-over runs as a job in Files. In the jobs list behind the top bar's button, its title says what it does and
on what, such as **Translating subtitles · C2 → Polish**, with the film on the line under it. The steps from the keys to the
saved film are in [AI subtitle translation and an AI voice-over, step by step](#ai-subtitle-translation-and-an-ai-voice-over-step-by-step).

### What a voice-over costs

The built-in engine costs nothing. OpenAI and ElevenLabs charge for what they translate and read, by their own price lists.
The table shows what one episode costs on each, with prices read on 14 November 2026 from
[OpenAI's pricing page](https://developers.openai.com/api/docs/pricing) and
[ElevenLabs' API pricing page](https://elevenlabs.io/pricing/api), in US dollars. The example is Halt and Catch Fire S03E03,
42 minutes, with its English subtitles for the deaf, read into Polish on 14 November 2026. The translation is sent all 694
subtitles, 23,866 characters of English. 651 of them have words for a voice (sound descriptions and songs are not read):
21,417 characters of Polish, from which OpenAI's voice made 34 minutes of speech.

| Step | Engine or model | One episode |
| --- | --- | --- |
| Translation | Built-in (Argos, Bergamot) | free |
| Translation | GPT-6 Luna | under 1 cent |
| Translation | GPT-6.1 Terra | about 0.05 |
| Translation | GPT-6.1 Sol | about 0.10 |
| Translation | GPT-6 Astra | about 0.55 |
| Voice | Built-in (Piper) | free |
| Voice | Eleven v4 Turbo, Eleven Flash v2.5, Eleven Turbo v2.5 | 0.86 |
| Voice | Eleven v4, Eleven v3, Eleven Multilingual v2 | 1.71 |
| Voice | TTS-1 / TTS-1 HD (OpenAI retires both on 6 January 2027) | 0.32 / 0.64 |
| Voice | GPT-4o mini TTS (retires on 6 January 2027) | about 0.50 |
| Voice | GPT Audio 1.5 | about 2.80 |

How the numbers are counted:

- **Translation**: OpenAI bills tokens. The job sends the subtitles in batches of 40 with the same instructions each time,
  about 9,000 tokens in and 9,000 out for this episode (about 4 characters of English and 3 of Polish to a token). GPT-6 Luna
  costs 0.10 a million tokens in and 0.50 out, GPT-6.1 Terra 1 and 5, GPT-6.1 Sol 2 and 10, GPT-6 Astra 10 and 50. A model
  that thinks before it answers bills that thinking as tokens out too, so its cost can be higher. The lines too long for their
  time go to the same model once more, 40 to a request, for a shorter text: the translation costs a little more, and the
  voice gets fewer characters.
- **ElevenLabs**: 0.08 for 1,000 characters with Eleven v4, Eleven v3 and Eleven Multilingual v2, 0.04 with Eleven v4
  Turbo and the Flash and Turbo models. The same page lists the characters each plan includes, in the order of the plans:
  Starter (6 a month) 75,000 of Eleven v4 or 150,000 of Eleven v4 Turbo, about 3 or 7 such episodes; Creator (22 a month)
  275,000 or 550,000, about 12 or 25; Pro (99 a month) 1,238,000 or 2,475,000. ElevenLabs' plans page states the plans in
  credits instead, such as 30,000 a month for Starter.
- **TTS-1 and TTS-1 HD**: 15 and 30 for a million characters of the translation.
- **GPT Audio 1.5 and GPT-4o mini TTS**: OpenAI bills the speech as audio tokens out, 64 and 12 a million. Its pricing page
  does not say how many tokens a minute of speech is; its [Realtime API guide](https://developers.openai.com/api/docs/guides/realtime-costs)
  counts one token for every 50 ms a voice speaks. At that rate the 34 minutes are 40,800 tokens: 2.61 with GPT Audio 1.5,
  plus about 0.15 for the text each subtitle is sent with and the text it answers, and 0.49 with GPT-4o mini TTS. The exact
  amount is on your OpenAI usage page.

Three runs of 14 November 2026 on Halt and Catch Fire season 3:

| Episode | Translation and voice | Took | Paid |
| --- | --- | --- | --- |
| S03E02 (43 min, 756 subtitles) | built-in, voice bass | 39 min | nothing |
| S03E03 (42 min, 694 subtitles) | GPT-6 Astra, GPT Audio 1.5 (voice ash) | 30 min | about 3.25 by the table: the translation and 636 subtitles read, 15 were kept from an earlier run |
| S03E01 (44 min, 508 subtitles) | none needed (Polish subtitles), Eleven v4 Turbo with a voice of the account | 12 min | 150 subtitles: 350 came from the account's ElevenLabs history and 8 were kept on the NAS. All 508 (18,572 characters) would cost 0.74 |

A second run with the same voice does not pay twice for a subtitle. The NAS keeps every subtitle a service read, for that
film, its subtitles and the language, for 30 days after a voice-over last used them, and keeps the translation too: run the
voice-over again with the same voice and only subtitles not read yet go to the service. With ElevenLabs the job also takes a subtitle already in your
account's history (the same text, voice, model and settings) from there, and that is not charged. The built-in engine reads
everything again, at no cost.

### Create subtitles from speech

Right-click an audio track's header or one of its clips (on a phone, hold it) and choose **Create subtitles from speech**, or
press the button of that name in Info. A film with no subtitle track has the same button under **This film has no subtitle
track yet.** in the subtitle list, and the timeline's own menu has the item too. Pick the language spoken in the clip: the
track's own language comes first, then **Detect automatically**, which lets the engine hear the language. The window says
where the audio goes, and its **Advanced** part chooses the engine and the model for this run. Press **Create**. The NAS takes
the part of the audio the clip plays in pieces of 10.5 minutes that overlap by 30 seconds, and the status line shows the
progress with **Stop**. The job also shows in Files' jobs and in the jobs list at the top.

The built-in engine is Whisper on the NAS (whisper.cpp), with no key. It is the default when
no OpenAI or ElevenLabs key is saved. **Advanced** offers two models:

| Model | Download | Free memory it needs | 120 s of speech on an Intel Core i5-1235U, on the processor (8 threads) | The same on its Iris Xe graphics |
| --- | --- | --- | --- | --- |
| large-v3-turbo (the default) | 574 MB | about 1.1 GB | 136 s, a little longer than the film | 23 s |
| small | 190 MB | about 700 MB | 45 s, but it mishears more words | 15 s |

The first run downloads the program (about 3 MB, from Rtorrent 16's download server) and the model (from Hugging Face), and
the NAS keeps both for the next time. On a NAS with Intel graphics, recognition runs on the graphics: the first run there
also downloads the program for them (about 22 MB), the job's lines say **Runs on: Intel graphics (Vulkan)**, and the
processor stays almost free for the NAS's other work. Graphics older than those of the Celeron J3455 and the 6th
generation Core (the Celeron J1900 and N3150 generation) cannot run it: the first job there says so once, and every job
runs on the processor. If the graphics fail during a job, the job says so and goes on on the processor from the same
part, so nothing is lost. A processor with AVX2 (Intel Core, Intel N100, AMD Ryzen) runs the faster build of the
program. On one without it (the Celeron J and N models of many NAS) recognition takes many times longer, so such a NAS starts
with **small**, and so does an ARM NAS. A job that finds less free memory than its model needs stops before it starts and
says how much it needs.

When the job ends, a new subtitle track appears with a subtitle for each segment the engine returned (usually a sentence or
a phrase), placed where the clip plays it, in the language you picked or, with **Detect automatically**, the one Whisper heard.
**Translate subtitles** and **Create new voice-over track** work on it like on any subtitle track. ElevenLabs returns the
time of each word, and the NAS makes the subtitles from them: a subtitle ends with a sentence, at a pause of more than 0.8 seconds, or before it would run past 7 seconds or 84 characters. A
sentence heard in two pieces is kept once. These subtitles belong to the film's frames, like subtitles you write on a new
subtitle track, so they move with the video. Undo takes the whole track back. If you leave the studio, the job runs on, and the
track appears when you next open the film in the studio, within a day of the job's end.

### Create new voice-over track

Click a subtitle track's header (on a phone, tap it) and choose **Create new voice-over track**. A voice reads the subtitles
onto a new voice-over track of the project, for you to edit and mix in the studio; the film stays unchanged. A finished film
with a voice-over, in one step, is what **Quickly create film with voice-over** makes, as a new film file next to this one.
While the NAS still reads the track's subtitles, the window says how far it is, such as **Reading the subtitles: 40%**, and
**Create track** waits for it. The **Voice** with its play
button stands on top, the window's one choice. Under it the facts: **Speech synthesis** says who reads (**Built-in (on the
NAS)**, whose "?" says nothing leaves the NAS, or **ElevenLabs, with your key**), **Sent to ElevenLabs** how much text the
service gets before you start, such as "1,020 subtitles, 41,230 characters", and **New track** the file's name. What that costs
is in [What a voice-over costs](#what-a-voice-over-costs). **Advanced** chooses the engine and the model for this run. Press **Create track**.
A "?" beside a fact opens its help under its line, on a phone and on a computer, so it never hides the voice or the
buttons; the "?" beside the title opens this section over the window.

While the job runs, the line under the timeline shows its percent and **Stop**; an edit does not take it away, and a refusal is
drawn in red apart from it. The **Background jobs** button at the top shows it too. When the job ends, the line says "Voice-over
track A3 is ready on the timeline, made from C1."; **Show file** names the file and its folder. The new track is called
"Voice-over track (C1)".

On the built-in engine the NAS reads with the voice of the subtitles' language: Polish, English, German, French, Italian,
Dutch or Swedish, each with up to three voices (English: joe, norman and cori). The first time a voice is used, the NAS downloads
it and its program. For a language it has no voice for, the window says so: set the track's language in Info, or choose OpenAI or
ElevenLabs under **Advanced**. A track of picture subtitles has no text to read: the window offers **Create SRT track**.
**Advanced**, closed, says what will run: the defaults of Media library → AI translation and speech while you change nothing,
the engine and model you picked once you pick another. With OpenAI
or ElevenLabs the NAS sends the text of each subtitle, without its formatting, to the service; ElevenLabs offers your account's
voices and the Voice Library's, with the one chosen in Media library → AI translation and speech picked.

The speech is placed as **Quickly create film with voice-over** places it: each line starts 0.85 s after its subtitle when it has the room, as
the voice-overs measured on real films do, and two lines are never heard at once. A long line starts sooner, at the earliest with its subtitle; the NAS
makes a line that still does not fit at most 1.1 times faster with its pitch kept, for every voice, and the next line waits about half a second after it,
at most until 2.5 s after its own subtitle. A short line of up to three words with no room is left out, and a line that does not fit even then ends at a pause before the
next one. Sound descriptions in brackets,
♪ lines and speaker names in capitals are not read, and a subtitle with no text is skipped. The voice is cut below 50 Hz, as
in the voice-over.

Before anything is read, the window says which lines do not fit at the voice's pace, as **Quickly create film with voice-over**
does ([Lines that do not fit](files#voice-over-fit)): a Polish line is shortened on the NAS and a short line is left out, and
**Show lines** lists them, each with **Keep in full**. No service is asked for it. The new track then marks every line read
shorter, left out or cut short at a pause with a small notch at its foot, in the accent colour for a shorter text. Select a clip
of the track and **Info** lists the marked lines under it, such as "2 lines read shorter, left out or cut"; tap one to open it.
The window shows the full text, what is in the track, and **Text to read** with the shorter text (the full one for a line left
out or cut). Change it and press **Read this line again**: only that line is read in your wording, and the window says what it
costs, such as "OpenAI reads this line again: 18 characters, paid with your API key. The other lines are kept as they were read."
The new reading takes the old track's place, with its name. On the built-in engine the NAS reads the track again with the line
changed; it costs nothing.

The speech is saved next to the project as a FLAC file named after the film, the track and the voice's name, such as
`Film (C1, darkman).flac`; if that name is taken, the file gets `(2)`. It appears as a new audio track in the language of the
subtitle track, with one clip for each stretch of speech, so a line can be moved, cut or deleted like any clip. The clips are
not linked to the video, so a later cut in the video does not move them. If you no longer need the track, delete it and the file.

Made again from the same subtitle track in the same language with OpenAI or ElevenLabs, the track asks the service only for the
subtitles whose text changed: the NAS keeps every answer it was sent, and with ElevenLabs it downloads readings your account
already paid for from its history. The built-in voice reads every subtitle again; it costs nothing.

### Lines that do not fit the voice-over

Before a voice-over is read, the subtitle panel shows which lines the voice cannot read in their time. Pick a subtitle track and
press **Voice-over** above its list: the list becomes the voice-over's lines that do not fit, for the voice **Create new
voice-over track** reads with, and the same subtitles get an amber wash and bar on the timeline, so you check them against the
picture. **Voice-over** again shows the subtitles.

The list works as in Files ([Edit, listen and go through the lines](files#voice-over-fit-edit)): **Edit** with its live check,
the proposal without repetitions, **Listen**, **Only those that do not fit**, **Previous** and **Next**. In the studio:

- your wording is kept on the subtitle itself, as an edit of the project: Ctrl+Z takes it back, and it is saved with the
  project. The subtitle keeps its text unless you tick **Also change the subtitle**. A subtitle with your wording has an accent
  bar under it on the timeline;
- **Listen** plays the film with the studio's player from a second before the line and reads the line at its place over it,
  with the built-in voice: it costs nothing;
- J, K and L stay the player's keys; Alt+Up and Alt+Down go to the previous and next line that does not fit and move the
  playhead there; Enter edits the line;
- the check runs again 0.6 s after each change of the track.

**Create new voice-over track** reads your wording, and its own list of the lines that do not fit has the same **Edit**.

### Mix a voice-over into an audio track

Right-click the header of a track made by **Create new voice-over track** (on a phone, hold it) and choose **Mix into A1** in the
top row of its menu. The tile names the audio track the voice is mixed into, or, before that, the first audio track it can go
into; each other audio track it can go into is an item of its own below, such as **Mix into A2**. The two are then mixed as **Quickly create film with voice-over** mixes its new
track: the voice in the centre channel (in both channels of a stereo track, 3 dB lower in each), set against the loudness of the
project's audio track it was measured against when it was made, while the captions are on screen, and the original lowered as the
profile says. **Dialogue lowered under the voice**, the default, keeps the original at its level and lowers only where its
dialogue lives while the voice speaks: the centre channel 10 dB, the voice at the original's dialogue loudness, the speech track
prepared by its own measurements when it was made. A stereo or mono track takes Classic voice-over when it is first mixed: the
studio cannot single out its dialogue, and with this profile it would lower the whole track 10 dB under each line.
**Classic voice-over** is how four of six real Polish voice-over tracks were mixed: the original 6.5 dB
lower all through, the voice 2.5 LU under the original's dialogue. A voice-over track made by an earlier version keeps the
earlier rule: the voice 1.5 LU under the original's whole loudness. **Film ducked under the voice** lowers the original 1.8 dB all through and 19 dB
more under each clip of the speech track, going down over 0.75 s from 0.25 s before the voice and back up over 0.8 s after it.
**Quiet voice-over** lowers the original only 2.5 dB and keeps the voice level with the film. **Film lowered slightly under
the voice** lowers it 3.7 dB all through and 1.8 dB more while the voice speaks. When the voice would take the track's true peak above the higher of its own peak and -1 dBTP, the whole
track is turned down by the difference. The preview plays the mix the same way, and **Save as MKV** writes the two as one
track, the chosen one with the voice in it; its window lists the speech track as going **into channel C** of that track (**L+R**
on a stereo track). The tile stays lit while the voice is mixed: tap it again to take the mix away, or press Undo.

*Figure: The menu of a voice-over track mixed into A1: Mix into A1 lit in the top row, Mix into A2 below, then the profile*

The chosen track keeps its name and language. To keep the original too, use **Duplicate track** on it first and mix into the
copy, then name the copy in Info, such as Polski (lektor). Once the track is mixed, **Voice-over profile** in the same menu
switches the profile; the original's level, the voice's level and its start follow at once. On a track with a centre channel,
**Turn down under the voice** in the same menu chooses **All channels** or **Centre channel only** (where **Dialogue lowered under
the voice** starts; the other profiles start with all channels): then only C,
where films put the dialogue, is lowered the way the profile lowers the film (all through, and more under the voice where the
profile does that), and the other channels keep their level, in the preview and in the saved track. A stereo track has no centre in the studio, so its whole sound goes down; **Quickly create film with
voice-over** can make a centre from a stereo track (the Files guide, [Quickly create film with voice-over](files#voice-over)).

### Preview voice-over

To hear a subtitle track read aloud before you make an audio track of it, right-click its header (on a phone, hold it) and
choose **Preview voice-over**, or tick it in Info. It is a switch and has no **Advanced** part: it reads with
the default of **Speech synthesis** and **Voice** in Media library → AI translation and speech. While the film plays, it asks
for the subtitles coming up: the next four that start within 20 seconds of the playhead, two at a time. Each subtitle's text is
read once, without its formatting, and the speech is kept in the studio's cache, so playing the same part again asks for
nothing. Play waits up to 3 seconds for a subtitle that starts in its first second.

On the built-in engine the NAS reads each subtitle with the Piper voice chosen for the track's language, such as darkman for a
track in Polish. While that voice is not on the NAS yet, the first subtitles are left out with the line **The NAS is downloading the
built-in voice. Preview voice-over reads the subtitles once it is there.**, and the next ones are read once it is there. On a
track with no language set, or in a language with no built-in voice, the preview stops with **The built-in engine has no voice
for the language of these subtitles.** With OpenAI or ElevenLabs the NAS sends each subtitle's text to the service.

Each spoken subtitle is placed and mixed the way **Quickly create film with voice-over** does it with **Classic voice-over**
(see [Mix a voice-over into an audio track](#mix-a-voice-over-into-an-audio-track)): 0.85 s after the subtitle starts, sooner or a little faster when
it is long, a short one left out when there is no room, never over the one before; and while the switch is on every audio
track plays 6.5 dB quieter. On a computer the meter shows the speech as a track of its own, such as C1, next to the tracks it lowers.

One subtitle track is read aloud at a time: turning it on for another track turns it off for the first. Nothing is saved. The
switch is not part of the project or of Undo, and Save as MKV never includes the speech. It goes off when you turn it off, leave
the studio or delete the track.

If the speech cannot be made, the switch goes off and the status line says why, for example **Preview voice-over stopped. The
speech service refused the API key. Check the key in Media library → AI translation and speech.** The film plays on without
speech. A busy service, or a subtitle the service refuses, leaves that subtitle out with one line, and the next subtitles are
still asked for. A subtitle that began before the playhead, after you jump into its middle, is not asked for; speech that
arrives late plays from where it would be by now.

### Translate subtitles

Right-click a subtitle track's header (on a phone, hold it) and choose **Translate subtitles**, or press the button of that name
in Info. The window shows the language of the subtitles, when the track has one, and offers the other languages: pick the
language to translate into and press **Translate**. The window opens on the first of these that it offers (it never offers
the subtitles' own language): Polish on a Polish panel, the language you picked last in this window or in **Quickly create
film with voice-over**, the panel's language, Polish, English. The window says which engine translates and what leaves the NAS, and its
**Advanced** part chooses the engine and the model for this run. Subtitles that are pictures (PGS, VobSub) have no text, so they
cannot be translated.

On the built-in engine the NAS translates by itself and nothing leaves it. It needs the language of the subtitles: on a track
without one the window says so, and **Translate** stays off until you set the track's language in Info or choose OpenAI under
**Advanced**. Between two languages it has no way for (Spanish into Polish, for one) the window says so too. The first time,
the NAS downloads the translation program and the model.

With OpenAI the NAS sends the text of the subtitles to the model, up to 40 subtitles at a time, each subtitle as one line with
its line breaks and its formatting tags, such as `{\i1}` or `<i>`. It checks every answer: one line for each subtitle, in the
same order, with the same tags. When a translation breaks into lines differently from its subtitle, the NAS wraps it: a dialogue
gets one speaker a line, other text stays on one line up to 42 characters, and a longer line is cut in two near the middle,
after a comma or a full stop where there is one. An answer that does not fit is asked for once more. If the second one does not
fit either, the job stops and adds nothing, and the status line names the subtitles: **The model gpt-6-luna did not return a
usable translation of subtitles 41–80. Try again, or choose another translation model in Media library → AI translation and
speech.**

Subtitles with no text are not translated and stay as they are. The status line shows the progress with **Stop**, and the job
also shows in Files' jobs.

The window's **Track Style** says how the new track looks: **As in C1** keeps the old track's format and styles, **None** gives
plain SubRip subtitles, and a style such as **Cinema (Lato)** gives SubRip subtitles in that style, which **Save as MKV** writes
as ASS (see [Track Style](#track-style)).

When the job ends, a new subtitle track appears right under the old one: the same subtitles at the same times, with the
translated text, in the Track Style chosen. It is named after the language, in the panel's language, such as Polish, and tagged
with it, and it is the one shown over the picture. Undo takes the whole track back. If you leave the studio, the job runs on,
and the track appears when you next open the film in the studio, within a day of the job's end. Deleting or moving the project
file stops the job.

### Match timing to another subtitle track

Right-click a subtitle track's header (on a phone, hold it) and choose **Match timing to C1**, or press that button in Info.
Nothing changes until you press **Apply**, and Ctrl+Z puts every subtitle back in one step.

- A translation keeps the times of the track it was made from, subtitle by subtitle, so it lines up by itself. The window
  says **Timing from:** C1 and **Subtitles moved:** 0 of 829, and that the subtitles already match. When C1 was moved after
  the translation (with **Sync subtitles to speech**, **Shift subtitles** or **Sync points**), **Apply** gives each
  translated subtitle the times of its original.
- Subtitles from another file are compared with C1 as **Sync subtitles to speech** compares them with the speech, C1's
  subtitles standing in for the speech: the window shows **Frame rate:** or **Speed:**, **Shift:** and **Matching parts:**,
  and **Apply** moves them all. Subtitles made for another cut of the film, with scenes added or removed, line up nowhere as a
  whole, and the window says so; set two subtitles by hand with **Sync points**.

### Quickly create film with voice-over

A subtitle track that comes from one of the film's own subtitle tracks has **Quickly create film with voice-over** in its header's menu and in Info.
It opens the Files window of the same name for the film, with those subtitles chosen: the job makes a new MKV beside the film,
with a voice-over track mixed into the film's sound, and leaves the film and the project as they are. It runs in Files' jobs. It
takes its engines from **Subtitle translation** and **Speech synthesis** in Media library → AI translation and speech, and its
**Advanced** part chooses others for one run. The Files guide explains it under [Quickly create film with voice-over](files#voice-over).

## Preview

**Play** starts the picture and every track that is not muted. **M** silences a track at once, and **S** leaves the soloed tracks. Past
the end of the picture, the sound plays on over the last frame. J goes backward and L up to eight times faster, both in silence.

**Loop playback**, the button after the frame steps (Ctrl+/), plays the range between In and Out again and again, or the
whole timeline when no range is set. A play started outside the range starts at In.

**Full screen**, the button after it (Ctrl+`; on a phone, in the menu), shows the picture on the whole screen; Esc goes back. On an iPhone the
browser shows the video itself on the full screen, without the exact frame and the subtitles drawn over it.

The picture plays from pieces copied from the film, so it costs the NAS only disk reads. Pausing shows the exact frame, decoded on the
NAS, and the viewer says **Exact frame**.

To step frame by frame, pause and press Left or Right, or the buttons beside Play. Shift moves five frames. A step counts from
the frame on screen, so after a pause in the middle of a frame Right shows the next one. The viewer shows the video's own frame at
once and replaces it with the NAS's exact frame when you stop pressing, so ten quick steps ask the NAS for one frame. The timecode
beside the buttons reads hours, minutes, seconds and frames, and the film's frame rate follows it, for example 23.976 fps.

**Audio Meters** stand beside the picture. Each track you hear gets a bar per channel: FL, FR, C, LFE, SL and SR for 5.1, then BL
and BR for 7.1, and L and R for stereo. **Master** is the stereo that reaches your speakers. The light part of a bar is the peak and
the solid part the RMS level, on a scale from −60 to 0 dBFS. The light on top of a bar turns red when the sound reaches full scale
and stays red for 2 seconds. A muted track leaves the meter. The bars move while the film plays and empty when you pause. On a
phone, one bar under the picture shows the master, left above right.

A 5.1 or 7.1 track plays in stereo, mixed down as FFmpeg mixes it, without the LFE. When the browser cannot decode all of a
track's channels, that track plays as FFmpeg's stereo mix and the meter shows it as L and R.

If the browser cannot play the film's picture, the viewer says **Making a preview copy: 12 %**. The copy is H.264 at most 960x540,
made on Intel graphics or an NVIDIA card when the NAS has one, else on the processor,
kept in the cache and made again only if the cache loses it. On a small NAS it can take longer than the film runs. Until it is ready, the sound
plays and the viewer shows key frames. When you leave the studio while the copy is made, it asks whether to keep it
running; **Stop** ends it, and the next visit starts it over.

Waveforms and thumbnails fill in over the first minutes. The NAS draws the waveforms of all the film's audio tracks in one
read of the file, so on a large film A2 and A3 grow together with A1. Until a track's waveform is drawn, the track says so:
waiting in the queue, being drawn with its percent, or waiting for free memory on the NAS. If the connection drops for a
moment, the studio asks the NAS again by itself and the waveforms carry on.

A phone's browser keeps fewer seconds of the picture than a computer's. With a large film the studio learns how much it
keeps and fetches only that far ahead, so the picture plays on. Undo steps kept in the browser take little room, and the
oldest films' steps go first. Zoomed in far enough, a track shows the samples, so a marker can go on the
exact start of a sound.

## Save as MKV

**Save as MKV** opens the same save window as MKV tools: **From:**, **To:** with its folders, **Name:** with the file that
will be made, then a line for each track, **Chapters:**, the size and the free space after.

Under **Not kept or changed** the window lists what writing the MKV does not keep of the film, for example new IDs for its
tracks. Tick each line to save; a line in red stops the save and says why.

Untick a track to leave it out. A muted track starts unticked.

**Format:** chooses **MKV (Matroska)** or **MP4**, for a phone or a TV that does not play MKV. An MP4 has the same picture,
copied as it is, and the same cuts. Audio an MP4 cannot hold (DTS, TrueHD, FLAC, PCM) is written as AAC, subtitles keep
their text without ASS styles, chapters stay, and fonts are left out. Subtitles made of pictures (PGS, DVD) do not fit in an
MP4: untick them or save as MKV. The name follows the format, for example "Film (edit).mp4".

A subtitle track you edited is written anew from its subtitles, cut where its clips are cut, as SubRip or as ASS like the
track it came from; a WebVTT track becomes SubRip. A subtitle track you did not edit is copied from the film as before. A
subtitle track with no clip of its own (from **Add subtitle track**, **Create subtitles from speech**, or a translation of such a
track) is written from its subtitles, ticked like any other, and **Export** writes it too.

A sound track that stayed whole is copied. An edited track is encoded in its own codec and bitrate, or as FLAC when the source is
DTS or TrueHD. A WAV or FLAC capture becomes FLAC. A picture cut encodes every sound track, because copied sound cannot be cut
exactly. Chapters move with the cuts, and the review names a chapter that lies wholly in a removed part. A cover picture stays out of
the new file, and the review says so.

The save runs as a job in Files, one at a time with Convert, and it can be stopped at any moment. The new file is
checked before it appears. An existing file is never replaced: the new one gets the next free name. If a source changes
during the save, the job fails and saves nothing.

Once the new file is there, the job measures each sound track it wrote; a copied track is the film's own sound and is not
measured. Meanwhile its line says "Measuring the levels: 40 %". For each track the job then adds a line with its loudness
and loudness range, for example "Sound 2 (Polski): loudness −21.4 LUFS, loudness range 7.9 LU", or with before → after
when the studio had measured the source track. A Stop at this point ends only the measuring: the file is already saved.

## AI subtitle translation and an AI voice-over, step by step

This walk-through translates a film's subtitles with a language model and adds a voice-over: one voice reads the
translation over the film's sound, which plays quieter (in Poland this is called a lektor). It uses **Translate
subtitles**, **Preview voice-over** and **Create new voice-over track** with your own API keys: OpenAI for the
translation, and OpenAI or ElevenLabs for the voice. Each service charges by its own price list. The same three also run on
the built-in engine without a key, for the languages it has ([AI translation and speech](#ai-translation-and-speech)). The forum thread
[AI subtitle translation and an AI voice-over in the Media studio](https://forum.qnap.net.pl/threads/rtorrent-16-ai-subtitle-translation-and-an-ai-voice-over-in-the-media-studio.46363/)
shows the same steps with short clips of the result.

### Keys

*Figure: AI translation and speech with both keys saved*

1. Open **Media library** and scroll to **AI translation and speech**, after **Subtitles**. Paste your OpenAI key into
   **OpenAI API key** and press **Save and check**; with a key saved, the button says **Check**. The NAS saves the
   key and asks OpenAI which models it can use. The line under the field says **The key works.**
2. To read aloud or create subtitles from speech with ElevenLabs, paste its key into **ElevenLabs API key** and press its
   **Save and check**. Pick a **Voice**; the play button beside it plays a sample.
3. **Speech recognition (speech → subtitles)** and **Speech synthesis (subtitles → speech)** offer the models of both
   services, and Speech synthesis the built-in engine too: the one you pick is the default and decides which service does the
   work. **Subtitle translation** offers the built-in engine and OpenAI's models. A choice is saved as soon as you make it, and
   each window can choose another one for a single run under **Advanced**.

The panel never shows a saved key again. Its field shows dots, and a new key typed there replaces the saved one.

### The film and the scene

In Files, open the menu of the film and choose **Media studio** in the **Video tools** group. The studio leaves the film as it
is and keeps your edits in a project file beside it.

To work on one scene, put the playhead at its start, press Ctrl+K (**Add Edit**), click the video clip before the cut and
press Shift+Delete (**Ripple Delete**). Then put the playhead at the end of the scene, press Ctrl+K again, click the video
clip after the cut and press Shift+Delete. On the video track of a film cut on key frames a cut moves to the nearest one. **Create new voice-over track** and **Create subtitles from speech** take only what is left on the timeline; **Translate subtitles** takes
every subtitle of the track.

### Translation

Right-click the header of the subtitle track (on a phone, hold it).

*Figure: The menu of a subtitle track's header*

The menu has **Translate subtitles**, **Create new voice-over track** and the switch **Preview voice-over**
, each voice item with what it makes under it, and **Delete track** last, alone, in red. Choose **Translate subtitles**.

*Figure: The Translate subtitles window*

In **Target language**, pick the language, such as Polish. **Track Style** under it keeps **As in C1**, the look of the
original subtitles, unless you want the new ones in a style such as Cinema (Lato). The **Advanced** line says what the run uses by default,
here OpenAI with GPT-6 Luna from Media library → AI translation and speech; open it to choose another engine or model for this
run only, such as the built-in engine. The window says what it sends: "OpenAI will translate 46 subtitles (1,984 characters) into a new subtitle track, with your API key." The video
and its audio stay on the NAS. Press **Translate**. The line under the timeline shows the percent and **Stop**, and the
**Background jobs** button at the top shows the job too. At OpenAI, the subtitles of a whole film (about 1,000) take a few minutes.

When the job ends, a new subtitle track appears under the old one, named after the language (such as Polish), with the
same times, and the picture shows it (the eye on its header is on).

### A film without subtitles in its own language

Right-click the audio track's header (on a phone, hold it) and choose **Create subtitles from speech**. Leave **Language**
at the language of the track, or choose **Detect automatically**, and press **Create**. Without a key, Whisper on the NAS
hears it. The studio adds a new subtitle track. Translate it as above.

ElevenLabs gives the time of each word, so each subtitle starts with its first word and ends with its last. Lengthen a
short subtitle so that it stays on screen for at least 2 seconds: drag its right edge on the timeline.

### Listen before you record

Mute the audio track you do not want under the voice-over, such as the film's own dub, with **M** on its header. In the
header menu of the translated subtitle track, turn on **Preview voice-over** and play the scene. You hear the subtitles
read aloud as the film plays, in the voice of **Speech synthesis** and **Voice**, and while the preview is on every audio
track plays 6.5 dB quieter, as in a voice-over saved with Classic voice-over. On a computer the audio meters show the speech as a track of its own. The preview saves nothing.

### The voice-over track

*Figure: The Create new voice-over track window*

In the same menu, choose **Create new voice-over track**. Pick a **Voice** at the top of the window; the play
button beside it plays a sample. The window says who reads and how much text goes to a service, and gives the FLAC file the
speech becomes on a line of its own. Press **Create track**. The NAS saves the speech next to the project, such as
`Film (C2, cedar).flac`, and the studio adds it as a new track, "Voice-over track (C2)"; the film stays as it is. Each line
is placed as in **Quickly create film with voice-over**: 0.85 s after its subtitle, sooner or a little faster when it is long,
a short one left out when there is no room, never over the next line.

### The voice-over in the original track

The quickest way is **Mix into A1** in the speech track's menu (see [Mix a voice-over into an audio track](#mix-a-voice-over-into-an-audio-track)): the original is lowered as its
profile says, as in **Quickly create film with voice-over**. By hand, with the channel settings:

Click the clip on the original track (here A2, the film's English 5.1) and, in **Info**, type -12 into **Audio Gain**. In
the same panel, **Name** and **Language** give the track a name, such as Polish (AI voice-over), and a language, such as
pol.

*Figure: The Channel window of the original track's centre channel*

Open the track's channels with the arrow on its header and click the name of channel **C**. In **Channel A2 C**, under
**Audio**, choose **Mix with** and the voice-over track (A3). In the saved file the original plays 12 dB quieter
through the whole scene, with the voice in its centre channel. While **Preview voice-over** is on, it lowers every audio
track by another 6.5 dB.

### Save

*Figure: The Save as MKV window with the voice-over in channel C*

Press **Save as MKV**. Under **Result** the window lists what goes into the new file: the muted track is unticked
, the voice-over track goes **into channel C of A2**, and the translation becomes a new subtitle track. A
subtitle track from **Create subtitles from speech**, and its translation, have no clip of their own; the save writes them
from their subtitles like any other track. Tick the lines under **Not kept or changed** and press **Save**. A job
in Files makes the new file beside the film, such as `Film (edit).mkv`.

### Afterwards

If you do not want to keep the keys on the NAS, press **Remove key** for each service in **Media library → AI translation and
speech**.

- When OpenAI or ElevenLabs translates or reads, only the text of the subtitles leaves the NAS; for **Create subtitles from
  speech**, the clip's audio does. The built-in engines send nothing, and no tool sends the video.
- Read an AI translation through before you save. Double-click a subtitle to fix its text.
- The model can word a line differently each time.

## On a phone

The timeline scrolls under a fixed playhead in the middle of the screen. The bar at the bottom changes with the selection:

- nothing selected: **Add audio**, **Marker**, **Chapter** (a chapter at the playhead), **Subtitle** (a new subtitle at the playhead, opened in the subtitle editor), zoom buttons;
- a clip: **Add Edit**, **Duplicate**, **Delete**, **Unlink**, **Volume** and **Fade** (an audio clip), **Stretch**;
- a marker: one frame back, one frame forward, **Delete**, **Done**, with the speeds of both parts above;
- a subtitle: **Edit** (the subtitle editor), **Split**, **Merge**, **Delete**, **Subtitles** (the cue list) and **Done**.

When the keys do not fit the width of the screen, swipe the bar sideways. **Volume** sets the clip's Audio Gain and
**Fade** its Fade In and Fade Out: a minus, the value you can type and a plus, by 1 dB or half a second. Each change counts at
once and is one undo step; **Done** closes the window. A chapter's flag on the ruler takes a held finger for its menu, or a held
finger and a move to drag it.

The subtitles sheet (**Subtitles** in the menu) also holds what Info shows of the track on a computer: its fonts and its
**Track Style**. Its **Download subtitles** opens the Subtitles window; a film with no subtitle track gets the sheet too,
with **Add subtitle track**.

Above the timeline stand the Selection Tool, **Snap** and the zoom; **More tools** shows the other tools, grouping and labels. A clip's handles trim it, a held clip moves, and **Add Edit**, **Stretch**, **Volume** and **Fade** are on the bar. The menu at the top holds **Save as MKV**, **Import**, **Add audio**, **Sources**, **All tracks**, **Subtitles**, **History** and **Discard changes**. To put a sound on its picture, scroll until the sound sits under the centre line, tap **Marker**, then step the marker frame by frame
until the viewer shows the right picture. Pinch to zoom. Hold a clip to open its menu, or hold and move to drag it. A film's own sound dragged this way moves alone and stays linked (see [Move the sound alone](#move-the-sound-alone)); to reorder the picture, drag a video clip.

Tap a clip to select it: a handle shows at each of its ends. Drag a handle to trim the clip, at once, without holding it
first; the tool in use decides how (the Selection Tool trims, Ripple Edit, Rolling Edit and Rate Stretch do what they do on
an edge). While the edge holds to the playhead or another clip's edge, a line through the tracks shows where. A phone that
can vibrate ticks once; an iPhone's browser has no vibration for a page.

### The subtitle editor

Tap a selected subtitle again, tap **Edit**, or tap a row in the **Subtitles** list, and the subtitle editor takes the place of
the bar. The playhead goes to the
middle of the subtitle and the timeline zooms so the subtitle fills about a third of its width. The top bar dims and the tools
make room for the tracks; the picture, the play buttons and the timeline still work. The keyboard comes up for the text.

- **Text**: type, then tap outside the field or press Enter (Shift+Enter starts a new line). The style buttons, the spelling
  language and the suggestions for a misspelt word work as on a computer ([Edit a subtitle](#edit-a-subtitle)).
- **Start time**, **Whole subtitle** and **End time** choose what the row under them moves: the buttons move it one frame or
  0.1 s earlier or later, and the time in the middle can be typed (1.5, 00:00:01.500 or a timecode with frames). **Whole
  subtitle** shows its length and moves both ends together. Times show to the millisecond, as SubRip keeps them; ASS keeps
  hundredths of a second, so **Save as MKV** rounds them on a track it writes as ASS (an ASS track, or one with a
  **Track Style**).
- **Split** cuts the subtitle at the playhead, **Merge** joins it with the next one, **Insert after** puts an empty subtitle in
  the gap after it (2 s, or up to the next one; it needs at least 0.1 s of room), **To track** copies or moves it to another
  subtitle track at the same moment of the film, and **Delete** removes it.
- Undo and Redo are in the editor's own top row. ✕ closes the editor; every change is already made.

On the timeline the selected subtitle has a grip at each end. Drag a grip to change the start or the end at once. Hold a
subtitle for half a second (a circle grows under your finger) to grab it, then move it sideways, or down or up onto another subtitle track's row to move
it there; the editor opens when you lift your finger. While a grip or a subtitle moves, a box above your finger shows the
time and how far it has moved. With **Snap** on, the time holds to the playhead, the start or end of another subtitle or a
clip's edge within a short distance, and otherwise to the nearest frame; a line shows the snap. Two fingers side by side zoom, one above the
other change the tracks' height, and either way let go of a subtitle being moved.

## Limits

One video track, 16 audio tracks, 2,000 clips, 1,000 markers per clip, 10,000 subtitles per subtitle track and 4,096
characters per subtitle. The project file holds at most 1 MiB; a film's 1,500 subtitles take about 200 kB of it. Preview files take at most 4 GB in the package's cache, and the
oldest go first.
