Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests/ref
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2016-11-08 14:27:21 +0300
committerSteven Liu <lq@chinaffmpeg.org>2016-11-10 05:30:48 +0300
commit863ebe6f83de6e884a4b1870231678c9259f3c90 (patch)
treeecc0bf3447831ca61f3c83c9ec4aa44a4779ffbd /tests/ref
parent2bc66d9e432005c71c17565c28496be5308e023b (diff)
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 <lou@lrcd.com> Signed-off-by: Steven Liu <liuqi@gosun.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref')
-rw-r--r--tests/ref/fate/flv-add_keyframe_index12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/fate/flv-add_keyframe_index b/tests/ref/fate/flv-add_keyframe_index
new file mode 100644
index 0000000000..1c4da65d90
--- /dev/null
+++ b/tests/ref/fate/flv-add_keyframe_index
@@ -0,0 +1,12 @@
+;FFMETADATA1
+hasVideo=true
+hasKeyframes=true
+hasAudio=false
+hasMetadata=true
+canSeekToEnd=true
+datasize=629776
+videosize=629381
+audiosize=0
+lasttimestamp=20
+lastkeyframetimestamp=19
+lastkeyframelocation=597963