public abstract class LiferayConverter
extends java.lang.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,
java.lang.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,
java.io.File thumbnailFile,
java.lang.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(java.util.Properties properties,
java.lang.String propertyName,
java.lang.String prettyPropertyName,
java.lang.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,
java.lang.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,
java.lang.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 java.lang.Exception
java.lang.Exceptionprotected 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,
java.lang.Boolean keyPacketFound,
int nonKeyAfterKeyCount)
protected com.xuggle.xuggler.IAudioResampler createIAudioResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder)
throws java.lang.Exception
java.lang.Exceptionprotected com.xuggle.xuggler.IVideoResampler createIVideoResampler(com.xuggle.xuggler.IStreamCoder inputIStreamCoder,
com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
int height,
int width)
throws java.lang.Exception
java.lang.Exceptionprotected 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 java.lang.Exception
java.lang.Exceptionprotected 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,
java.io.File thumbnailFile,
java.lang.String thumbnailExtension,
int thumbnailHeight,
int thumbnailWidth,
long timeStampOffset)
throws java.lang.Exception
java.lang.Exceptionprotected void encodeAudio(com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IAudioSamples outputIAudioSample,
com.xuggle.xuggler.IContainer outputIContainer)
throws java.lang.Exception
java.lang.Exceptionprotected void encodeVideo(com.xuggle.xuggler.IStreamCoder outputIStreamCoder,
com.xuggle.xuggler.IVideoPicture outputIVideoPicture,
com.xuggle.xuggler.IPacket outputIPacket,
com.xuggle.xuggler.IContainer outputIContainer)
throws java.lang.Exception
java.lang.Exceptionprotected 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(java.util.Properties properties,
java.lang.String propertyName,
java.lang.String prettyPropertyName,
java.lang.String container,
int defaultValue,
int maxValue)
protected long getSeekTimeStamp(int percentage)
throws java.lang.Exception
java.lang.Exceptionprotected 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,
java.lang.String url,
boolean writeContainer)
throws java.lang.Exception
java.lang.Exceptionprotected void openStreamCoder(com.xuggle.xuggler.IStreamCoder iStreamCoder)
throws java.lang.Exception
java.lang.Exceptionprotected 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,
java.lang.String outputURL,
int index)
throws java.lang.Exception
java.lang.Exceptionprotected com.xuggle.xuggler.IAudioSamples resampleAudio(com.xuggle.xuggler.IAudioResampler iAudioResampler,
com.xuggle.xuggler.IAudioSamples inputIAudioSample,
com.xuggle.xuggler.IAudioSamples resampledIAudioSample)
throws java.lang.Exception
java.lang.Exceptionprotected com.xuggle.xuggler.IVideoPicture resampleVideo(com.xuggle.xuggler.IVideoResampler iVideoResampler,
com.xuggle.xuggler.IVideoPicture inputIVideoPicture,
com.xuggle.xuggler.IVideoPicture resampledIVideoPicture)
throws java.lang.Exception
java.lang.Exceptionprotected void rewind()
throws java.lang.Exception
java.lang.Exceptionprotected int rewind(int index)
throws java.lang.Exception
java.lang.Exceptionprotected int seek(int index,
long timeStamp)
throws java.lang.Exception
java.lang.Exceptionprotected long seek(long timeStamp)
throws java.lang.Exception
java.lang.Exceptionprotected void updateAudioTimeStamp(com.xuggle.xuggler.IAudioSamples inputAudioSample,
long timeStampOffset)
protected void updateVideoTimeStamp(com.xuggle.xuggler.IVideoPicture inputIVideoPicture,
long timeStampOffset)