Effects (Fade In/Out) - Content Management
Effects (Fade In/Out)
Apply video fade transitions to clips.
KalturaEffect
| Parameter | Type | Description |
|---|---|---|
effectType | int | 1 = VIDEO_FADE_IN, 2 = VIDEO_FADE_OUT |
value | string | Duration of the effect in seconds (as string) |
Fade Example
Apply a 2-second fade-in and 3-second fade-out to a clip:
curl -X POST "$KALTURA_SERVICE_URL/service/media/action/addContent" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "entryId=$KALTURA_ENTRY_ID" \
-d "resource[objectType]=KalturaOperationResource" \
-d "resource[resource][objectType]=KalturaEntryResource" \
-d "resource[resource][entryId]=$KALTURA_SOURCE_ENTRY_ID" \
-d "resource[resource][flavorParamsId]=0" \
-d "resource[operationAttributes][0][objectType]=KalturaClipAttributes" \
-d "resource[operationAttributes][0][offset]=0" \
-d "resource[operationAttributes][0][duration]=30000" \
-d "resource[operationAttributes][0][effectArray][0][effectType]=1" \
-d "resource[operationAttributes][0][effectArray][0][value]=2" \
-d "resource[operationAttributes][0][effectArray][1][effectType]=2" \
-d "resource[operationAttributes][0][effectArray][1][value]=3"