1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/tests/ref/fate/flv-add_keyframe_index
Zhao Zhili 693c5be320 avformat/flvenc: fix timestamp of key frame index
Firstly, the timestamps generated from framerate are inaccurate for
variable framerate mode.

Secondly, the timestamps always start from zero, while pts/dts can
start from nonzero. FLV demuxer rejects such index with message:
"Found invalid index entries, clearing the index".
2022-08-03 17:52:45 +08:00

22 lines
533 B
Plaintext

9f3d6de74f3329651a4c515c20cea00f *tests/data/fate/flv-add_keyframe_index.flv
630192 tests/data/fate/flv-add_keyframe_index.flv
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: flv1
#dimensions 0: 320x240
#sar 0: 0/1
0, 0, 0, 143, 9597, 0xd91d5859
[FORMAT]
TAG:hasVideo=true
TAG:hasKeyframes=true
TAG:hasAudio=false
TAG:hasMetadata=true
TAG:canSeekToEnd=true
TAG:datasize=629776
TAG:videosize=629381
TAG:audiosize=0
TAG:lasttimestamp=20
TAG:lastkeyframetimestamp=19
TAG:lastkeyframelocation=597963
[/FORMAT]