I don't really understand what the -k option in flvtool2 actually does.
Could someone please explain me the magic of cue points in FLV files ?
Regards,
Marc
You can check that by using the flvdump tool with a file previously
modified by flvmeta.
For instance, flvdump might give the following output:
$ flvdump out.flv
Magic: FLV
Version: 1
Has audio: yes
Has video: yes
Offset: 9
--- Tag #1 at 0xD (13) ---
Tag type: Meta
Body length: 1746
Timestamp: 0
* Metadata event name: onMetaData
* Metadata contents: {
hasMetadata => true
hasVideo => true
hasAudio => true
duration => 125.883000
lasttimestamp => 125.857000
lastkeyframetimestamp => 125.823000
width => 320.000000
height => 240.000000
videodatarate => 307.728766
framerate => 29.543306
audiodatarate => 31.402858
audiosamplerate => 22000.000000
audiosamplesize => 16.000000
stereo => false
filesize => 5602856.000000
videosize => 5003069.000000
audiosize => 563823.000000
datasize => 5568676.000000
metadatacreator => flvmeta 1.0.6
metadatadate => Tue, 17 Jun 2008 11:43:54 Paris, Madrid
audiocodecid => 2.000000
videocodecid => 2.000000
audiodelay => -0.075000
canSeekToEnd => true
hasCuePoints => false
cuePoints => [
]
hasKeyframes => true
keyframes => {
times: [
0.075000
2.108000
4.108000
6.108000
8.108000
10.108000
12.108000
14.108000
16.108000
18.108000
20.108000
22.108000
24.108000
26.108000
28.108000
30.108000
32.108000
34.108000
36.108000
38.108000
40.108000
42.108000
44.108000
46.108000
48.108000
50.108000
52.108000
54.108000
56.108000
58.141000
60.141000
62.141000
64.141000
66.141000
68.141000
70.141000
72.141000
74.141000
76.141000
78.141000
80.141000
82.141000
84.141000
86.141000
88.141000
90.141000
92.141000
94.141000
96.141000
98.141000
100.141000
102.141000
104.141000
106.141000
108.141000
110.141000
112.208000
114.908000
117.274000
119.508000
121.508000
123.508000
125.823000
]
filepositions: [
2137.000000
92621.000000
182354.000000
273019.000000
363253.000000
454007.000000
543577.000000
633950.000000
723823.000000
814436.000000
904270.000000
994332.000000
1086085.000000
1175124.000000
1265148.000000
1355310.000000
1445701.000000
1535971.000000
1626111.000000
1716426.000000
1806923.000000
1896895.000000
1986974.000000
2077379.000000
2179049.000000
2257262.000000
2347448.000000
2446678.000000
2529658.000000
2618192.000000
2708432.000000
2799805.000000
2888874.000000
2979466.000000
3069465.000000
3165649.000000
3249933.000000
3340109.000000
3430300.000000
3520388.000000
3610882.000000
3700639.000000
3791092.000000
3881580.000000
3971908.000000
4061675.000000
4151947.000000
4242142.000000
4332503.000000
4422737.000000
4512910.000000
4602941.000000
4693511.000000
4783478.000000
4873492.000000
4963991.000000
5054340.000000
5172420.000000
5252169.000000
5330941.000000
5421082.000000
5511412.000000
5599613.000000
]
}
}
[...]