Skip to content

Server-side Rendering JSON Examples

This section provides complete JSON examples for common server-side rendering capabilities. Select a category below; every child page contains complete, parseable business JSON and a key-parameter reference.

The media URLs and package IDs in these examples demonstrate the data structure. Replace them with media accessible to your rendering environment and packages installed in that environment.

Categories

CategoryContents
Minimal JSON ExampleContains one video clip and one compound caption for quickly validating the rendering flow.
Video TransitionsBuilt-in transitions, package transitions, and transition duration.
General CaptionsCaption styling, outlines, shadows, layout, position, and rotation.
Stylized CaptionsStyle resources, backgrounds, outlines, shadows, animations, and letter spacing.
StickersGeneral stickers, stickers with audio, and sticker animations.
Compound CaptionsCaption items, per-item styling, and compound-caption transforms.
Timeline EffectsPackage effects, filters, and intensity.
Particle EffectsFull-screen particle parameters and hand-drawn particle paths.
WatermarksCustom-media watermarks and multiple watermark tracks.

Shared Project Fields

The following fields form the shared project structure used by the rendering examples. Capability-specific sections focus on transition, caption, sticker, effect, and watermark parameters.

Timeline Fields

Field pathPurposeType and constraintsExample values
outputBusiness parameterSee the corresponding object definition16:9
timelines[].compoundCaptionTracks[]Business parameterSee the corresponding object definitionNot set
timelines[].durationTimeline position or durationinteger, microseconds; normally >= 049200000
timelines[].enableRenderOrderByZValueBusiness parameterSee the corresponding object definitiontrue
timelines[].fpsBusiness parameterSee the corresponding object definition25
timelines[].isDefaultCaptionFadeBusiness parameterSee the corresponding object definitionfalse
timelines[].outputEndBusiness parameterSee the corresponding object definition-1
timelines[].outputStartBusiness parameterSee the corresponding object definition0
timelines[].outputTypeBusiness parameterSee the corresponding object definitionNot set
timelines[].resHeightBusiness parameterSee the corresponding object definition540
timelines[].resWidthBusiness parameterSee the corresponding object definition960
timelines[].safeFrameSizeBusiness parameterSee the corresponding object definition1
timelines[].sizeLevelBusiness parameterSee the corresponding object definition-1
timelines[].templateIdPackage, style, or animation IDstring; required when the referenced resource is usedNot set
timelines[].timelineFlagsBusiness parameterSee the corresponding object definition562
timelines[].videoSizeBusiness parameterSee the corresponding object definition16:9
timelines[].volumeVolumenumber; supported range depends on the rendering service1

Shared Track, Clip, and Base-effect Fields

Field pathPurposeType and constraintsExample values
timelines[].audioTracks[].channelTypeBusiness parameterSee the corresponding object definitionstereo
timelines[].audioTracks[].indexObject indexinteger; unique or ordered within the containing collection1
timelines[].audioTracks[].showBusiness parameterSee the corresponding object definitiontrue
timelines[].audioTracks[].volumeVolumenumber; supported range depends on the rendering service1
timelines[].musicLyricsTracks[].indexObject indexinteger; unique or ordered within the containing collection0
timelines[].musicLyricsTracks[].showBusiness parameterSee the corresponding object definitiontrue
timelines[].videoTracks[].channelTypeBusiness parameterSee the corresponding object definitionstereo
timelines[].videoTracks[].indexObject indexinteger; unique or ordered within the containing collection2 to 3
timelines[].videoTracks[].showBusiness parameterSee the corresponding object definitiontrue
timelines[].videoTracks[].videos[].aliasTagBusiness parameterSee the corresponding object definitionNot set
timelines[].videoTracks[].videos[].blendingModeBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].captions[]Business parameterSee the corresponding object definitionNot set
timelines[].videoTracks[].videos[].combinationBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].combinationOrderBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].enableClipFreezeFrameBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].enableRawSourceModeBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].extraRotationBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].fadeInDurationBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].fadeOutDurationBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].fillModeBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].freezeFrameTrimPosBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].horizontalFlipBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].idPackage, style, or animation IDstring; required when the referenced resource is used155953 to 156213
timelines[].videoTracks[].videos[].inPointTimeline position or durationinteger, microseconds; normally >= 0520000 to 34480000
timelines[].videoTracks[].videos[].indexObject indexinteger; unique or ordered within the containing collection0 to 2
timelines[].videoTracks[].videos[].isTimelineClipBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].keepAudioPitchBusiness parameterSee the corresponding object definitiontrue
timelines[].videoTracks[].videos[].m3u8PathBusiness parameterSee the corresponding object definition/m3u8/0c3fef7c-7b57-4cd7-9cee-1604e90d59d5.m3u8, /m3u8/4281f88f-8cf3-4a15-acb5-f5be6a37158f.m3u8, /m3u8/c1bc8ea2-b964-44a1-b2ad-5693533f6b7e.m3u8
timelines[].videoTracks[].videos[].noAudioBusiness parameterSee the corresponding object definitiontrue, false
timelines[].videoTracks[].videos[].outPointTimeline position or durationinteger, microseconds; normally >= 014440000 to 49200000
timelines[].videoTracks[].videos[].pathMedia URLstring; must be reachable by the rendering service3 non-empty values
timelines[].videoTracks[].videos[].rawFilterProcessesModeBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].refImageHeightBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].refImageWidthBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].reverseBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].reversePathBusiness parameterSee the corresponding object definitionNot set
timelines[].videoTracks[].videos[].separatedBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].speedBusiness parameterSee the corresponding object definition1
timelines[].videoTracks[].videos[].stickers[]Business parameterSee the corresponding object definitionNot set
timelines[].videoTracks[].videos[].trimInTimeline position or durationinteger, microseconds; normally >= 00
timelines[].videoTracks[].videos[].trimOutTimeline position or durationinteger, microseconds; normally >= 013920000 to 20040000
timelines[].videoTracks[].videos[].verticalFlipBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].videoFxs[].absoluteTimeUsedBusiness parameterSee the corresponding object definitiontrue
timelines[].videoTracks[].videos[].videoFxs[].durationTimeline position or durationinteger, microseconds; normally >= 0-1
timelines[].videoTracks[].videos[].videoFxs[].fxParams[].keyEffect parameter namestring; defined by the SDK or package36 values
timelines[].videoTracks[].videos[].videoFxs[].fxParams[].typeObject or parameter typestring; allowed values depend on the containing objectfloat, menu, color, bool
timelines[].videoTracks[].videos[].videoFxs[].fxParams[].valueParameter valuestring; logical numbers and booleans remain strings7 values
timelines[].videoTracks[].videos[].videoFxs[].inPointTimeline position or durationinteger, microseconds; normally >= 00
timelines[].videoTracks[].videos[].videoFxs[].indexObject indexinteger; unique or ordered within the containing collection0 to 8
timelines[].videoTracks[].videos[].videoFxs[].intensityEffect intensitynumber; [0, 1]1
timelines[].videoTracks[].videos[].videoFxs[].isIgnoreBackgroundBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].videoFxs[].isInverseRegionBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].videoFxs[].isRawBusiness parameterSee the corresponding object definitionfalse, true
timelines[].videoTracks[].videos[].videoFxs[].isRegionalBusiness parameterSee the corresponding object definitionfalse
timelines[].videoTracks[].videos[].videoFxs[].nameBuilt-in effect namestring; required when type=builtin7 values
timelines[].videoTracks[].videos[].videoFxs[].regionalFeatherWidthBusiness parameterSee the corresponding object definition0
timelines[].videoTracks[].videos[].videoFxs[].shapeBusiness parameterSee the corresponding object definitionNot set
timelines[].videoTracks[].videos[].videoFxs[].typeObject or parameter typestring; allowed values depend on the containing objectproperty, builtin
timelines[].videoTracks[].videos[].volumeVolumenumber; supported range depends on the rendering service0 to 1
timelines[].videoTracks[].volumeVolumenumber; supported range depends on the rendering service1

Parameter Reference

Object Paths

CapabilityJSON path
Video transitionstimelines[].videoTracks[].transitions[]
General and stylized captionstimelines[].captionTracks[].captions[]
Stickerstimelines[].stickerTracks[].stickers[]
Compound captionstimelines[].captionTracks[].compoundCaptions[]
Timeline effectstimelines[].timelineVideoFxTracks[].timelineVideoFxs[]
Watermarkstimelines[].watermarkTracks[].stickerTracks[].stickers[]

Parameter Rules

ParameterRule
Timeline timeinPoint, outPoint, trimIn, trimOut, and ordinary duration values use microseconds.
Animation timeanimationPeroid, inAnimationDuration, and outAnimationDuration use milliseconds.
Curve-point timecurvePoint.timeSec uses seconds.
ColorColors use #AARRGGBB; the first two digits are alpha.
Effect intensityintensity must be within [0, 1].
Built-in effectA non-empty name is required when type=builtin.
Package effectA non-empty id is required when type=package.
Parameter valuefxParams[].value and keyFrames[].value remain strings.
Array orderVideo clips, transitions, effects, keyframes, and caption items are processed in array order.
Media URLThe rendering service must be able to access path values for ordinary media and custom watermarks.