outputs lists where the results go, its destinations, and each destination lists its
items: the files to produce there for every input.
Every language in
translations is produced and billed whether or not an output carries it. Give
each translation subtitles somewhere, and each dub a dub track; a project whose outputs leave
one out says so in meta.messages.Destinations
GET /enums/destination-types lists them. Every destination needs at least one item, and a
project at least one destination. Their locations are the API’s: a path sent on any, or a
mediaPath or mediaUrl on a feed output, is refused.
The output folder
output/, named by its nameTemplate, in the input’s
subfolders. Download from there with GET /projects/{id}/outputs/download or the AWS CLI. Every
folder project has one; a feed project may have one too, beside its feeds.
Output feeds
language (the transcription language or a translation
language), each finished item linking the file it produced, at
GET /feeds/{projectId}/{language}/feed.xml, without a token: an RssOutput for an RssSource,
an MrssOutput for an MrssSource. Its items must include exactly one VideoFile or
AudioFile, the file each feed item links to; other items are written beside it and not linked
yet. The items are written under output/feeds/<language>/ and the feed itself to output/feeds/<language>.xml,
so they are listed among the project’s outputs with those paths. How the feed is made, and the
calls that serve it: Feeds.
Items
Each item is one file per input, of one of three kinds:Names
Every item has a name template. Variables:
Rules, checked when you save the project:
- a template contains
${name}, so that inputs do not overwrite each other’s outputs; - it uses only the variables of its kind;
- no two items of one destination render the same name (two destinations may: their files are in different folders);
- a template is not blank (a blank
SubtitleFiletemplate means the default), and neither isextor a subtitle file’sformat; - the name it renders is a relative path under the destination’s folder: a subfolder such as
dubbed/${name}.${ext}is fine, but not a leading/, a doubled//, a.or..segment, a backslash or a control character.extandformatcannot hold/or\either.
VideoFile
Without
useOriginalTracks and dubTracks, the video has no sound.
Every field of every destination and item: Config reference: outputs.
Audio tracks
useOriginalTracks: true copies the input file’s audio as it is, without re-encoding it, with the
input’s own language tag, title and default flag. It always comes first, before any dub track.
Each entry of dubTracks adds one dub:
Dub tracks carry no default flag, and a file cannot mark one as the track to play first. With
useOriginalTracks: true, a player opens the file on the input’s audio, and the dubs are choices in
its audio menu. For a file that plays the dub when it opens, leave useOriginalTracks out.
The container’s language tag of a dub track is set from language, so players label it. The
input’s audio keeps the tag the input file carried, which may be missing or wrong: a file tagged
eng (a common default) dubbed into English gives two tracks a player labels the same. MP3 files
carry no language tag.
Subtitle tracks
Selectable subtitles inside the file:
A subtitle track marks a change of speaker as a subtitle file does (Speaker changes).
AudioFile
An audio file holds exactly one audio track: set
useOriginalTracks: true or list one dub track.
A file with neither, with both, or with two dubs is refused when you save the project.
The input’s audio is copied as it is, AAC in most inputs, which an MP3 or WAV file cannot hold.
For the input’s audio, use ipod (.m4a) or matroska.
Common formats:
SubtitleFile
Speaker changes
Where the speaker changes, a cue starts with>>, the broadcast convention; a cue that continues
the same speaker has no mark. The same holds for every transcription engine and for translated
subtitles. Set it in an entry’s options, of a SubtitleFile or of a video’s subTracks entry:
One input, many outputs
Items are independent. This project writes, for each input, a dubbed video, a Spanish MP3 and a Spanish M4A into its output folder:4f1c2b9a7d3e.8a2b4c6d.mp4 it writes 4f1c2b9a7d3e.8a2b4c6d.dub.mp4,
feeds/es/4f1c2b9a7d3e.8a2b4c6d.mp4 and feeds/de/4f1c2b9a7d3e.8a2b4c6d.mp4 under output/.