public class LiferayVideoConverter extends LiferayConverter
AUDIO_BIT_RATE_DEFAULT, AUDIO_BIT_RATE_MAX, AUDIO_SAMPLE_RATE_DEFAULT, AUDIO_SAMPLE_RATE_MAX, DECODE_VIDEO_THUMBNAIL
Constructor and Description |
---|
LiferayVideoConverter(String inputURL,
String outputURL,
String videoContainer,
Properties videoProperties,
Properties ffpresetProperties) |
Modifier and Type | Method and Description |
---|---|
void |
convert() |
protected void |
createMP4FastStart() |
protected void |
doConvert() |
protected com.xuggle.xuggler.IContainer |
getInputIContainer() |
protected int |
getVideoBitRate(int originalBitRate) |
protected com.xuggle.xuggler.ICodec |
getVideoEncodingICodec(com.xuggle.xuggler.ICodec.Type inputICodecType,
String outputURL) |
protected com.xuggle.xuggler.IRational |
getVideoFrameRate(com.xuggle.xuggler.IRational originalFrameRate) |
protected void |
initVideoBitRate(Properties videoProperties) |
protected void |
initVideoFrameRate(Properties videoProperties) |
protected void |
prepareVideo(com.xuggle.xuggler.IVideoResampler[] iVideoResamplers,
com.xuggle.xuggler.IVideoPicture[] inputIVideoPictures,
com.xuggle.xuggler.IVideoPicture[] outputIVideoPictures,
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) |
cleanUp, cleanUp, cleanUp, countNonKeyAfterKey, createIAudioResampler, createIVideoResampler, decodeAudio, decodeVideo, encodeAudio, encodeVideo, flush, flush, getAudioBitRate, getAudioEncodingChannels, getAudioEncodingICodec, getAudioSampleFormat, getAudioSampleRate, getCodecBitRate, getProperty, getProperty, getSeekTimeStamp, getStreamTimeStampOffset, isKeyPacketFound, isStartDecoding, openContainer, openStreamCoder, prepareAudio, resampleAudio, resampleVideo, rewind, rewind, seek, seek, updateAudioTimeStamp, updateVideoTimeStamp
public LiferayVideoConverter(String inputURL, String outputURL, String videoContainer, Properties videoProperties, Properties ffpresetProperties)
public void convert() throws Exception
convert
in class LiferayConverter
Exception
protected void createMP4FastStart()
protected void doConvert() throws Exception
Exception
protected com.xuggle.xuggler.IContainer getInputIContainer()
getInputIContainer
in class LiferayConverter
protected int getVideoBitRate(int originalBitRate)
protected com.xuggle.xuggler.ICodec getVideoEncodingICodec(com.xuggle.xuggler.ICodec.Type inputICodecType, String outputURL)
protected com.xuggle.xuggler.IRational getVideoFrameRate(com.xuggle.xuggler.IRational originalFrameRate)
protected void initVideoBitRate(Properties videoProperties)
protected void initVideoFrameRate(Properties videoProperties)
protected void prepareVideo(com.xuggle.xuggler.IVideoResampler[] iVideoResamplers, com.xuggle.xuggler.IVideoPicture[] inputIVideoPictures, com.xuggle.xuggler.IVideoPicture[] outputIVideoPictures, 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