Hacker News new | ask | show | jobs
by waselighis 1093 days ago
No need to re-encode the video. Just split the video at a keyframe and inject an ad at that point, no re-encoding required. Most video files have keyframes every few seconds or so. The proper term is I-frames, though they're commonly known as keyframes as well.

https://en.wikipedia.org/wiki/Video_compression_picture_type...

1 comments

Not so easy with audio. With any variable bitrate audio codec, there will be sync problems.