Class JNIEncoder
- java.lang.Object
-
- net.sf.fmj.media.AbstractControls
-
- net.sf.fmj.media.AbstractPlugIn
-
- net.sf.fmj.media.AbstractCodec
-
- org.jitsi.impl.neomedia.codec.AbstractCodec2
-
- org.jitsi.impl.neomedia.codec.audio.AbstractFFmpegAudioCodec
-
- org.jitsi.impl.neomedia.codec.audio.FFmpegAudioEncoder
-
- org.jitsi.impl.neomedia.codec.audio.mp3.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
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.codec.audio.FFmpegAudioEncoder
prevInLen
-
Fields inherited from class org.jitsi.impl.neomedia.codec.audio.AbstractFFmpegAudioCodec
avctx, codecID, frameSizeInBytes
-
Fields inherited from class org.jitsi.impl.neomedia.codec.AbstractCodec2
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
-
-
Constructor Summary
Constructors Constructor Description JNIEncoder()Initializes a new JNIEncoder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureAVCodecContext(long avctx, javax.media.format.AudioFormat format)Configures the AVCodecContext initialized inAbstractFFmpegAudioCodec.doOpen()prior to invoking one of the FFmpeg functions in the avcodec_open family.voidflush()Flushes the buffer.ComponentgetControlComponent()-
Methods inherited from class org.jitsi.impl.neomedia.codec.audio.FFmpegAudioEncoder
assertFindAVCodec, doClose, doProcess, findAVCodec, getAVCodecContextFormat
-
Methods inherited from class org.jitsi.impl.neomedia.codec.audio.AbstractFFmpegAudioCodec
codecIDToString, doOpen
-
Methods inherited from class org.jitsi.impl.neomedia.codec.AbstractCodec2
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
-
Methods inherited from class net.sf.fmj.media.AbstractCodec
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
-
Methods inherited from class net.sf.fmj.media.AbstractControls
addControl, getControl, getControls, removeControl
-
-
-
-
Method Detail
-
configureAVCodecContext
protected void configureAVCodecContext(long avctx, javax.media.format.AudioFormat format)Configures the AVCodecContext initialized inAbstractFFmpegAudioCodec.doOpen()prior to invoking one of the FFmpeg functions in the avcodec_open family. Allows extenders to override and provide additional, optional configuration.- Overrides:
configureAVCodecContextin classFFmpegAudioEncoder- Parameters:
avctx- the AVCodecContext to configureformat- the AudioFormat with which avctx is being configured
-
flush
public void flush()
Flushes the buffer.- Specified by:
flushin interfaceFlushableControl
-
getControlComponent
public Component getControlComponent()
- Specified by:
getControlComponentin interfacejavax.media.Control
-
-