Add CopyFileFromKeyframe() to copy a stream from the first video keyframe (the audio stream is copied straight away.
This allows multiple calls to CopyFileFromKeyframe() with the same source, at different moments in time, without introducing A/V desynchronisation.
Notes for your reviewer
I think this works best with streams with a low Gop (1 or 2 seconds), I have not tested very long gops (but long gops are not desirable for streaming anyway).
PR Type
Description
Add CopyFileFromKeyframe() to copy a stream from the first video keyframe (the audio stream is copied straight away. This allows multiple calls to CopyFileFromKeyframe() with the same source, at different moments in time, without introducing A/V desynchronisation.
Notes for your reviewer
I think this works best with streams with a low Gop (1 or 2 seconds), I have not tested very long gops (but long gops are not desirable for streaming anyway).