Can I use my self hosted egress server to record a...
# ask-ai
m
Can I use my self hosted egress server to record all room in my cloud server
t
Thanks for reaching out, Rajadurai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you set up a self-hosted egress server to record all rooms in your cloud server! By deploying the Egress service alongside your LiveKit server and enabling automatic recordings at room creation, you can easily capture everything you need. This is done through the auto-egress feature, which starts recordings automatically whenever a room is created. Here’s a simple way to get started: 1. Deploy the Egress Service: Make sure the Egress service is up and running, connected to the same Redis instance as your LiveKit server. Since each egress instance handles one room at a time, you might want to configure autoscaling or adjust the replica count based on how many recordings you expect to run simultaneously. 2. Configure Auto-Recording: When creating a room using the
CreateRoom
API, set the
egress
field to enable recording. You can choose to record the entire room composite or individual tracks—for example, saving tracks to S3 or recording the room composite as HLS segments to Google Cloud Storage. 3. Specify Output and Storage: LiveKit Egress supports various output formats like MP4 and HLS, and you can select storage destinations including S3, GCP, or Azure. If you’d like to customize things further, such as the layout or encoding settings, you can use custom recording templates. Please feel free to reach out if you want me to walk you through any of these steps in more detail—I’m here to help! Sources: README.md | Self-hosting the Egress Service | LiveKit Docs | Auto egress | LiveKit Docs | Recording and export | LiveKit Docs | Composite and web recordings | LiveKit Docs