Hacker News new | past | comments | ask | show | jobs | submit login

Video codecs doesn't work like that, most frames only encode the difference from the previous frame, meaning that if you drop one frame, all frames after that will be impossible to decode correctly.

A technique that's used to get around this is to use special frame reference pattern so some frames depend on a frame two or four frames before, allowing the intermediate frame to be dropped. This comes at a significant cost to the encoding efficiency though. tT use it with a pre-encoded video, it would require you to specifically encode it for this purpose, making the usefulness of such a feature in a client questionable.

Nothing stops you from building a server that does this though, for instance if you want to build a scalable streaming service based on WebRTC.




What you describe are called key frames. Nearly all video uses them. Recorded video for seeking, and steaming for well, steaming.

You missed the entire point of the comment.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: