What is the difference between egress SegmentedFil...
# ask-ai
m
What is the difference between egress SegmentedFileOutput, EncodedFileOutput, StreamOutput and ImageOutput?
t
Thanks for reaching out, Rishabh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let me walk you through the different egress output types in LiveKit: • SegmentedFileOutput: This one’s great when you want to create HLS segments or other segmented outputs. You can easily set the protocol (like HLS), filename prefix, playlist name, segment duration, and more. Plus, you can save these outputs to S3, GCP, Azure, or AliOSS—whatever works best for you. • EncodedFileOutput: Think of this as your go-to for encoded output files like MP4 or OGG. You get to pick the file type, filepath, and where you want it stored (S3, GCP, Azure, or AliOSS). • StreamOutput: If you’re streaming to external platforms like Twitch or YouTube, this is the one to use. Just specify the protocol (RTMP or SRT) and the target URLs, and you’re all set. • ImageOutput: Want to grab snapshot images (thumbnails) regularly during egress? This lets you set how often to capture images, their size, filename prefix, and where to store them (S3, GCP, Azure, or AliOSS). Each of these output types works with different egress request types, so you can tailor exactly how and where your media gets exported or streamed. If you have any questions or want to dive deeper into any of these, just let me know—I’m here to help! Sources: egress/types_test.go