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 |
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.
|
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
public static final ArrayList<Map<String,Object>> THUMBNAILS_VIEWS
public static void updateStoryboard(DocumentModel docModel, Blob video) throws PropertyException
PropertyException
public static void updatePreviews(DocumentModel docModel, Blob video, Double position, List<Map<String,Object>> templates) throws IOException
IOException
public static void updatePreviews(DocumentModel docModel, Blob video) throws IOException
IOException
public static void updateVideoInfo(DocumentModel docModel, Blob video)
public static VideoInfo getVideoInfo(Blob video)
Copyright © 2018 Nuxeo. All rights reserved.