Asset object
This is a unique identifier for the asset.
Type of the asset. This can be either ‘video’ or ‘audio’.
Used to form playback URL and storage folder.
Whether to generate MP4s for the asset.
Attach Livepeer Studio C2PA Attestation in the output mp4 video.
URL to manually download the asset if desired.
Reference to the playback-policy schema.
Source of the asset, which can be URL, recording, directUpload, or clip.
Reference to the creator-id schema.
Information about the storage of the asset, particularly on IPFS.
Status of the asset, including its phase, update time, and any error message.
Name of the asset. This is not necessarily the filename, can be a custom name
or title.
Timestamp (in milliseconds) at which asset was created.
Size of the asset in bytes.
Video metadata including format, duration, bitrate, and tracks information.
{
"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
"type": "video",
"playbackId": "eaw4nk06ts2d0mzb",
"staticMp4": "boolean",
"c2pa": "boolean",
"playbackUrl": "https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8",
"downloadUrl": "https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video",
"playbackPolicy": {
"type": "public",
"webhookId": "3e02c844-d364-4d48-b401-24b2773b5d6c",
"webhookContext": {
"foo": "bar"
}
},
"source": {
"type": "url",
"url": "https://example.com/video.mp4",
"gatewayUrl": "https://example.com/video.mp4"
},
"creatorId": "object",
"storage": {
"ipfs": {
"spec": {
"nftMetadataTemplate": "file",
"nftMetadata": {
"name": "My NFT",
"description": "My NFT description"
}
}
}
},
"status": {
"phase": "ready",
"updatedAt": 1587667174725,
"progress": 100
},
"name": "filename.mp4",
"createdAt": 1587667174725,
"size": 84934509,
"hash": [
{
"hash": "9b560b28b85378a5004117539196ab24e21bbd75b0e9eb1a8bc7c5fd80dc5b57",
"algorithm": "sha256"
}
],
"videoSpec": {
"format": "mp4",
"duration": 23.8328,
"bitrate": 1000000,
"tracks": [
{
"type": "video",
"codec": "h264",
"startTime": 0,
"duration": 23.8328,
"bitrate": 1000000,
"width": 1920,
"height": 1080,
"pixelFormat": "yuv420p",
"fps": 30
},
{
"type": "audio",
"codec": "aac",
"startTime": 0,
"duration": 23.8328,
"bitrate": 1000000,
"channels": 2,
"sampleRate": 44100,
"bitDepth": 16
}
]
}
}