Seize / joy4

Golang audio/video library and streaming server
MIT License
13 stars 4 forks source link

[avutil] add method to copy a stream from the first video keyframe #12

Closed a-rose closed 5 years ago

a-rose commented 5 years ago

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).

JulienBreux commented 5 years ago

I let you do the merges 😉