Interface VideoToolsService
- All Known Implementing Classes:
VideoToolsServiceImpl
public interface VideoToolsService
Service that allows the execution of different operations in video blobs through the execution of
VideoTool
.- Since:
- 8.4
-
Method Summary
Modifier and TypeMethodDescriptionConcat the input video blobs into a single video blob.extractClosedCaptions
(Blob video, String outputFormat, String startAt, String endAt) Extracts the closed captions from a video blob.boolean
isToolAvailable
(String toolName) Checks if a determined tool is available.Slices a video blob from a start time and the input duration.Add a watermark to a video blob.
-
Method Details
-
extractClosedCaptions
Extracts the closed captions from a video blob.- Parameters:
video
- the input bloboutputFormat
- the outformat of the captions (srt, txt, ttxt is the default)startAt
- the start time in format "xx:xx"endAt
- the end time in format "xx:xx"- Returns:
- the closed captions if any were found
-
concat
Concat the input video blobs into a single video blob.- Returns:
- video blob with the videos concatenated
-
slice
Slices a video blob from a start time and the input duration. If start it empty, the blob will be sliced in n-parts with similar duration. If duration is empty, the video blob will be sliced from startAt until the end.- Parameters:
video
- the input blobstartAt
- the start time in "xx:xx" formatduration
- the duration of the sliced blob in secondsencode
- option to re-encode the ouptut video blob- Returns:
- video blobs generated by the slicer
-
watermark
Add a watermark to a video blob.- Parameters:
video
- the input blobpicture
- the picture blob to be used as the watermarkx
- the x offset starting from the lefty
- the y offset starting from the top- Returns:
- a video blob with a watermark at the position specified
-
isToolAvailable
Checks if a determined tool is available.- Parameters:
toolName
- the name of the tool- Returns:
- true if the tool is available or false otherwise
-