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 String |
FFMPEG_INFO_COMMAND_LINE |
static org.apache.commons.logging.Log |
log |
static String |
MISSING_PREVIEW_PICTURE |
static ArrayList<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 at
10% of the duration to avoid black screen fade in video.
|
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 void updateStoryboard(DocumentModel docModel, Blob video) throws PropertyException, ClientException
PropertyException
ClientException
public static void updatePreviews(DocumentModel docModel, Blob video, Double position, List<Map<String,Object>> templates) throws ClientException, IOException
ClientException
IOException
public static void updatePreviews(DocumentModel docModel, Blob video) throws ClientException, IOException
ClientException
IOException
public static void updateVideoInfo(DocumentModel docModel, Blob video) throws ClientException
ClientException
public static VideoInfo getVideoInfo(Blob video) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.