From 863ebe6f83de6e884a4b1870231678c9259f3c90 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 8 Nov 2016 19:27:21 +0800 Subject: avformat/flvenc: add add_keyframe_index option Add keyframe index metadata Used to facilitate seeking; particularly for HTTP pseudo streaming. 1. read live streaming or file by sequence 2. if use add_keyframe_index option, add a mark flag at the position, use to insert new context at the last step. 3. add the keyframes *offset* and *timestamp* into a list 4. if use add_keyframe_index option, shift the metadata data from mark flag offset 5. insert the keyframes *offset* and *timestamp* from the list by sequence 6. free the list 7. end. Add FATE test case; Reviewed-by: Lou Logan Signed-off-by: Steven Liu Signed-off-by: Michael Niedermayer --- doc/muxers.texi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/muxers.texi b/doc/muxers.texi index 488ed431ab..806182a148 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -147,6 +147,9 @@ Place AAC sequence header based on audio stream data. @item no_sequence_end Disable sequence end tag. + +@item add_keyframe_index +Used to facilitate seeking; particularly for HTTP pseudo streaming. @end table @end table -- cgit v1.2.3