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

feat: new video buffer api #155

Merged
merged 14 commits into from
Feb 2, 2024
Merged

feat: new video buffer api #155

merged 14 commits into from
Feb 2, 2024

Conversation

theomonnom
Copy link
Member

No description provided.

@theomonnom theomonnom requested a review from davidzhao January 30, 2024 20:02
@@ -31,16 +39,20 @@ def __init__(
track: Track,
loop: Optional[asyncio.AbstractEventLoop] = None,
capacity: int = 0,
format: Optional[proto_video_frame.VideoBufferType.ValueType] = None,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can directly request a format from the VideoStream now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! let's explain these concepts in the docstring please. that the native format will be returned.

def capture_frame(
self,
frame: VideoFrame,
timestamp_us: int = 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is timestamp used when the user sets it?

livekit-rtc/livekit/rtc/video_stream.py Outdated Show resolved Hide resolved
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! a couple of comments.

where can I find the FFI protobuf changes?

livekit-rtc/livekit/rtc/room.py Outdated Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_frame.py Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_source.py Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_stream.py Outdated Show resolved Hide resolved
@@ -31,16 +39,20 @@ def __init__(
track: Track,
loop: Optional[asyncio.AbstractEventLoop] = None,
capacity: int = 0,
format: Optional[proto_video_frame.VideoBufferType.ValueType] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! let's explain these concepts in the docstring please. that the native format will be returned.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@theomonnom theomonnom changed the title new video buffer api feat: new video buffer api Feb 2, 2024
@theomonnom theomonnom merged commit 50bdb28 into main Feb 2, 2024
7 of 8 checks passed
@theomonnom theomonnom deleted the theo/video-api branch February 2, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants