Javatpoint Logo
Javatpoint Logo

Tika MP4 File Extraction

In Tika, MP4Parser is a class which is used to extract content and data from the Mp4 file. This class is located inside the org.apache.tika.parser.mp4 package.

It contains the various constructors and methods. See the following tables.

Tika MP4Parser Constructor

Following are the constructors of MP4Parser class.

Constructor Description
public MP4Parser() It is used to create instance of the class.

Tika MP4Parser Methods

Following are the methods of MP4Parser class.

Methods Description
public Set<MediaType> getSupportedTypes(ParseContext context) It returns the set of media types supported by this parser when used with the given parse context.
public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException It parses a document stream into a sequence of XHTML SAX events. Fills in related document metadata in the given metadata object.

Tika MP4 Parse Example

In the following example, we are extracting a MP4 media file. See the example.

Output:


Tika MP4 File Extraction





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA