Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Class LiferayVideoThumbnailConverter

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

public class LiferayVideoThumbnailConverter
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
LiferayVideoThumbnailConverter(String inputURL, File outputFile, String extension, int height, int width, int percentage)
           
 
Method Summary
 void convert()
           
protected  void doConvert()
           
protected  boolean generateThumbnail(com.xuggle.xuggler.IStreamCoder[] inputIStreamCoders, com.xuggle.xuggler.IVideoPicture[] inputIVideoPictures)
           
protected  com.xuggle.xuggler.IContainer getInputIContainer()
           
 
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

LiferayVideoThumbnailConverter

public LiferayVideoThumbnailConverter(String inputURL,
                                      File outputFile,
                                      String extension,
                                      int height,
                                      int width,
                                      int percentage)
Method Detail

convert

public void convert()
             throws Exception
Specified by:
convert in class LiferayConverter
Throws:
Exception

doConvert

protected void doConvert()
                  throws Exception
Throws:
Exception

generateThumbnail

protected boolean generateThumbnail(com.xuggle.xuggler.IStreamCoder[] inputIStreamCoders,
                                    com.xuggle.xuggler.IVideoPicture[] inputIVideoPictures)
                             throws Exception
Throws:
Exception

getInputIContainer

protected com.xuggle.xuggler.IContainer getInputIContainer()
Specified by:
getInputIContainer in class LiferayConverter

Liferay 6.1.2-ce-ga3