Class JNIEncoder

  • All Implemented Interfaces:
    javax.media.Codec, javax.media.Control, javax.media.Controls, javax.media.PlugIn, FlushableControl

    public class JNIEncoder
    extends FFmpegAudioEncoder
    implements FlushableControl
    Implements a MP3 encoder using the native FFmpeg library.
    Author:
    Lyubomir Marinov, Boris Grozev
    • Constructor Detail

      • JNIEncoder

        public JNIEncoder()
        Initializes a new JNIEncoder instance.
    • Method Detail

      • configureAVCodecContext

        protected void configureAVCodecContext​(long avctx,
                                               javax.media.format.AudioFormat format)
        Configures the AVCodecContext initialized in AbstractFFmpegAudioCodec.doOpen() prior to invoking one of the FFmpeg functions in the avcodec_open family. Allows extenders to override and provide additional, optional configuration.
        Overrides:
        configureAVCodecContext in class FFmpegAudioEncoder
        Parameters:
        avctx - the AVCodecContext to configure
        format - the AudioFormat with which avctx is being configured
      • getControlComponent

        public Component getControlComponent()
        Specified by:
        getControlComponent in interface javax.media.Control