flv # yamdi (Yet Another MetaData Injector for FLV)

yamdi stands for Yet Another MetaData Injector and is a metadata injector for FLV files.
It adds the onMetaData event to your FLV files.

features

Some key features of yamdi are:
large file support
H.264 support
onMetaData, onLastSecond, onLastKeyframe events
low memory footprint
XML metadata output

举例

yamdi -i test.flv -o test_o.flv -x test.xml

通过以上指令,可以将添加的keyframe的信息可以输出到test.xml中。

test.xml如下:




true
true
true
true
false
true
1
3
345
1
0.00
true
7
25.10
548
360
640
3452940
1333990
2113358
3453733
29.96
29.96
29.96
3453713


0.00
0.00
1.44
7.68
14.20
22.04
27.04
28.28
29.96


793
854
212086
825300
1598387
2565681
3186719
3288693
3453713


29.96


最有用的是times和filepositions映射,可实现快速seek。如果将添加过keyframe的flv文件放在web server上,此时是可以拖动进度条随意时间点播放的。

References:

http://yamdi.sourceforge.net/
https://blog.csdn.net/chenxiang199055/article/details/10996609

你可能感兴趣的:(flv # yamdi (Yet Another MetaData Injector for FLV))