fierce-dog-7777
06/26/2025, 12:11 PMtall-airline-16756
06/26/2025, 12:11 PMtall-airline-16756
06/26/2025, 12:11 PM{
"url": "<https://my-page.com>",
"preset": "PORTRAIT_H264_720P_30",
"audio_only": false,
...
}
This example sets the resolution to 720p in portrait mode.
• Using Advanced Options: You can explicitly define the resolution and other parameters. For example:
{
"room_name": "my-room",
"identity": "participant-to-record",
"screen_share": false,
"advanced": {
"width": 1280,
"height": 720,
"framerate": 30,
"audioCodec": "AAC",
"audioBitrate": 128,
"videoCodec": "H264_HIGH",
"videoBitrate": 5000,
"keyFrameInterval": 2
},
...
}
This example sets the resolution to 1280x720 pixels.
• For Image Outputs (Thumbnails): You can also specify resolution for image outputs. For example:
{
"image_outputs": [
{
"capture_interval": 5,
"width": 1280,
"height": 720,
...
}
]
}
Let me know if you need further assistance!
Sources: Egress examples | LiveKit Docsfierce-dog-7777
06/26/2025, 12:12 PMtall-airline-16756
06/26/2025, 12:13 PMconst videoTrack = await createLocalVideoTrack({
facingMode: 'user',
resolution: VideoPresets.h720,
});
Check it out - this snippet sets your resolution to a crisp 1280x720 (h720). Pretty neat, right?
• Configuring Video Settings When Creating a Room:
const room = new Room({
videoCaptureDefaults: {
resolution: {
width: 1280,
height: 720,
frameRate: 30,
},
}
});
This method lets you get super specific with your resolution and frame rate. Totally customizable!
• For Android:
val options = LocalVideoTrackOptions(
captureParams = VideoPreset169.H720.capture
)
For my Android friends, you can use captureParams
to specify video capture options like resolution using cool presets such as VideoPreset169.H720
.
Need any more help? I'm here for you - just ask!
Sources: LocalVideoTrackOptions | captureParams | Codecs and more | LiveKit Docs