dim icon indicating copy to clipboard operation
dim copied to clipboard

Video playback performance

Open vgarleanu opened this issue 1 year ago • 1 comments

When playing back a media that will be transcoded, the latency from pressing play to seeing the first video frame is very high. Sometimes several seconds +. We could decrease the latency by encoding the first couple of seconds with a faster (and lower quality) video preset at the expense of bandwidth, after a couple of seconds of video have been encoded we would start transcoding with a better, higher quality preset.

The main issue I can see is us not accurately being able to stitch the "two" streams together without having video gaps, or losing frames, or worse yet, causing the player to freak out and crash. Implementing this, we would use a lot of techniques from the split and stitch method of distributed transcoding.

vgarleanu avatar Aug 17 '22 22:08 vgarleanu

Its likely that smaller keyframes will also be necessary to reduce latency as much as possible. With this feature however we could increase the quality of the video while maintaining good UX by sacrificing a couple of seconds of video

vgarleanu avatar Aug 17 '22 23:08 vgarleanu