Class FFmpegAnalyzer
java.lang.Object
org.opencastproject.inspection.ffmpeg.FFmpegAnalyzer
- All Implemented Interfaces:
MediaAnalyzer
This MediaAnalyzer implementation uses the ffprobe binary of FFmpeg for media analysis. Also this implementation does
not keep control-, text- or other non-audio or video streams and purposefully ignores them during the
postProcess() step.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnalyze a media file and return the metadata that is foundprotected StringReturns the binary used to provide media inspection functionality.voidvoidAllows configuration
-
Field Details
-
binary
Path to the executable -
FFPROBE_BINARY_CONFIG
- See Also:
-
FFPROBE_BINARY_DEFAULT
- See Also:
-
-
Constructor Details
-
FFmpegAnalyzer
public FFmpegAnalyzer(boolean accurateFrameCount)
-
-
Method Details
-
getBinary
Returns the binary used to provide media inspection functionality.- Returns:
- the binary
-
setBinary
-
analyze
Description copied from interface:MediaAnalyzerAnalyze a media file and return the metadata that is found- Specified by:
analyzein interfaceMediaAnalyzer- Parameters:
media- any media file- Returns:
- the metadata that is found
- Throws:
MediaAnalyzerException- if the analyzer fails
-
setConfig
Allows configuration- Specified by:
setConfigin interfaceMediaAnalyzer- See Also:
-