cuddly-crowd-48028
08/26/2025, 4:38 PMtall-airline-16756
08/26/2025, 4:38 PMtall-airline-16756
08/26/2025, 4:39 PMfile_outputs field with one or more EncodedFileOutput objects. The older file field is deprecated now, so it’s a good idea to steer clear of it.
Here’s a simple example to show you how file_outputs works:
req = api.RoomCompositeEgressRequest(
room_name=ctx.room.name,
audio_only=True,
file_outputs=[api.EncodedFileOutput(
file_type=api.EncodedFileType.OGG,
filepath="livekit/my-room-test.ogg",
s3=api.S3Upload(
bucket="<s3 bucket name>",
region="<s3 region>",
access_key="<s3 access key>",
secret="<s3 secret key>",
),
)],
)
In this example, we’re recording audio in OGG format straight to an S3 bucket. If you want, you can even add multiple EncodedFileOutput objects to the file_outputs list to save recordings to several places at once. Pretty handy, right?
Sources: protobufs/livekit_egress.proto | Session recording and transcripts | LiveKit Docscuddly-crowd-48028
08/26/2025, 4:47 PMtall-airline-16756
08/26/2025, 4:48 PMfilepath field in the EncodedFileOutput object, and is that path valid on your local system?
• Have you set up the local_file field in the EncodedFileOutput object for recording files locally?
• Also, could you share the exact versions of the Python SDK and Egress service you’re using? That can really help us spot any version mismatches.
With these details, we’ll be in a better spot to figure out what’s causing the "missing or invalid field: output" error. Thanks for your help!cuddly-crowd-48028
08/26/2025, 4:57 PMtall-airline-16756
08/26/2025, 4:57 PMEncodedFileOutput setup is actually meant for cloud storage options like S3, GCP, Azure, or AliOSS. When you see the filepath field, it’s referring to the file name in the cloud storage, not a path on your local machine.
Let me break down your questions:
1. Do we need to set local_file=True in the EncodedFileOutput object?
Actually, there’s no local_file option in EncodedFileOutput. Since local file recording isn’t supported, you don’t need to worry about this.
2. Is there a version compatibility issue between Python SDK 1.0.12 and the latest Egress service?
From what I can see, there’s no version mismatch causing this problem. The error probably comes from trying to use local file recording, which isn’t supported.
3. Are we missing required fields for local file recording that aren't needed for cloud storage?
Since local file recording isn’t supported, your configuration should focus on cloud storage settings instead.
4. Should the filepath be relative to the Egress container or absolute?
The filepath is just the name of the file in your cloud storage—it doesn’t relate to any local file system paths.
So, to move forward, you’ll want to set up your recordings to go to a supported cloud storage destination. If you’d like, I’m happy to help guide you through setting that up!
Sources: egress/types_test.go | RoomComposite Egress | LiveKit Docscuddly-crowd-48028
08/26/2025, 5:06 PMtall-airline-16756
08/26/2025, 5:06 PM