Package org.apache.tika.parser.inference
Class MediaConfig
java.lang.Object
org.apache.tika.parser.inference.MediaConfig
- All Implemented Interfaces:
Serializable,Initializable
The
"media" parse-context block: how audio and video are cut into segments before
a MEDIA binding sees them. One grid per document, shared by every binding, so the vectors of
one segment land on one chunk. Defaults: 25 s windows, 5 s overlap, 480 segments; 25 s
keeps an audio item under the 30 s cap hosted omni engines enforce (Jina rejects 30.0 s).- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSegments per document; the rest of the file is not embedded. -1 for no limit.voidRuns at config load and per request; the task checks again for a programmatic block.voidsetMaxSegments(int maxSegments) voidsetSegment(MediaConfig.Segment segment)
-
Constructor Details
-
MediaConfig
public MediaConfig()
-
-
Method Details
-
getSegment
-
setSegment
-
getMaxSegments
public int getMaxSegments()Segments per document; the rest of the file is not embedded. -1 for no limit. -
setMaxSegments
public void setMaxSegments(int maxSegments) -
initialize
Runs at config load and per request; the task checks again for a programmatic block.- Specified by:
initializein interfaceInitializable- Throws:
TikaConfigException- if there is a problem with the configuration
-