collabinator / clivrt

:busts_in_silhouette: :computer: a CLI app that provides real-time video chat. (clivrt = CLI Video Real Time)
Apache License 2.0
3 stars 1 forks source link

Performance tuning (profiling?) #4

Open dudash opened 2 years ago

dudash commented 2 years ago

I quickly tried to get cProfile going and also Austin with VSCode plugin

But no dice. Need to spend a little more time - the incoming video frame rendering isn't as good as we need it to be. There is likely optimization needed here: https://github.com/collabinator/video-to-ascii/blob/master/video_to_ascii/render_strategy/ascii_strategy.py

dudash commented 2 years ago

@andykrohg if you're looking for something to tinker with...

dudash commented 2 years ago

from chat today: quick fix might be to drop frames of incoming video before processing through the ascii transformer. Will probably want the "how many" to be configurable via .clivrt config file

Seems like this should be a setting we can pass into aiortc

dudash commented 1 year ago

@andykrohg I tagged this and a few other issues with the hacktoberfest label, if you're interested in helping this month

https://hacktoberfest.com/participation/#contributors