Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify Video Publishing Options for Simulcast with H.264 #524

Open
andreasteich opened this issue Dec 6, 2024 · 0 comments
Open

Verify Video Publishing Options for Simulcast with H.264 #524

andreasteich opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@andreasteich
Copy link

Hi team,

I’m configuring the video publishing options for simulcast using the H.264 codec in the Swift SDK, and I wanted to verify if my setup is correct. I’m using LocalVideoTrack.createBufferTrack to stream CMSampleBuffer directly from AVFoundation with LiveKit. Here’s my current configuration for the room and publishing options:

private let roomOptions = RoomOptions(
        defaultVideoPublishOptions: VideoPublishOptions(
            encoding: VideoEncoding(
                maxBitrate: 3_500_000,
                maxFps: 30
            ),
            simulcast: true,
            simulcastLayers: [
                .presetH720_43,
                .presetH540_43,
                .presetH360_43
            ],
            preferredCodec: .h264
        ),
        adaptiveStream: true,
        dynacast: true
)
...
bufferTrack = LocalVideoTrack.createBufferTrack(
            name: "video0",
            source: .camera,
            options: .init(
                dimensions: .h720_43,
                fps: 30
     )
)

Could you please confirm whether this setup is correct for H.264 and simulcast, or suggest any necessary adjustments? The AVFounation captureSession resolution is set to to highest possible one with 1280x720.

Thanks in advance for your guidance!

Best regards

@andreasteich andreasteich added the enhancement New feature or request label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants