public abstract class LiferayConverter
extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
AUDIO_BIT_RATE_DEFAULT |
protected static int |
AUDIO_BIT_RATE_MAX |
protected static int |
AUDIO_SAMPLE_RATE_DEFAULT |
protected static int |
AUDIO_SAMPLE_RATE_MAX |
protected static int |
DECODE_VIDEO_THUMBNAIL |
Constructor and Description |
---|
LiferayConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp(com.xuggle.xuggler.IPacket inputIPacket,
com.xuggle.xuggler.IPacket outputIPacket) |
protected void |
cleanUp(com.xuggle.xuggler.IStreamCoder[] inputIStreamCoders,
com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders) |
protected void |
cleanUp(com.xuggle.ferry.RefCounted[] inputRefCountedArray,
com.xuggle.ferry.RefCounted[] outputRefCountedArray) |
abstract void |
convert() |
protected int |
countNonKeyAfterKey(com.xuggle.xuggler.IPacket inputIPacket,
Boolean keyPacketFound,
int nonKeyAfterKeyCount) |
protected com.xuggle.xuggler.IAudioResampler |
createIAudioResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder) |
protected com.xuggle.xuggler.IVideoResampler |
createIVideoResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
int height,
int width) |
protected void |
decodeAudio(com.xuggle.xuggler.IAudioResampler iAudioResampler,
com.xuggle.xuggler.IAudioSamples inputIAudioSample,
com.xuggle.xuggler.IAudioSamples resampledIAudioSample,
com.xuggle.xuggler.IPacket inputIPacket,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IContainer outputIContainer,
int currentPacketSize,
int previousPacketSize,
int streamIndex,
long timeStampOffset) |
protected int |
decodeVideo(com.xuggle.xuggler.IVideoResampler iVideoResampler,
com.xuggle.xuggler.IVideoPicture inputIVideoPicture,
com.xuggle.xuggler.IVideoPicture resampledIVideoPicture,
com.xuggle.xuggler.IPacket inputIPacket,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IContainer outputIContainer,
File thumbnailFile,
String thumbnailExtension,
int thumbnailHeight,
int thumbnailWidth,
long timeStampOffset) |
protected void |
encodeAudio(com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IAudioSamples outputIAudioSample,
com.xuggle.xuggler.IContainer outputIContainer) |
protected void |
encodeVideo(com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IVideoPicture outputIVideoPicture,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IContainer outputIContainer) |
protected void |
flush(com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders,
com.xuggle.xuggler.IContainer outputIContainer) |
protected void |
flush(com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IContainer outputIContainer,
com.xuggle.xuggler.IPacket iPacket) |
protected int |
getAudioBitRate(com.xuggle.xuggler.ICodec outputICodec,
int originalBitRate) |
protected int |
getAudioEncodingChannels(com.xuggle.xuggler.IContainer outputIContainer,
int channels) |
protected com.xuggle.xuggler.ICodec |
getAudioEncodingICodec(com.xuggle.xuggler.IContainer outputIContainer) |
protected com.xuggle.xuggler.IAudioSamples.Format |
getAudioSampleFormat(com.xuggle.xuggler.ICodec outputICodec,
com.xuggle.xuggler.IAudioSamples.Format originalSampleFormat) |
protected int |
getAudioSampleRate() |
protected int |
getCodecBitRate(com.xuggle.xuggler.ICodec outputICodec,
int originalBitRate) |
protected abstract com.xuggle.xuggler.IContainer |
getInputIContainer() |
protected int |
getProperty(int originalValue,
int defaultValue,
int maxValue) |
protected int |
getProperty(Properties properties,
String propertyName,
String prettyPropertyName,
String container,
int defaultValue,
int maxValue) |
protected long |
getSeekTimeStamp(int percentage) |
protected long |
getStreamTimeStampOffset(com.xuggle.xuggler.IStream iStream) |
protected boolean |
isKeyPacketFound(com.xuggle.xuggler.IPacket inputIPacket,
boolean keyPacketFound) |
protected boolean |
isStartDecoding(com.xuggle.xuggler.IPacket inputIPacket,
com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
boolean keyPacketFound,
int nonKeyAfterKeyCount,
boolean onlyDecodeKeyPackets) |
protected void |
openContainer(com.xuggle.xuggler.IContainer iContainer,
String url,
boolean writeContainer) |
protected void |
openStreamCoder(com.xuggle.xuggler.IStreamCoder iStreamCoder) |
protected void |
prepareAudio(com.xuggle.xuggler.IAudioResampler[] iAudioResamplers,
com.xuggle.xuggler.IAudioSamples[] inputIAudioSamples,
com.xuggle.xuggler.IAudioSamples[] outputIAudioSamples,
com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders,
com.xuggle.xuggler.IContainer outputIContainer,
com.xuggle.xuggler.IStream[] outputIStreams,
com.xuggle.xuggler.ICodec.Type inputICodecType,
String outputURL,
int index) |
protected com.xuggle.xuggler.IAudioSamples |
resampleAudio(com.xuggle.xuggler.IAudioResampler iAudioResampler,
com.xuggle.xuggler.IAudioSamples inputIAudioSample,
com.xuggle.xuggler.IAudioSamples resampledIAudioSample) |
protected com.xuggle.xuggler.IVideoPicture |
resampleVideo(com.xuggle.xuggler.IVideoResampler iVideoResampler,
com.xuggle.xuggler.IVideoPicture inputIVideoPicture,
com.xuggle.xuggler.IVideoPicture resampledIVideoPicture) |
protected void |
rewind() |
protected int |
rewind(int index) |
protected int |
seek(int index,
long timeStamp) |
protected long |
seek(long timeStamp) |
protected void |
updateAudioTimeStamp(com.xuggle.xuggler.IAudioSamples inputAudioSample,
long timeStampOffset) |
protected void |
updateVideoTimeStamp(com.xuggle.xuggler.IVideoPicture inputIVideoPicture,
long timeStampOffset) |
protected static final int AUDIO_BIT_RATE_DEFAULT
protected static final int AUDIO_BIT_RATE_MAX
protected static final int AUDIO_SAMPLE_RATE_DEFAULT
protected static final int AUDIO_SAMPLE_RATE_MAX
protected static final int DECODE_VIDEO_THUMBNAIL
public abstract void convert() throws Exception
Exception
protected void cleanUp(com.xuggle.xuggler.IPacket inputIPacket, com.xuggle.xuggler.IPacket outputIPacket)
protected void cleanUp(com.xuggle.xuggler.IStreamCoder[] inputIStreamCoders, com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders)
protected void cleanUp(com.xuggle.ferry.RefCounted[] inputRefCountedArray, com.xuggle.ferry.RefCounted[] outputRefCountedArray)
protected int countNonKeyAfterKey(com.xuggle.xuggler.IPacket inputIPacket, Boolean keyPacketFound, int nonKeyAfterKeyCount)
protected com.xuggle.xuggler.IAudioResampler createIAudioResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder, com.xuggle.xuggler.IStreamCoder outputIStreamCoder) throws Exception
Exception
protected com.xuggle.xuggler.IVideoResampler createIVideoResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder, com.xuggle.xuggler.IStreamCoder outputIStreamCoder, int height, int width) throws Exception
Exception
protected void decodeAudio(com.xuggle.xuggler.IAudioResampler iAudioResampler, com.xuggle.xuggler.IAudioSamples inputIAudioSample, com.xuggle.xuggler.IAudioSamples resampledIAudioSample, com.xuggle.xuggler.IPacket inputIPacket, com.xuggle.xuggler.IPacket outputIPacket, com.xuggle.xuggler.IStreamCoder inputIStreamCoder, com.xuggle.xuggler.IStreamCoder outputIStreamCoder, com.xuggle.xuggler.IContainer outputIContainer, int currentPacketSize, int previousPacketSize, int streamIndex, long timeStampOffset) throws Exception
Exception
protected int decodeVideo(com.xuggle.xuggler.IVideoResampler iVideoResampler, com.xuggle.xuggler.IVideoPicture inputIVideoPicture, com.xuggle.xuggler.IVideoPicture resampledIVideoPicture, com.xuggle.xuggler.IPacket inputIPacket, com.xuggle.xuggler.IPacket outputIPacket, com.xuggle.xuggler.IStreamCoder inputIStreamCoder, com.xuggle.xuggler.IStreamCoder outputIStreamCoder, com.xuggle.xuggler.IContainer outputIContainer, File thumbnailFile, String thumbnailExtension, int thumbnailHeight, int thumbnailWidth, long timeStampOffset) throws Exception
Exception
protected void encodeAudio(com.xuggle.xuggler.IStreamCoder outputIStreamCoder, com.xuggle.xuggler.IPacket outputIPacket, com.xuggle.xuggler.IAudioSamples outputIAudioSample, com.xuggle.xuggler.IContainer outputIContainer) throws Exception
Exception
protected void encodeVideo(com.xuggle.xuggler.IStreamCoder outputIStreamCoder, com.xuggle.xuggler.IVideoPicture outputIVideoPicture, com.xuggle.xuggler.IPacket outputIPacket, com.xuggle.xuggler.IContainer outputIContainer) throws Exception
Exception
protected void flush(com.xuggle.xuggler.IStreamCoder outputIStreamCoder, com.xuggle.xuggler.IContainer outputIContainer, com.xuggle.xuggler.IPacket iPacket)
protected void flush(com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders, com.xuggle.xuggler.IContainer outputIContainer)
protected int getAudioBitRate(com.xuggle.xuggler.ICodec outputICodec, int originalBitRate)
protected int getAudioEncodingChannels(com.xuggle.xuggler.IContainer outputIContainer, int channels)
protected com.xuggle.xuggler.ICodec getAudioEncodingICodec(com.xuggle.xuggler.IContainer outputIContainer)
protected com.xuggle.xuggler.IAudioSamples.Format getAudioSampleFormat(com.xuggle.xuggler.ICodec outputICodec, com.xuggle.xuggler.IAudioSamples.Format originalSampleFormat)
protected int getAudioSampleRate()
protected int getCodecBitRate(com.xuggle.xuggler.ICodec outputICodec, int originalBitRate)
protected abstract com.xuggle.xuggler.IContainer getInputIContainer()
protected int getProperty(int originalValue, int defaultValue, int maxValue)
protected int getProperty(Properties properties, String propertyName, String prettyPropertyName, String container, int defaultValue, int maxValue)
protected long getSeekTimeStamp(int percentage) throws Exception
Exception
protected long getStreamTimeStampOffset(com.xuggle.xuggler.IStream iStream)
protected boolean isKeyPacketFound(com.xuggle.xuggler.IPacket inputIPacket, boolean keyPacketFound)
protected boolean isStartDecoding(com.xuggle.xuggler.IPacket inputIPacket, com.xuggle.xuggler.IStreamCoder inputIStreamCoder, boolean keyPacketFound, int nonKeyAfterKeyCount, boolean onlyDecodeKeyPackets)
protected void openContainer(com.xuggle.xuggler.IContainer iContainer, String url, boolean writeContainer) throws Exception
Exception
protected void openStreamCoder(com.xuggle.xuggler.IStreamCoder iStreamCoder) throws Exception
Exception
protected void prepareAudio(com.xuggle.xuggler.IAudioResampler[] iAudioResamplers, com.xuggle.xuggler.IAudioSamples[] inputIAudioSamples, com.xuggle.xuggler.IAudioSamples[] outputIAudioSamples, com.xuggle.xuggler.IStreamCoder inputIStreamCoder, com.xuggle.xuggler.IStreamCoder[] outputIStreamCoders, com.xuggle.xuggler.IContainer outputIContainer, com.xuggle.xuggler.IStream[] outputIStreams, com.xuggle.xuggler.ICodec.Type inputICodecType, String outputURL, int index) throws Exception
Exception
protected com.xuggle.xuggler.IAudioSamples resampleAudio(com.xuggle.xuggler.IAudioResampler iAudioResampler, com.xuggle.xuggler.IAudioSamples inputIAudioSample, com.xuggle.xuggler.IAudioSamples resampledIAudioSample) throws Exception
Exception
protected com.xuggle.xuggler.IVideoPicture resampleVideo(com.xuggle.xuggler.IVideoResampler iVideoResampler, com.xuggle.xuggler.IVideoPicture inputIVideoPicture, com.xuggle.xuggler.IVideoPicture resampledIVideoPicture) throws Exception
Exception
protected void rewind() throws Exception
Exception
protected int rewind(int index) throws Exception
Exception
protected int seek(int index, long timeStamp) throws Exception
Exception
protected long seek(long timeStamp) throws Exception
Exception
protected void updateAudioTimeStamp(com.xuggle.xuggler.IAudioSamples inputAudioSample, long timeStampOffset)
protected void updateVideoTimeStamp(com.xuggle.xuggler.IVideoPicture inputIVideoPicture, long timeStampOffset)