Another Flash meta-data and cue point injector tool
I’m a few years late at finding this tool, but never needed to add cue points post-encoding before. Anyhow, the tool is FLVTool. There’s also some usage examples over at OSFlash.
Few usage examples of my own, I’ll keep adding more as online pharmacy I work through it.
To extract part of an FLV to another file:
ft2 -C -i 1000 -o 3000 sample.flv cut2.flv
Where:
- ft2 : I renamed flvtoo2. Less keystrokes!
- -C : is the cut command
- -i : start time code in milisecs
- -o : end time code in milisecs
- sample.flv : input filename, located in the same folder as the tool. I would also add the tool to my path so that I can run it from any folder.
- cut2.flv : output filename. If you omit this, your source file will be overwritten.
As you can see, it’s quite straightforward.
Injecting cue points is also quite simple. There’s an XML file sample included with the tool download zip.
To inject cue points from an XML file:
ft2 -A -t tags.xml sample.flv
The XML should take the following form:
<?xml version="1.0"?>
<tags>
<!-- an event cue point -->
<metatag event="onCuePoint">
<name>TestEvent1</name>
<timestamp>333</timestamp>
<parameters>
<speaker>Peter</speaker>
<says>Hello my Name is Peter.</says>
</parameters>
<type>event</type>
</metatag>
<!-- a navigation cue point -->
<metatag event="onCuePoint">
<name>TestEvent2</name>
<timestamp>1000</timestamp>
<parameters>
<index>1</index>
<title>Chapter 1</title>
</parameters>
<type>navigation</type>
</metatag>
</tags>
To view file meta-data (can also use FLVMDV for this):
ft2 -P sample.flv
Comments
Leave a Reply
