org.apache.tika.parser.video
Class FLVParser
java.lang.Object
org.apache.tika.parser.video.FLVParser
- All Implemented Interfaces:
- java.io.Serializable, Parser
public class FLVParser
- extends java.lang.Object
- implements Parser
Parser for metadata contained in Flash Videos (.flv). Resources:
http://osflash.org/flv and for AMF:
http://download.macromedia.com/pub/labs/amf/amf0_spec_121207.pdf
This parser is capable of extracting the general metadata from header as well
as embedded metadata.
Known keys for metadata (from file header):
- hasVideo: true|false
- hasSound: true|false
In addition to the above values also metadata that is inserted in to the
actual stream will be picked. Usually there are keys like:
hasKeyframes, lastkeyframetimestamp, audiocodecid, keyframes, filepositions,
hasMetadata, audiosamplerate, videodatarate metadatadate, videocodecid,
metadatacreator, audiosize, hasVideo, height, audiosamplesize, framerate,
hasCuePoints width, cuePoints, lasttimestamp, canSeekToEnd, datasize,
duration, videosize, filesize, audiodatarate, hasAudio, stereo audiodelay
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLVParser
public FLVParser()
getSupportedTypes
public java.util.Set<MediaType> getSupportedTypes(ParseContext context)
- Specified by:
getSupportedTypes in interface Parser
parse
public void parse(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata,
ParseContext context)
throws java.io.IOException,
org.xml.sax.SAXException,
TikaException
- Specified by:
parse in interface Parser
- Throws:
java.io.IOException
org.xml.sax.SAXException
TikaException
parse
public void parse(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata)
throws java.io.IOException,
org.xml.sax.SAXException,
TikaException
- Specified by:
parse in interface Parser
- Throws:
java.io.IOException
org.xml.sax.SAXException
TikaException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.