public class VideoHelper extends Object
If the need to evolve to make this further configurable (not just using the existing converter / commandline extensions points), we might want to turn this class into a full blown nuxeo service.
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_MIN_DURATION_FOR_STORYBOARD  | 
static int | 
DEFAULT_NUMBER_OF_THUMBNAILS  | 
static String | 
FFMPEG_INFO_COMMAND_LINE  | 
static org.apache.commons.logging.Log | 
log  | 
static String | 
MISSING_PREVIEW_PICTURE  | 
protected static List<Map<String,Object>> | 
THUMBNAILS_VIEWS  | 
| Modifier and Type | Method and Description | 
|---|---|
static VideoInfo | 
getVideoInfo(Blob video)  | 
static void | 
updatePreviews(DocumentModel docModel,
              Blob video)
Update the JPEG previews of a Video document from the video blob content by taking a screen-shot of the movie. 
 | 
static void | 
updatePreviews(DocumentModel docModel,
              Blob video,
              Double position,
              List<Map<String,Object>> templates)
Update the JPEG previews of a Video document from the video blob content by taking a screen-shot of the movie at
 timecode offset given in seconds. 
 | 
static void | 
updateStoryboard(DocumentModel docModel,
                Blob video)
Update the JPEG story board and duration in seconds of a Video document from the video blob content. 
 | 
static void | 
updateVideoInfo(DocumentModel docModel,
               Blob video)  | 
public static final org.apache.commons.logging.Log log
public static final String MISSING_PREVIEW_PICTURE
public static final String FFMPEG_INFO_COMMAND_LINE
public static final int DEFAULT_MIN_DURATION_FOR_STORYBOARD
public static final int DEFAULT_NUMBER_OF_THUMBNAILS
protected static final List<Map<String,Object>> THUMBNAILS_VIEWS
public static void updateStoryboard(DocumentModel docModel, Blob video)
public static void updatePreviews(DocumentModel docModel, Blob video, Double position, List<Map<String,Object>> templates) throws IOException
IOExceptionpublic static void updatePreviews(DocumentModel docModel, Blob video) throws IOException
IOExceptionpublic static void updateVideoInfo(DocumentModel docModel, Blob video)
public static VideoInfo getVideoInfo(Blob video)
Copyright © 2019 Nuxeo. All rights reserved.