is it possible to set your response format in the ...
# ask-ai
e
is it possible to set your response format in the egress service configuration? i'm getting protobuf errors and deepwiki is suggesting i might be getting json responses instead of protobuf
t
Thanks for reaching out, Jason. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm here to help you understand how to configure the response format in the LiveKit egress service based on the type of output you're working with: • File Output (MP4, OGG): You can specify the format using the
file_type
parameter inside the
EncodedFileOutput
configuration. The supported formats are MP4 and OGG. • Stream Output (RTMP, SRT): The format depends on the
StreamProtocol
setting, which defines the streaming protocol, like RTMP. • Segmented File Output (HLS): This format is set through the
protocol
field within the
SegmentedFileOutput
configuration. • Track Egress: The format here is based on the encoding of the source video track, such as MP4, WebM, or OGG. If you're running into protobuf errors, it could be due to some mismatch in your configurations. I'd love to assist you further—could you please share a bit more about your current egress setup and the exact configuration you're using? That way, we can pinpoint the issue together and get things running smoothly. Sources: README.md | livekit-api/src/services/egress.rs | livekit/livekit_egress.twirp.go | Egress output types | LiveKit Docs