# place.stream.media.defs

> Published by [did:web:stream.place](https://lexicon.garden/identity/did:web:stream.place)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.defs)
- [Documentation](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.defs/examples)

## Definitions

### `place.stream.media.defs#muxlTrack`

**Type**: `object`

A track backed by a MUXL container

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blob` | `string` | Yes | BLAKE-3 content hash (BDASL CID) of the source video segment. |
| `size` | `integer` | No | Size in bytes of the source video segment. |
| `trackId` | `string` | Yes | ID of the track within the MUXL container. 1-indexed for MP4 reasons. |
| `language` | `string` | No | Language of the track, if applicable. |
| `mediaType` | `string` | Yes | Type of the track: video, audio, or text. |
| `signingKey` | `string` (did) | No | did:key of the ephemeral key that C2PA-signed this track's segments. The private key is discarded once the track is produced, so it can only ever have signed this content. |

### `place.stream.media.defs#sourceClip`

**Type**: `object`

An object representing that this video's source is a clip from another video.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `end` | `integer` | Yes | End time of the clip in milliseconds. |
| `start` | `integer` | Yes | Start time of the clip in milliseconds. |
| `video` | `string` (at-uri) | Yes | AT URI of the video we're clipping. |

### `place.stream.media.defs#sourceTracks`

**Type**: `object`

A collection of tracks representing the canonical source of a video.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tracks` | `array` | Yes | The canonical list of tracks specifying the source of a video. |

## Raw Schema

```json
{
  "id": "place.stream.media.defs",
  "defs": {
    "muxlTrack": {
      "type": "object",
      "required": [
        "blob",
        "trackId",
        "mediaType"
      ],
      "properties": {
        "blob": {
          "type": "string",
          "description": "BLAKE-3 content hash (BDASL CID) of the source video segment."
        },
        "size": {
          "type": "integer",
          "description": "Size in bytes of the source video segment."
        },
        "trackId": {
          "type": "string",
          "description": "ID of the track within the MUXL container. 1-indexed for MP4 reasons."
        },
        "language": {
          "type": "string",
          "description": "Language of the track, if applicable."
        },
        "mediaType": {
          "type": "string",
          "description": "Type of the track: video, audio, or text."
        },
        "signingKey": {
          "type": "string",
          "format": "did",
          "description": "did:key of the ephemeral key that C2PA-signed this track's segments. The private key is discarded once the track is produced, so it can only ever have signed this content."
        }
      },
      "description": "A track backed by a MUXL container"
    },
    "sourceClip": {
      "type": "object",
      "required": [
        "video",
        "start",
        "end"
      ],
      "properties": {
        "end": {
          "type": "integer",
          "description": "End time of the clip in milliseconds."
        },
        "start": {
          "type": "integer",
          "description": "Start time of the clip in milliseconds."
        },
        "video": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the video we're clipping."
        }
      },
      "description": "An object representing that this video's source is a clip from another video."
    },
    "sourceTracks": {
      "type": "object",
      "required": [
        "tracks"
      ],
      "properties": {
        "tracks": {
          "type": "array",
          "items": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "description": "The canonical list of tracks specifying the source of a video."
        }
      },
      "description": "A collection of tracks representing the canonical source of a video."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
