com.liferay.portlet.documentlibrary.util
Class LiferayVideoConverter
java.lang.Object
com.liferay.portlet.documentlibrary.util.LiferayConverter
com.liferay.portlet.documentlibrary.util.LiferayVideoConverter
public class LiferayVideoConverter
- extends LiferayConverter
Method Summary |
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)
|
Methods inherited from class com.liferay.portlet.documentlibrary.util.LiferayConverter |
cleanUp, cleanUp, cleanUp, countNonKeyAfterKey, createIAudioResampler, createIVideoResampler, decodeAudio, decodeVideo, encodeAudio, encodeVideo, flush, flush, getAudioBitRate, getAudioEncodingChannels, getAudioEncodingICodec, getAudioSampleFormat, getAudioSampleRate, getProperty, getProperty, getSeekTimeStamp, getStreamTimeStampOffset, isKeyPacketFound, isStartDecoding, openContainer, openStreamCoder, prepareAudio, resampleAudio, resampleVideo, rewind, rewind, seek, seek, updateAudioTimeStamp, updateVideoTimeStamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiferayVideoConverter
public LiferayVideoConverter(String inputURL,
String outputURL,
String videoContainer,
Properties videoProperties,
Properties ffpresetProperties)
convert
public void convert()
throws Exception
- Specified by:
convert
in class LiferayConverter
- Throws:
Exception
createMP4FastStart
protected void createMP4FastStart()
doConvert
protected void doConvert()
throws Exception
- Throws:
Exception
getInputIContainer
protected com.xuggle.xuggler.IContainer getInputIContainer()
- Specified by:
getInputIContainer
in class LiferayConverter
getVideoBitRate
protected int getVideoBitRate(int originalBitRate)
getVideoEncodingICodec
protected com.xuggle.xuggler.ICodec getVideoEncodingICodec(com.xuggle.xuggler.ICodec.Type inputICodecType,
String outputURL)
getVideoFrameRate
protected com.xuggle.xuggler.IRational getVideoFrameRate(com.xuggle.xuggler.IRational originalFrameRate)
initVideoBitRate
protected void initVideoBitRate(Properties videoProperties)
initVideoFrameRate
protected void initVideoFrameRate(Properties videoProperties)
prepareVideo
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
- Throws:
Exception