Transcoding

FFmpeg

ffmpeg:loudnorm_analyze

EBU R128 loudness normalization using ffmpeg’s loudnorm filter - analysis pass. Runs an analysis pass to gather information about the source audio.

Full documentation of the tool can be found here: ffmpeg - loudnorm

Optionally, the tool can run a second pass to apply the normalization to the audio. To do that, specify the “output” parameter with the desired ffmpeg arguments.

The data from the analysis pass will automatically be used to set the appropriate ffmpeg filter arguments.

Example:

{
    "parameters": {
        "input_file": "input.mp4",
        "audio_selector": "0:a:0",
        "env_prefix": "my_audio_",
        "integrated_loudness_target": "-24.0",
        "maximum_true_peak": "-2.0",
        "loudness_range_target": "7.0",
        "output": {
            "ffmpeg_args": [
                "-c:a", "libfdk_aac",
                "-ar", "48000",
                "-b:a", "128k",
                "-ac", "2",
                "out.m4a"
            ]
        }
    },
"tool": "ffmpeg:loudnorm_analyze"
}

Returns analysis result in environment variables using the specified prefix. The ffmpeg filter returns the following:

{
    "input_i" : "-27.61",
    "input_tp" : "-4.47",
    "input_lra" : "18.06",
    "input_thresh" : "-39.20",
    "output_i" : "-16.58",
    "output_tp" : "-1.50",
    "output_lra" : "14.78",
    "output_thresh" : "-27.71",
    "normalization_type" : "dynamic",
    "target_offset" : "0.58"
}

Given a prefix of “my_audio_” this tool sets the following environment variables:

my_audio_input_i: -27.61
my_audio_input_tp: -4.47
my_audio_input_lra: 18.06
my_audio_input_thresh: -39.20
my_audio_output_i: -16.58
my_audio_output_tp: -1.50
my_audio_output_lra: 14.78
my_audio_output_thresh: -27.71
my_audio_normalization_type: dynamic
my_audio_target_offset: 0.58

Note that normalization_type describes the analysis pass, which is always dynamic. Whether the normalization pass can be linear is reported separately:

my_audio_linear_possible: false

The normalization pass requests linear mode (linear=true), but ffmpeg only honours it when the gain needed to reach the integrated loudness target keeps the true peak at or below the maximum true peak (measured_tp + (I - measured_i) <= TP) and the measured loudness range is at or below the target (measured_lra <= LRA). Otherwise ffmpeg silently falls back to dynamic mode, which compresses the audio and can make it audibly pump. The tool logs a warning when that happens, and with "require_linear": true it fails instead of encoding.

When the normalization pass runs, the mode ffmpeg actually used is set as well:

my_audio_applied_normalization_type: dynamic

Parameter

Properties

Default

Type

Choice

Description

input_file

required

input file to pass to ffmpeg

audio_selector

optional

0:a:0

str

ffmpeg’s input selector to use to select the desired audio track

env_prefix

optional

my_audio_

str

prefix to use for environment variable names

integrated_loudness_target

optional

-24.0

str

integrated loudness target (I)

maximum_true_peak

optional

-2.0

str

maximum true peak (TP)

loudness_range_target

optional

7.0

str

loudness range target (LRA)

output

optional

{}

dict

output settings

require_linear

optional

false

bool

fail instead of running the normalization pass when ffmpeg would fall back to dynamic mode

ffmpeg:volume_peak

Analyze the input file using ffmpeg’s volumedetect filter to get the mean and max volume.

Optionally, calculate needed gain to reach the specified target peak. Additionally, optionally, the tool can run a second pass to apply the gain to the audio.

To enable calculation, specify “target_peak” (int/float). To enable second pass, specify the “output” parameter with the desired ffmpeg arguments.

The analysis result is set in environment variables using the specified prefix.

The ffmpeg filter returns: mean_volume: -17.8 dB max_volume: -4.1 dB

For the example above and given a prefix of “my_audio_” and a target peak of -12 this tool will set the following environment variables:

my_audio_max_volume: -4.1
my_audio_mean_volume: -17.8
my_audio_target_peak: -12
my_audio_gain_to_apply: -7.9

Example:

{
    "parameters": {
        "input_file": "input.mp4",
        "audio_selector": "0:a:0",
        "target_peak": "-12",  # optional, enables calculation
        "output": {  # optional, enables reencode
            "ffmpeg_args": [
                "-c:a", "libfdk_aac",
                "-ar", "48000",
                "-b:a", "128k",
                "-ac", "2",
                "out.m4a"
            ]
        }
    },
    "tool": "ffmpeg:volume_peak"
}

Parameter

Properties

Default

Type

Choice

Description

input_file

required

input file to pass to ffmpeg

audio_selector

optional

0:a:0

str

ffmpeg’s input selector to use to select the desired audio track

env_prefix

optional

my_audio_

str

prefix to use for environment variable names

target_peak

optional

target peak (in dB) to target

output

optional

{}

dict

output settings

ffmpeg:loudness_normalize

Loudness normalization that keeps the audio’s dynamics: a linear gain, with a true-peak limiter or a lower loudness only where the targets can’t both be met.

The tool measures the integrated loudness and true peak of the input (EBU R128, ffmpeg’s ebur128 filter) and works out the gain that brings it to the integrated loudness target. When that gain leaves the true peak at or below the maximum true peak, it is applied as is (volume=<gain>dB), so the audio is only made louder or quieter. Unlike ffmpeg:loudnorm_analyze, it never falls back to dynamic compression.

When the gain would push the true peak above the limit, peak_policy decides:

  • limit (default): a true-peak limiter takes the peaks down, by at most max_limiting dB. If the peaks are further over than that, the gain is lowered by the rest and the output stays below the loudness target.

  • reduce: the gain is lowered until the true peak fits. The audio is untouched, and the output is quieter than the loudness target.

Audio without an integrated loudness, because it is silent or shorter than ebur128’s 400 ms window, can’t be normalized: the tool only lowers its level as far as the maximum true peak needs (mode unmeasured).

Lossy codecs add peak overshoot and can lower loudness slightly. codec_headroom keeps the limit that many dB below the maximum true peak from the start. With output, the tool also measures the encoded file and, when it is outside the targets, adjusts and encodes again, up to max_passes times. A final result outside loudness_tolerance or above the maximum true peak is logged as a warning, or fails the task with "on_out_of_tolerance": "fail".

Example:

{
    "parameters": {
        "input_file": "input.mp3",
        "audio_selector": "0:a:0",
        "env_prefix": "my_audio_",
        "integrated_loudness_target": "-18",
        "maximum_true_peak": "-6",
        "peak_policy": "limit",
        "max_limiting": "3",
        "codec_headroom": "1",
        "output": {
            "ffmpeg_args": [
                "-c:a", "mp3",
                "-ar", "48000",
                "-ac", "2",
                "-b:a", "128k",
                "out.mp3"
            ]
        }
    },
    "tool": "ffmpeg:loudness_normalize"
}

Given a prefix of “my_audio_” this tool sets the following environment variables:

my_audio_input_i: -14.1             integrated loudness of the input (LUFS)
my_audio_input_tp: 0.4              true peak of the input (dBTP)
my_audio_input_lra: 8.5             loudness range of the input (LU)
my_audio_input_thresh: -24.5        gating threshold of the input (LUFS)
my_audio_mode: limited              linear, limited, reduced or unmeasured
my_audio_gain: -3.9                 gain applied (dB)
my_audio_limiting: 2.4              most the limiter may take off the peaks (dB), 0 without a limiter
my_audio_loudness_shortfall: 0.0    how far the output is planned below the loudness target (dB)
my_audio_filter: volume=-3.90dB,... the audio filter, for use in a later ffmpeg task; it ends at
                                    the output's `-ar` rate, if given, else the input's

With output, also:

my_audio_output_i: -18.1            integrated loudness of the encoded file (LUFS)
my_audio_output_tp: -6.1            true peak of the encoded file (dBTP)
my_audio_output_lra: 8.0            loudness range of the encoded file (LU)
my_audio_passes: 2                  number of encodes it took
my_audio_within_tolerance: true     whether the encoded file meets both targets

Parameter

Properties

Default

Type

Choice

Description

input_file

required

input file to pass to ffmpeg

audio_selector

optional

0:a:0

str

ffmpeg’s input selector to use to select the desired audio track

env_prefix

optional

my_audio_

str

prefix to use for environment variable names

integrated_loudness_target

optional

-23.0

str

integrated loudness target (LUFS)

maximum_true_peak

optional

-2.0

str

maximum true peak (dBTP)

peak_policy

optional

limit

str

‘limit’, ‘reduce’

what to do when the loudness gain would push the true peak above the maximum: limit the peaks (up to max_limiting dB) or reduce the gain

max_limiting

optional

3.0

str

most the limiter may take off the peaks (dB)

codec_headroom

optional

0.0

str

dB kept below the maximum true peak for the codec’s peak overshoot (around 1 for 128k MP3)

loudness_tolerance

optional

0.5

str

allowed deviation of the encoded file from the loudness target (LU)

on_out_of_tolerance

optional

warn

str

‘warn’, ‘fail’

whether an encoded file outside the targets is logged as a warning or fails the task

max_passes

optional

3

str

most encodes to try to bring the encoded file within the targets

output

optional

{}

dict

output settings

ffmpeg:cmd

The latest stable release of FFmpeg command line executable is available with an exhaustive list of Codec and Library Support. Usually available libav dependencies are:
  • libavutil

  • libavcodec

  • libavformat

  • libavdevice

  • libavfilter

  • libavresample

  • libswscale

  • libswresample

  • libpostproc

    NOTE: castLabs is not responsible for paying royalties which may occur for the use of Codecs

Full documentation of the tool can be found in: https://ffmpeg.org/ffmpeg-all.html

Commandline arguments and possible values must be presented as a list.

Arguments:

"-<arg1>", "-<val1>", "-<arg2>", "-<val2>", ...

NOTE: By default we execute the tool to stop in case any decoding error happens (-xerror). Sometimes such decoding errors can be ignored without problems, but this must be enforced with boolean “ignore_decoding_errors”.

Example:

{
    "tool": "ffmpeg:cmd",
    "parameters": {
        "arguments": [
            "-i",
            "tos_180s.mov",
            "-f",
            "mp4",
            "encode/tos.mp4"
        ],
    "ignore_decoding_errors": true
    }
}

Parameter

Properties

Default

Type

Choice

Description

arguments

required [list value]

outputdir

optional

out

str

ignore_decoding_errors

optional

false

bool

Metadata

vorbis:cover_art

Embeds one or more JPEG or PNG images into an OGG file.

This is achieved by placing on or more base64 encoded binary FLAC picture structures within VorbisComment with tag names METADATA_BLOCK_PICTURE.

You can instruct the tool to remove existing METADATA_BLOCK_PICTURE comments or leave them alone.

IMAGES: list of dictionaries which need to have the following keys:

`input_img`     input image. Supported formats: PNG, JPEG
`img_type`      ID3v2 type. Can be one of:
    0 - Other
    1 - 32x32 pixels 'file icon' (PNG only)
    2 - Other file icon
    3 - Cover (front)
    4 - Cover (back)
    5 - Leaflet page
    6 - Media (e.g. label side of CD)
    7 - Lead artist/lead performer/soloist
    8 - Artist/performer
    9 - Conductor
    10 - Band/Orchestra
    11 - Composer
    12 - Lyricist/text writer
    13 - Recording Location
    14 - During recording
    15 - During performance
    16 - Movie/video screen capture
    17 - A bright coloured fish
    18 - Illustration
    19 - Band/artist logotype
    20 - Publisher/Studio logotype

`description`   Optional description of the image

Example:

{
    "tool": "vorbis:cover_art",
    "parameters": {
        "input_ogg": "in_file.ogg",
        "output_ogg": "out_file.ogg",
        "remove_existing_pictures": true,
        "images": [
            {
                "input_img": "front_cover.jpg",
                "img_type": 3,
                "description": "Front cover of the album"
            },
            {
                "input_img": "back_cover.jpg",
                "img_type": 4,
            }
        ]
    }
}

Parameter

Properties

Default

Type

Choice

Description

images

required [list value]

dict

List of dictionaries representing keys, see IMAGES above

input_ogg

required

str

input ogg file to process

output_ogg

required

str

output ogg file to generate

remove_existing_pictures

optional

false

bool

removes existing METADATA_BLOCK_PICTURE comments

Subtitles

captions:ccextractor

We deploy a forked version of this tool http://www.ccextractor.org:
https://github.com/encoreinteractive/ccextractor.git
Extracts closed captions and teletext subtitles from video streams.
(DVB, .TS, ReplayTV 4000 and 5000, dvr-ms, bttv, Tivo, Dish Network, .mp4, HDHomeRun are known to work).

Syntax: ccextractor [options] inputfile1 [inputfile2…] [-o outputfilename]

Commandline arguments must be presented as a list.

Parameters:

"<key>": "<value>"

Arguments:

"-<arg1>", "-<arg2>", ...

Example:

{
    "tool": "captions:ccextractor",
    "parameters": {
        "arguments": [
          "movie1.mp4",
          "-out=webvtt-full",
           "--webvtt-no-line",
           "--webvtt-no-css",
           "-o",
           "movie1-en.vtt"
        ]
    }
}

Parameter

Properties

Default

Type

Choice

Description

arguments

required [list value]

captions:convert

Captions and Subtitles Converter

Converts between subtitle/caption formats. The input format is auto-detected from the file contents (not the extension), so inputfile may be any of the supported inputs below.

Supported input formats:

  • SRT (SubRip) — requires language

  • WebVTT — requires language

  • SCC (Scenarist Closed Caption, CEA-608) — requires language

  • SAMI

  • DFXP / TTML

  • STL (EBU STL / EBU-3264)

  • PL STT (Pixel Logic subtitle transfer) — requires language; timing is rescaled from 24 fps to 23.976 fps automatically

  • Containers with a TTML text track — Smooth Streaming text tracks (.ismt) and MP4/DASH tracks with a dfxp/stpp sample entry. Each sample of such a track is a complete TTML document whose cue times are relative to that sample; the samples are read straight out of the container, shifted onto the media timeline and concatenated (a cue split across two samples is stitched back together). Set language to override the track’s own language tag.

  • Video containers — QuickTime/MP4 (.mov, .mp4, .m4v) with embedded closed captions. The container is detected by its ISO-BMFF header and the embedded CEA-608/708 captions are extracted with ccextractor, then converted like any other input. Extraction reads from a dedicated caption track (clcp/c608/c708) or from CEA-608/708 data carried in the video track. language is required (the extracted captions have no language tag of their own). Note: OCR of bitmap/burned-in subtitles is not supported. If the container has no extractable caption data (e.g. an empty/padding-only caption track), the job still succeeds and emits a single placeholder cue (“No subtitles”) over the first 10 seconds, since empty subtitle files are rejected by some downstream consumers.

Supported output formats (outputformat): WEBVTT, SAMI, DFXP, SRT, SCC, SST, SST-TTML, FILTERGRAPH.

Positioning (position) is honored by WEBVTT, SRT, SST and SST-TTML output. For WEBVTT it controls the cue settings written on each timing line:

  • bottom (the default) — no cue settings at all, so the player uses its default bottom-center placement. Note this drops any positioning the input carried; use source to keep it.

  • top — writes line:10% on every cue, overriding the input’s positioning.

  • source — passes each cue’s own positioning through unchanged. Cues that had none stay bare, i.e. the player places them at the bottom.

NOTE: The tool automatically detects and compensates hour one offsets found in some broadcast formats

Example:

{
    "parameters": {
        "inputfile": "IN/tearsofsteel_4k_eng.srt",
        "language": "eng",
        "outputformat": "WEBVTT",
        "outputfile": "tearsofsteel-test.vtt",
        "offset": "PT0S",
        "suppress_hour_one_compensation": false
  },
  "tool": "captions:convert"
}

Example (extracting embedded captions from a QuickTime container):

{
    "parameters": {
        "inputfile": "IN/feature.mov",
        "language": "en-US",
        "outputformat": "WEBVTT",
        "outputfile": "feature-en.vtt"
  },
  "tool": "captions:convert"
}

Parameter

Properties

Default

Type

Choice

Description

inputfile

required

outputfile

required

outputformat

required

‘WEBVTT’, ‘SAMI’, ‘DFXP’, ‘SRT’, ‘SCC’, ‘SST’, ‘SST-TTML’, ‘FILTERGRAPH’

language

optional

set language tag for output (auto detection if supported by format)

offset

optional

PT0S

timedelta

force_input_language

optional

overwrite language tag for output if autodetection fails (if supported by format)

strip_html_tags

optional

false

bool

strip HTML tags from caption text when converting. For structurally-styled formats such as SCC, styling is not literal markup - use remove_styling to strip it.

remove_layout_info

optional

false

bool

remove the layout information from subtitles. This ensures output subtitles will not have any layout info.

merge_captions

optional

false

bool

merge captions with the same start time.

merge_captions_layout

optional

false

bool

when merging captions, merge the layout as well. If true, the layout of the first caption will be used.

vtt_force_hours

optional

false

bool

when outputting to WEBVTT, force writing full timestamps (hh:mm:ss.xxx) even if the “hh” part is 00

vtt_sequence_numbers

optional

false

bool

include sequence numbers when writing WEBVTT format.

strip_ass_tags

optional

false

bool

strip ASS tags when converting.

remove_styling

optional

false

bool

remove structured styling (italics/bold/underline) from subtitles. Required to guarantee tag-free output for structurally-styled formats such as SCC, where strip_html_tags alone is insufficient.

video_width

optional

int

width of the video the subtitles will be displayed on. If specified, height is required too.

video_height

optional

int

height of the video the subtitles will be displayed on. If specified, width is required too.

position

optional

bottom

str

‘bottom’, ‘top’, ‘source’

specifies the position of subtitles. Supported for WEBVTT, SRT, SST and SST-TTML output. bottom and top ignore any positioning the input carried; source reads per-cue positioning from the input file and is supported for WEBVTT, SST and SST-TTML output with WebVTT (line:XX%) and STT inputs.

avoid_same_start_prev_end

optional

true

bool

avoid start time of a subtitle being the same as end time of previous one. Currently only supported when output format is SST

scenarist_compat

optional

false

bool

activate compatibility mode when writing SST format. Should produce more compatible files, but can break older systems.

tiff_compression

optional

tiff_deflate

str

‘tiff_deflate’, ‘raw’

TIFF compression to use when output format is SST.

enable_hour_one_compensation

optional

true

bool

Enable automatic compensation for captions starting at hour one.

minimum_event_duration

optional

Minimum event duration (in seconds,). When specified, if any event in the inputfile is shorter than this duration, the minimum_event_duration_action will be taken.

minimum_event_duration_action

optional

ignore

str

‘ignore’, ‘error’

The action to take for caption events shorter than the minimum_event_duration.

  • ignore: report on events in the log, but take no action

  • error: report on events in the log and end with an error|

Thumbnails

thumbs:generate

Generates thumbnails from a video file to either include in packaging or for side loading.

Example:

{
    "tool": "thumbs:generate",
    "parameters": {
        "inputfile": "tos_5s_video_1920x1080_2mbps.mp4"
    }
}

Parameter

Properties

Default

Type

Choice

Description

inputfile

required

Video file to extract thumbnails.

duration

optional

5

int

Duration per thumbnail in seconds. 1 = 1 thumb per seconds, 10 = 1 thumb per 10 seconds

outputdir

optional

thumbnails

str

Output directory

height

optional

180

int

grid_width

optional

8

int

grid_height

optional

8

int

filename

optional

thumbs

str

quality

optional

60

int

skip_generating

optional

false

bool

Skip thumbnail generation. Assumes “outputdir” has thumbnails named using ffmpeg pattern %d.jpg

Transcode

transcode:cropdetect

Automatic video frame cropping detection based on ffmpeg commandline

Full documentation of the tool`s crop detection can be found here: ffmpeg - cropdetect

This implementation covers accurate detection of black bars across entire movies, with predefined parameters. The output output will be stored as environment variable “cropdetect” which can be used for cropping instructions in subsequent ffmpeg commands.

Example:

{
    "parameters": {
        "inputfile": "movie.mov"
    },
    "tool": "transcode:cropdetect"
}

Returns frame dimensions without black bars, width:height:columns_indent:rows_indent, for example:

crop=1920:1072:0:4

Example for cropping instructions with that output in a later ffmpeg command:

{
"tool": "ffmpeg:cmd",
"parameters": {
    "ignore_decoding_errors": "false",
    "arguments": [
        "-i",
        "{input}",
        "-filter_complex", ""[0:v]{cropdetect}[cropped];[cropped]scale='(trunc((ih*((16/9)/2))*2))':ih,setsar=1[cropped]"",
        "-map", "[cropped]
        "-f",
        "mp4",
        "{output}"
    ]
}
}

Parameter

Properties

Default

Type

Choice

Description

inputfile

required

Watermarking

content_armor:ABIngestCL

ContentArmor’s ABIngest tool with modifications from castLabs.

These modifications include:

  • processing audio

  • creating proper output file names complying with the DASH-IF AB Ingest specification (i.e. suitable for Akamai).

  • support for additional DASH flavours

  • proper processing of the export file

  • creating playlists as for distribution also helper ones for VTK packaging jobs

The A/B Ingest tool consists of a profiler and an embedder.

The input to the tool is a video playlist (HLS/DASH, segmented of fragmented), the output:

  • pre-watermarked video A

  • pre-watermarked video B

  • output playlist which may be directly served via CDN

  • watermark forensic metadata (WFM) corresponding to the input video This file is used for online detection of watermarks.

You can read more about ContentArmor here: ContentArmor

Example:

{
    "tool": "content_armor:ABIngestCL",
    "parameters": {
        "input_file": "tos.m3u8",
        "output": "ABinv",
        "payload_size": 16,
        "content_name": "Tears of Steel",
        "store_location": "store/ABinv"
    }
}

Parameter

Properties

Default

Type

Choice

Description

input_file

required

Input playlist or manifest (M3U8: variant or content playlist, MPD: type static)

output

required

Output folder

content_name

required

content identifier for a storage

payload_size

optional

16

int

Payload size of the mark in bits (4/8/16/24/32/48)

store_location

optional

store

str

Folder where extraction helper information will be stored

profiler_license

optional

str

Content-Armor profiler license

embedder_license

optional

str

Content-Armor embedder license

content_armor:profile

ContentArmor’s Profiling tool.

The profiling tool prepares the content for embedding.

input and output are single video files.

You can read more about ContentArmor here: ContentArmor

Example:

{
    "tool": "content_armor:profile",
    "parameters": {
        "input_file": "tos.mp4",
        "output": "operator_inv",
        "payload_size": 16,
        "content_name": "Tears of Steel",
        "store_location": "store/operator_inv",
        "license": {CA_PROF_LIC}
    }
}

Parameter

Properties

Default

Type

Choice

Description

input_file

required

Video file which conforms to ContentArmor specification, i.e. AVC/HEVC containing non-reference B frames (mp4, ts, 264, 265, avc, hevc, mkv). In ABR SEI aligned mode, the input file must be a DASH manifest or HLS playlist.

content_name

required

A name to be used to archive the processed asset

output_file

optional

profiled.mp4

str

profiled file name. Ignored in ABR SEI aligned mode

output_folder

optional

profiled

str

output folder for profiled file. Only used in ABR SEI aligned mode.

export_work

optional

export_work.tar.gz

str

extraction helper file

license

optional

str

Content-Armor profiler license

payload_size

optional

16

int

Payload size of the mark in bits (4/8/16/24/32/48)

embed_encrypt

optional

false

bool

Profile for embedding in the encrypted domain. Defaults to False

abr_sei_aligned

optional

false

bool

Activate ABR SEI aligned mode in Content Armor. Defaults to False

content_armor:embed

ContentArmor’s embedding tool.

The input to the tool is a profiled video file (forensic mode).

You can read more about ContentArmor here: ContentArmor

Example:

{
    "tool": "content_armor:embed",
    "parameters": {
        "input_file": "tos_profiled.mp4",
        "output_file": "tos_cafe.mp4",
        "wm_id": cafe,
        "license": {CA_EMB_LIC}
    }
}

Parameter

Properties

Default

Type

Choice

Description

input_file

required

Profiled video file. (Supported: mp4, ts, 264, 265, avc, hevc, mkv)

output_file

required

Marked video file

wm_id

optional

Watermark ID in hex format without ‘0x’ i.e. 2a23

license

optional

str

Content-Armor embedder license

verbose

optional

false

bool

More verbose

sffw:stardustmark_extract_wm

STARDUSTmark extract a watermark from an image or a video.

The available options are documented in the API docs on the Castlabs watermarking portal: https://watermark.castlabs.com

Example:

{
    "tool": "sffw:stardustmark_extract_wm",
    "parameters": {
        "access_key_id": "urn:janus:accesskey:00000000000000000000000000000000",
        "secret_access_key": "00000000000000000000000000000000",
        "organization_urn": "urn:janus:organization:00000000000000000000000000000000",
        "user_urn": "urn:janus:user:00000000000000000000000000000000",
        "<option1>": "<value1>",
        "<option2>": "<value2>",
        ...
    }
}

sffw:stardustmark_get_payload

Get STARDUSTmark payload(s) for use with ffmpeg’s sffwembedsafe filter.

The available options are documented in the API docs on the Castlabs watermarking portal: https://watermark.castlabs.com

Example:

{
    "tool": "sffw:stardustmark_get_payload",
    "parameters": {
        "access_key_id": "urn:janus:accesskey:00000000000000000000000000000000",
        "secret_access_key": "00000000000000000000000000000000",
        "organization_urn": "urn:janus:organization:00000000000000000000000000000000",
        "user_urn": "urn:janus:user:00000000000000000000000000000000",
        "<option1>": "<value1>",
        "<option2>": "<value2>",
        ...
    }
}
Next topic: File Transfer
Previous topic: DRM