[FFmpeg-devel] [PATCH v5] avformat/flvenc: add add_keyframe_index option

Michael Niedermayer michael at niedermayer.cc
Tue Nov 8 15:54:14 EET 2016


On Tue, Nov 08, 2016 at 07:43:49PM +0800, Steven Liu wrote:
> 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 <lou at lrcd.com>
> Signed-off-by: Steven Liu <liuqi at gosun.com>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  doc/muxers.texi                       |    3 +
>  libavformat/flvenc.c                  |  331 ++++++++++++++++++++++++++++++++-
>  tests/Makefile                        |    1 +
>  tests/fate-run.sh                     |    4 +
>  tests/fate/flvenc.mak                 |   11 +
>  tests/ref/fate/flv-add_keyframe_index |   12 ++
>  6 files changed, 352 insertions(+), 10 deletions(-)
>  create mode 100644 tests/fate/flvenc.mak
>  create mode 100644 tests/ref/fate/flv-add_keyframe_index

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161108/f938cee0/attachment.sig>


More information about the ffmpeg-devel mailing list