Class MultiMediaFormatEncoder

  • All Implemented Interfaces:
    IFormatTransformer

    public class MultiMediaFormatEncoder
    extends Object
    implements IFormatTransformer
    Provides Multimedia format encoder used for video or audio. This class has a dependence of Jave.
    Since:
    6.1.0
    Version:
    $Revision: 16814 $ $Date: 2015-01-23 11:33:18 -0200 (Fri, 23 Jan 2015) $
    • Constructor Detail

      • MultiMediaFormatEncoder

        public MultiMediaFormatEncoder​(String contentType,
                                       String targetFormat)
        The class constructor.
        Parameters:
        contentType - the target content type.
        targetFormat - target file format.
        Since:
        6.1.0
    • Method Detail

      • getEncodingAttributes

        protected it.sauronsoftware.jave.EncodingAttributes getEncodingAttributes​(String contentType,
                                                                                  String targetFormat)
                                                                           throws PortalException
        Returns the encoding attributes correctly built for given content type and target format.
        Parameters:
        contentType - the content type of the target of transformation.
        targetFormat - the target file format.
        Returns:
        the encoding attributes correctly built for given target content type.
        Throws:
        PortalException
        Since:
        6.1.0
      • getCodecByFormat

        protected String getCodecByFormat​(String fileFormat)
                                   throws PortalException
        Returns the codec for the file format.
        Parameters:
        fileFormat - the format of the target file.
        Returns:
        the codec for the file format.
        Throws:
        PortalException
        Since:
        6.1.0