Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Class LiferayVideoConverter

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.LiferayConverter
      extended by com.liferay.portlet.documentlibrary.util.LiferayVideoConverter

public class LiferayVideoConverter
extends LiferayConverter


Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.util.LiferayConverter
AUDIO_BIT_RATE_DEFAULT, AUDIO_BIT_RATE_MAX, AUDIO_SAMPLE_RATE_DEFAULT, AUDIO_SAMPLE_RATE_MAX, DECODE_VIDEO_THUMBNAIL
 
Constructor Summary
LiferayVideoConverter(String inputURL, String outputURL, String videoContainer, Properties videoProperties, Properties ffpresetProperties)
           
 
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
 

Constructor Detail

LiferayVideoConverter

public LiferayVideoConverter(String inputURL,
                             String outputURL,
                             String videoContainer,
                             Properties videoProperties,
                             Properties ffpresetProperties)
Method Detail

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

Liferay 6.1.2-ce-ga3