quiet-sugar-78296
08/25/2025, 5:35 PMtall-airline-16756
08/25/2025, 5:35 PMtall-airline-16756
08/25/2025, 5:36 PMcustom_base_url parameter in the StartRoomCompositeEgress() API. LiveKit will then automatically add these handy query parameters to your base URL:
• `url`: The LiveKit WebSocket URL to connect to the room
• `token`: The access token for authentication
• `layout`: The layout parameter you pass to the template
For example, it might look like this:
<YOUR_WEB_SERVER_URL>?url=wss%3A%2F%2F<LIVEKIT_INSTANCE>&token=<RECORDER_TOKEN>&layout=grid
Feel free to add your own custom query parameters to the custom_base_url too, if you want to send extra info, like this:
<YOUR_TEMPLATE_URL>/?yourparam=value
These custom parameters will stay intact along with the LiveKit parameters. When you’re working in your template, you can easily grab these values using JavaScript’s URL parsing methods. Hope this helps you get everything set up smoothly!
Sources: Egress API | LiveKit Docs | Custom recording templates | LiveKit Docs | README.md | packages/livekit-server-sdk/src/EgressClient.tsquiet-sugar-78296
08/25/2025, 5:37 PMtall-airline-16756
08/25/2025, 5:38 PMroomRecord permission needs to be included in your token for all LiveKit egress operations, even if you're using custom templates. This permission is essential to make sure the egress service works smoothly, no matter which template you choose.
So, double-check that your token has this permission to keep everything running without a hitch!
Sources: Egress API | LiveKit Docs | Universal Egress | Authentication | LiveKit Docs | livekit-api/livekit/api/egress_service.py | packages/livekit-server-sdk/src/EgressClient.tsquiet-sugar-78296
08/26/2025, 3:59 AMtall-airline-16756
08/26/2025, 3:59 AMquiet-sugar-78296
08/26/2025, 4:09 AMtall-airline-16756
08/26/2025, 4:09 AMDebugConfig.EnableChromeLogging option in your configuration file, and it’ll log all Chrome console events to a file at /tmp/chrome.log inside the container.
Also, feel free to use debug elements in your HTML template like you mentioned—that’s a great way to get more insight into what’s happening during rendering. If you want, I’m here to help you set up Chrome logging or chat about other debugging tips. Just let me know!
Sources: pkg/config/base.go | Chrome Developer Extension | livekit/livekit_composite | DeepWiki | Knowledge Management System | livekit/livekit_composite | DeepWikiquiet-sugar-78296
08/26/2025, 4:14 AMtall-airline-16756
08/26/2025, 4:14 AMH264_1080P_30 or H264_1080P_60 preset in your egress request—these presets clearly specify a resolution of 1920x1080.
• If you’re using advanced encoding options, make sure you’ve explicitly set width: 1920 and height: 1080 in your configuration.
Also, take a peek at whether dynamic layout or URL parameters in your custom template might be affecting the resolution. If you want, I’m here to help you walk through these settings—just let me know!
Sources: protobufs/livekit_egress.proto | pkg/pipeline/source/web.go | livekit-protocol/livekit/protocol/egress.pyquiet-sugar-78296
08/26/2025, 4:16 AMtall-airline-16756
08/26/2025, 4:16 AMH264_1080P_30 preset instead of setting the width and height manually. This should fix the viewport mismatch and make sure your egress compositing comes out at the right 1920x1080 resolution.
If you run into any other hiccups or need a hand with anything else, just give me a shout—I’m here to help!quiet-sugar-78296
08/26/2025, 4:17 AMtall-airline-16756
08/26/2025, 4:17 AMquiet-sugar-78296
08/26/2025, 4:22 AMtall-airline-16756
08/26/2025, 4:22 AMH264_1080P_30)
• Advanced encoding options like width, height, and bitrate
The StreamOutput object itself only has fields for protocol and urls, and doesn’t include any encoding parameters. If things still look off with the resolution, it might be a good idea to double-check your egress request setup to make sure the preset or encoding options are set correctly.
Feel free to reach out if you want a hand troubleshooting this—I’m here to help!
Sources: livekit/livekit_egress.pb.go | Egress output types | LiveKit Docsquiet-sugar-78296
08/26/2025, 4:24 AMtall-airline-16756
08/26/2025, 4:25 AMH264_1080P_30 preset. This can happen for a few reasons:
1. Template Viewport Size: The actual rendering resolution depends on the browser viewport size set during compositing. While the preset controls the encoder settings for the final output, if your custom template’s container or video element isn’t explicitly set to 1920x1080, the viewport might default to a smaller size.
2. Custom Template Configuration: Make sure your custom template uses CSS or JavaScript to set the display container or video element to fill a 1920x1080 viewport. For example, setting the width and height of the container to 100% of the browser window can help. Also, double-check that your egress request is pointing to this updated template via customBaseUrl.
3. Headless Chromium Behavior: Sometimes, Chrome’s headless browser can slightly tweak the resolution (like 1279x719) due to encoding alignment or metadata rounding. But if your template is correctly set up for 1920x1080, this shouldn’t happen.
To fix this, take another look at your custom template’s CSS to make sure it explicitly supports the resolution you want. And if you want, I’m here to help you debug or tweak the template further—just let me know!quiet-sugar-78296
08/26/2025, 4:29 AM${canvas.width}px,
49 - height: ${canvas.height}px,
48 + width: ‘100vw’,
49 + height: ‘100vh’,
50 + minWidth: ${canvas.width}px,
51 + minHeight: ${canvas.height}px,
52 backgroundColor: settings.backgroundColor,
53 position: ‘absolute’,
54 top: 0,
⏺️ Now the template will:
1. Fill the entire Chromium viewport with 100vw/100vh
2. Ensure minimum 1920×1080 dimensions with minWidth/minHeight
3. The preset handles encoding the final output at 1920×1080tall-airline-16756
08/26/2025, 4:29 AMH264_1080P_30 preset along with this should help fix the viewport mismatch and get your final output encoded just right.
If you run into any other issues or need a hand with anything else, just let me know—I’m here to help!quiet-sugar-78296
08/26/2025, 4:31 AMtall-airline-16756
08/26/2025, 4:32 AM100vw/100vh with minWidth/minHeight) didn’t seem to affect the Chromium viewport, it’s probably because the LiveKit egress service manages the browser resolution separately from your page’s CSS. Basically, the resolution you set in the egress request (whether through a preset or advanced options) will override the CSS viewport units.
Make sure the resolution in your egress request matches what you want (for example, 1920x1080 if you’re using H264_1080P_30). Also, double-check that your custom template’s layout fits that resolution so everything looks just right. If you want, I’m happy to help you troubleshoot this further—just let me know!
Sources: Egress examples | LiveKit Docs | RoomComposite Egress | LiveKit Docsquiet-sugar-78296
08/26/2025, 4:32 AMtall-airline-16756
08/26/2025, 4:32 AMquiet-sugar-78296
08/26/2025, 4:33 AMquiet-sugar-78296
08/26/2025, 5:52 PM