{
  "name": "meeting-recording",
  "sources": [
    {
      "name": "room",
      "type": "livekit",
      "config": {
        "serverUrl": "wss://your-project.livekit.cloud",
        "token": "<subscribe-token>",
        "select": {
          "mediaTypes": ["audio", "video"]
        }
      }
    }
  ],
  "nodes": [
    {
      "name": "stage",
      "type": "video_mixer",
      "inputs": ["room"],
      "config": {
        "canvas": {
          "width": 1280,
          "height": 720,
          "fps": 25,
          "backgroundColor": "#0b1120"
        },
        "layout": {
          "mode": "speaker",
          "common": {
            "borderRadius": 12
          },
          "speaker": {
            "mainPriority": ["screen_share", "active_speaker"],
            "mainRatio": 0.76,
            "maxThumbnails": 4,
            "thumbnailPosition": "right"
          }
        }
      }
    },
    {
      "name": "floor",
      "type": "audio_mixer",
      "inputs": ["room"],
      "config": {}
    },
    {
      "name": "transcript",
      "type": "asr",
      "inputs": ["room"],
      "config": {
        "language": "multi"
      }
    }
  ],
  "sinks": [
    {
      "name": "recording",
      "type": "segment",
      "inputs": ["stage", "floor", "transcript"],
      "config": {
        "storageType": "s3",
        "storageConfig": {
          "bucket": "your-bucket",
          "region": "us-east-1",
          "accessKeyId": "<access-key-id>",
          "secretAccessKey": "<secret-access-key>",
          "pathPrefix": "meetings/standup"
        },
        "format": "hls",
        "segmentDurationSec": 4,
        "caption": {
          "showSpeaker": true
        },
        "encoding": {
          "videoCodec": "h264",
          "audioCodec": "aac",
          "keyframeIntervalSec": 2
        }
      }
    }
  ],
  "policies": {
    "maxDurationSec": 14400,
    "idleTimeoutSec": 180
  }
}
