Skip to content

Large raw (uncompressed) frame byte-stream roundtrips fail #60

Description

@pham-tuan-binh

Summary

Large VideoCodec.RAW frames sent over the byte-stream transport are not received within the test settle window. Two integration tests fail:

  • tests/integration/test_frame_video.py::test_large_frame_above_data_packet_cap (1280x720 RAW, ~2.7 MB)
  • tests/integration/test_frame_video_stress.py::test_4k_frame_roundtrip[raw] (3840x2160 RAW, ~24.9 MB)

The same 4K frame passes for PNG and MJPEG. Only the raw (uncompressed) path fails, which points to a transport or throughput issue specific to large raw payloads rather than a codec/decode bug.

Pre-existing

Found while building PR #58. Reproduces identically on unmodified main (verified by stashing the PR changes, rebuilding the cdylib, and rerunning the two tests). Not related to the role-split work.

Reproduce

LIVEKIT_URL=ws://localhost:7880 pytest \
  "tests/integration/test_frame_video.py::test_large_frame_above_data_packet_cap" \
  "tests/integration/test_frame_video_stress.py::test_4k_frame_roundtrip[raw]"

Both receive 0 frames within the window.

Notes

CI does not run integration tests (no server), so these do not show up as red in CI. They are only visible against a live LiveKit server. Worth deciding whether raw frames of this size are expected to work, or whether the tests should bound raw payload size.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions