org.apache.tika.parser.video
Class FLVParser

java.lang.Object
  extended by org.apache.tika.parser.AbstractParser
      extended by org.apache.tika.parser.video.FLVParser
All Implemented Interfaces:
Serializable, org.apache.tika.parser.Parser

public class FLVParser
extends org.apache.tika.parser.AbstractParser

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):

  1. hasVideo: true|false
  2. 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

Constructor Summary
FLVParser()
           
 
Method Summary
 Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
           
 void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)
           
 
Methods inherited from class org.apache.tika.parser.AbstractParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FLVParser

public FLVParser()
Method Detail

getSupportedTypes

public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)

parse

public void parse(InputStream stream,
                  ContentHandler handler,
                  org.apache.tika.metadata.Metadata metadata,
                  org.apache.tika.parser.ParseContext context)
           throws IOException,
                  SAXException,
                  org.apache.tika.exception.TikaException
Throws:
IOException
SAXException
org.apache.tika.exception.TikaException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.