Interface Codec.EncoderFactory

    • Method Detail

      • createForAudioEncoding

        Codec createForAudioEncoding​(Format format,
                                     List<String> allowedMimeTypes)
                              throws TransformationException
        Returns a Codec for audio encoding.

        This method must validate that the Codec is configured to produce one of the allowedMimeTypes. The sample MIME type given in format is not necessarily allowed.

        Parameters:
        format - The Format (of the output data) used to determine the underlying encoder and its configuration values.
        allowedMimeTypes - The non-empty list of allowed output sample MIME types.
        Returns:
        A Codec for audio encoding.
        Throws:
        TransformationException - If no suitable Codec can be created.
      • audioNeedsEncoding

        default boolean audioNeedsEncoding()
        Returns whether the audio needs to be encoded because of encoder specific configuration.
      • videoNeedsEncoding

        default boolean videoNeedsEncoding()
        Returns whether the video needs to be encoded because of encoder specific configuration.