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".
		
			
				
	
	
		
			22 lines
		
	
	
		
			533 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			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]
 |