FLV
[Muxers]


Detailed Description

Muxer Parameters:
   Name                                |   Type   | Opt/Reqd |    Range
   ============================================================================
   FE2_FLV_CUEPT_EVENT                 |  String  | Optional | [0.0,)
   FE2_FLV_CUEPT_NAV                   |  String  | Optional | [0.0,)
   FE2_FLV_CUEPT_PARAM                 |  String  | Optional | N/A
   FE2_FLV_METADATA_ENABLE             |  Numeric | Optional | flvmetadata_t
   FE2_FLV_METADATA_DISABLE            |  Numeric | Optional | flvmetadata_t

Example Usage:

   sc = Flix2_AddMuxer(&muxer, flix, FE2_MUXER_FLV);
   // set a navigation cue point at 10s
   if(sc == ON2_OK)
       sc = Flix2_MuxerSetParamAsStr(muxer, FE2_FLV_CUEPT_NAV, "nav0=10.0");

Supported Codecs

Format Restrictions


Defines

#define FE2_MUXER_FLV
 FLV muxer. For use with Flix2_AddMuxer().
#define FE2_FLV_CUEPT_EVENT
 Set an event cue point.
#define FE2_FLV_CUEPT_NAV
 Set a navigation cue point.
#define FE2_FLV_CUEPT_PARAM
 Add a name/value pair to an existing cue point.
#define FE2_FLV_METADATA_ENABLE
 Enable output of meta data element.
#define FE2_FLV_METADATA_DISABLE
 Disable output of meta data element.

Typedefs

typedef enum flv_metadata flvmetadata_t

Enumerations

enum  flv_metadata {
  MD_DURATION,
  MD_DATASIZE,
  MD_AUDIO_SIZE,
  MD_VIDEO_SIZE,
  MD_AUDIO_DATARATE,
  MD_VIDEO_DATARATE,
  MD_AUDIO_CODECID,
  MD_VIDEO_CODECID,
  MD_WIDTH,
  MD_HEIGHT,
  MD_FRAMERATE,
  MD_CANSEEKTOEND,
  MD_LASTTIMESTAMP,
  MD_LASTKEYFRAMETIMESTAMP,
  MD_LASTKEYFRAMELOCATION,
  MD_KEYFRAMES
}
 Supported FLV onMetaData elements. More...

Define Documentation

#define FE2_FLV_CUEPT_EVENT

Set an event cue point.

Parameter format:
Format = cueptNAME '=' cueptTIME_SECONDS
e.g., "evtpt0=343.0".
Precondition:
time must be >= 0.0
Note:
Multiple cue points may be added.
See also:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001574.html

Definition at line 133 of file flv.h.

#define FE2_FLV_CUEPT_NAV

Set a navigation cue point.

This parameter allows seeking to the specified time by generating an I-Frame (keyframe) in the video stream and adding the entry to the metadata.

Parameter format:
Format = cueptNAME '=' cueptTIME_SECONDS
e.g., "navpt0=343.0".
Precondition:
time must be >= 0.0
Note:
Multiple cue points may be added.
See also:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001574.html

Definition at line 145 of file flv.h.

#define FE2_FLV_CUEPT_PARAM

Add a name/value pair to an existing cue point.

Parameter format:
Format = cueptNAME *[ '&' Pair ]
Pair = Name '=' Value
e.g., "cuept0&name0=value0&name1=value1"
Precondition:
The cue point has already been added

Definition at line 154 of file flv.h.

#define FE2_FLV_METADATA_DISABLE

Disable output of meta data element.

Note:
Valid elements are defined by flvmetadata_t

Definition at line 164 of file flv.h.

#define FE2_FLV_METADATA_ENABLE

Enable output of meta data element.

Note:
Valid elements are defined by flvmetadata_t

Definition at line 159 of file flv.h.

#define FE2_MUXER_FLV

FLV muxer. For use with Flix2_AddMuxer().

Definition at line 124 of file flv.h.


Typedef Documentation


Enumeration Type Documentation

Supported FLV onMetaData elements.

Descriptions indicate the default in bold, followed by the element name in italics, its type and a description of the units if applicable.

Note:
Audio/Video specific entries are disabled should there be no stream of the type
Enumerator:
MD_DURATION  Enabled. duration <Number> seconds
MD_DATASIZE  Enabled. datasize <Number> bytes
MD_AUDIO_SIZE  Enabled. audiosize <Number> bytes
MD_VIDEO_SIZE  Enabled. videosize <Number> bytes
MD_AUDIO_DATARATE  Enabled. audiodatarate <Number> kbps
MD_VIDEO_DATARATE  Enabled. videodatarate <Number> kbps
MD_AUDIO_CODECID  Enabled. audiocodecid <Number>
MD_VIDEO_CODECID  Enabled. videocodecid <Number>
MD_WIDTH  Enabled. width <Number>
MD_HEIGHT  Enabled. height <Number>
MD_FRAMERATE  Enabled. framerate <Number> frames/sec
MD_CANSEEKTOEND  Enabled. canSeekToEnd <Boolean>

Indicates last video tag is a key frame.

MD_LASTTIMESTAMP  Enabled. lasttimestamp <Number> seconds
MD_LASTKEYFRAMETIMESTAMP  Disabled. lastkeyframetimestamp <Number> seconds
MD_LASTKEYFRAMELOCATION  Disabled. lastkeyframelocation <Number> byte offset
MD_KEYFRAMES  Disabled. keyframes <Object>

Contains 2 arrays:

  • filepositions: <Number> byte offset
  • times: <Number> timestamp in seconds

Attention:
The current implementation is a post-process. A temporary file is created within the output directory as the 'keyframes' object is added, with the result then replacing the original output file.

Definition at line 71 of file flv.h.


On2 Technologies, Inc Flix Engine Linux documentation, generated on Tue Nov 2 16:53:01 2010 by doxygen 1.5.5