livekit / python-sdks

LiveKit real-time and server SDKs for Python

Home Page:https://docs.livekit.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FPS limiter

sergeevii123 opened this issue · comments

Hi, is it possible to add FPS limiter to livekit?

so

async def receive_frames(stream: rtc.VideoStream):
        async for frame in video_stream:
            # received a video frame from the track, process it here
            pass

will actually give frames with FPS x

This would be handled in your application logic. if you want say 5 FPS, you would just drop frames until it's been ~200ms since the last frame processed.