public class FFMPEGParser extends AbstractDemultiplexer
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
DURATION_UNBOUNDED, DURATION_UNKNOWN
Constructor and Description |
---|
FFMPEGParser() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static AudioFormat |
convertCodecAudioFormat(net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext codecCtx) |
ContentDescriptor[] |
getSupportedInputContentDescriptors() |
Track[] |
getTracks() |
boolean |
isPositionable() |
boolean |
isRandomAccess() |
void |
open() |
protected void |
queryInputContentDescriptors() |
Time |
setPosition(Time where,
int rounding) |
void |
setSource(DataSource source) |
void |
start() |
getDuration, getMediaTime, stop
getName, reset
addControl, getControl, getControls, removeControl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControl, getControls
public ContentDescriptor[] getSupportedInputContentDescriptors()
getSupportedInputContentDescriptors
in interface Demultiplexer
getSupportedInputContentDescriptors
in class AbstractDemultiplexer
protected void queryInputContentDescriptors()
public Track[] getTracks() throws java.io.IOException, BadHeaderException
getTracks
in interface Demultiplexer
getTracks
in class AbstractDemultiplexer
java.io.IOException
BadHeaderException
public void setSource(DataSource source) throws java.io.IOException, IncompatibleSourceException
setSource
in interface MediaHandler
setSource
in class AbstractDemultiplexer
java.io.IOException
IncompatibleSourceException
public void open() throws ResourceUnavailableException
open
in interface PlugIn
open
in class AbstractPlugIn
ResourceUnavailableException
public void close()
close
in interface PlugIn
close
in class AbstractPlugIn
public void start() throws java.io.IOException
start
in interface Demultiplexer
start
in class AbstractDemultiplexer
java.io.IOException
public boolean isPositionable()
isPositionable
in interface Demultiplexer
isPositionable
in class AbstractDemultiplexer
public Time setPosition(Time where, int rounding)
setPosition
in interface Demultiplexer
setPosition
in class AbstractDemultiplexer
public boolean isRandomAccess()
isRandomAccess
in interface Demultiplexer
isRandomAccess
in class AbstractDemultiplexer
public static AudioFormat convertCodecAudioFormat(net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext codecCtx)