Package org.opencastproject.composer.api
Interface EncodingProfile
- All Known Implementing Classes:
EncodingProfileImpl
public interface EncodingProfile
An encoding format encapsulates all the relevant configuration data for
encoding a media file to a certain encoding formats.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumInput and output formats. -
Method Summary
Modifier and TypeMethodDescriptionReturns the media format that can be used with this encoding profile.getExtension(String key) Returns the extension specified bykeyornullif no such key was defined.Returns a map containing the additional properties or an empty map if no additional properties were found.Returns the unique format identifier.floatReturns an estimate of the load a single job with this profile causes.getName()Returns the encoding format's name.Returns the encoding format's media type, which is either video (plus audio) or audio only.Returns the source object that provided this encoding profileReturns a suffix of the files.Returns a suffix of the files for a certain tag.getTags()Returns a list of the tags for output files used in this requestbooleanReturnstrueif additional properties have been specified.booleanReturnstrueif the profile is applicable for the given track type.voidsetMimeType(String mimeType) Sets the Mimetype.
-
Method Details
-
getIdentifier
String getIdentifier()Returns the unique format identifier.- Returns:
- the format identifier
-
getName
String getName()Returns the encoding format's name.- Returns:
- the format name
-
getSource
Object getSource()Returns the source object that provided this encoding profile- Returns:
- the source object that provided this profile
-
getOutputType
EncodingProfile.MediaType getOutputType()Returns the encoding format's media type, which is either video (plus audio) or audio only.- Returns:
- the format type
-
getSuffix
String getSuffix()Returns a suffix of the files. First tag found used if tags are used but not provided in the request- Returns:
- the suffix
-
getSuffix
Returns a suffix of the files for a certain tag.- Parameters:
tag- a tag that describes the aoutput file- Returns:
- the suffix
-
getTags
Returns a list of the tags for output files used in this request- Returns:
- a list of the used tags
-
getMimeType
String getMimeType()- See Also:
-
setMimeType
Sets the Mimetype.- Parameters:
mimeType- the Mimetype
-
getApplicableMediaType
EncodingProfile.MediaType getApplicableMediaType()Returns the media format that can be used with this encoding profile.- Returns:
- the applicable input format
-
isApplicableTo
Returnstrueif the profile is applicable for the given track type.- Parameters:
type- the track type- Returns:
trueif the profile is applicable
-
hasExtensions
boolean hasExtensions()Returnstrueif additional properties have been specified.- Returns:
trueif there are additional properties
-
getExtension
Returns the extension specified bykeyornullif no such key was defined.Note that
keymust not contain the media format prefix, so if the configured entry wasmediaformat.format.xyz.test, then the key to access the value must simply betest.- Parameters:
key- the extension key- Returns:
- the value or
null
-
getExtensions
Returns a map containing the additional properties or an empty map if no additional properties were found.- Returns:
- the additional properties
-
getJobLoad
float getJobLoad()Returns an estimate of the load a single job with this profile causes. This should be roughly equal to the number of processor cores used at runtime.- Returns:
- the load a single job with this profile causes
-