Class MediaContainerMetadata
java.lang.Object
org.opencastproject.inspection.ffmpeg.api.CommonMetadata
org.opencastproject.inspection.ffmpeg.api.TemporalMetadata
org.opencastproject.inspection.ffmpeg.api.MediaContainerMetadata
Encapsulates technical metadata of media containers, usually media files.
Each property may return null, which means that it could not be determined.
-
Field Summary
Fields inherited from class org.opencastproject.inspection.ffmpeg.api.TemporalMetadata
bitRate, bitRateMaximum, bitRateMinimum, bitRateMode, bitRateNominal, durationFields inherited from class org.opencastproject.inspection.ffmpeg.api.CommonMetadata
encodedDate, encoderApplication, encoderApplicationURL, encoderApplicationVendor, encoderLibrary, encoderLibraryInfo, encoderLibraryReleaseDate, encoderLibrarySettings, encoderLibraryURL, encoderLibraryVendor, encoderLibraryVersion, encrypted, format, formatInfo, formatProfile, formatSettingsSummary, formatURL, formatVersion, language, size, taggedDate, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLooks for adaptive master fileReturns metadata for all contained audio streams.Returns the file extension, e.g.Returns the file name, e.g.Returns the mimeType of the fileReturns metadata for all contained subtitle streams.Returns metadata for all contained video streams.booleanChecks if any audio metadata is present.booleanChecks if any subtitle metadata is present.booleanChecks if any video metadata is present.Checks if contained audio and video streams are multiplexed.voidsetAdaptiveMaster(Boolean adaptiveMaster) voidsetFileExtension(String fileExtension) voidsetFileName(String fileName) voidsetInterleaved(Boolean interleaved) voidsetMimeType(MimeType mimeType) Methods inherited from class org.opencastproject.inspection.ffmpeg.api.TemporalMetadata
getBitRate, getBitRateMaximum, getBitRateMinimum, getBitRateMode, getBitRateNominal, getDuration, setBitRate, setBitRateMaximum, setBitRateMinimum, setBitRateMode, setBitRateNominal, setDurationMethods inherited from class org.opencastproject.inspection.ffmpeg.api.CommonMetadata
getEncodedDate, getEncoderApplication, getEncoderApplicationURL, getEncoderApplicationVendor, getEncoderLibrary, getEncoderLibraryInfo, getEncoderLibraryReleaseDate, getEncoderLibrarySettings, getEncoderLibraryURL, getEncoderLibraryVendor, getEncoderLibraryVersion, getFormat, getFormatInfo, getFormatProfile, getFormatSettingsSummary, getFormatURL, getFormatVersion, getLanguage, getSize, getTaggedDate, getTitle, isEncrypted, setEncodedDate, setEncoderApplication, setEncoderApplicationURL, setEncoderApplicationVendor, setEncoderLibrary, setEncoderLibraryInfo, setEncoderLibraryReleaseDate, setEncoderLibrarySettings, setEncoderLibraryURL, setEncoderLibraryVendor, setEncoderLibraryVersion, setEncrypted, setFormat, setFormatInfo, setFormatProfile, setFormatSettingsSummary, setFormatURL, setFormatVersion, setLanguage, setSize, setTaggedDate, setTitle
-
Constructor Details
-
MediaContainerMetadata
public MediaContainerMetadata()
-
-
Method Details
-
getVideoStreamMetadata
Returns metadata for all contained video streams.- Returns:
- the metadata or an empty list
-
getAudioStreamMetadata
Returns metadata for all contained audio streams.- Returns:
- the metadata or an empty list
-
getSubtitleStreamMetadata
Returns metadata for all contained subtitle streams.- Returns:
- the metadata or an empty list
-
hasVideoStreamMetadata
public boolean hasVideoStreamMetadata()Checks if any video metadata is present. -
hasAudioStreamMetadata
public boolean hasAudioStreamMetadata()Checks if any audio metadata is present. -
hasSubtitleStreamMetadata
public boolean hasSubtitleStreamMetadata()Checks if any subtitle metadata is present. -
getFileName
Returns the file name, e.g.metropolis.mov -
setFileName
-
getFileExtension
Returns the file extension, e.g.mov -
setFileExtension
-
isInterleaved
Checks if contained audio and video streams are multiplexed. -
setInterleaved
-
getMimeType
Returns the mimeType of the file- Returns:
- mimetype
-
setMimeType
-
getAdaptiveMaster
Looks for adaptive master file- Returns:
- true if this is an adaptiveMaster file
-
setAdaptiveMaster
-