Class VideoToolsServiceImpl

    • Method Detail

      • extractClosedCaptions

        public Blob extractClosedCaptions​(Blob video,
                                          String outputFormat,
                                          String startAt,
                                          String endAt)
        Description copied from interface: VideoToolsService
        Extracts the closed captions from a video blob.
        Specified by:
        extractClosedCaptions in interface VideoToolsService
        Parameters:
        video - the input blob
        outputFormat - 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
      • slice

        public List<Blobslice​(Blob video,
                                String startAt,
                                String duration,
                                boolean encode)
        Description copied from interface: VideoToolsService
        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.
        Specified by:
        slice in interface VideoToolsService
        Parameters:
        video - the input blob
        startAt - the start time in "xx:xx" format
        duration - the duration of the sliced blob in seconds
        encode - option to re-encode the ouptut video blob
        Returns:
        video blobs generated by the slicer
      • watermark

        public Blob watermark​(Blob video,
                              Blob picture,
                              String x,
                              String y)
        Description copied from interface: VideoToolsService
        Add a watermark to a video blob.
        Specified by:
        watermark in interface VideoToolsService
        Parameters:
        video - the input blob
        picture - the picture blob to be used as the watermark
        x - the x offset starting from the left
        y - the y offset starting from the top
        Returns:
        a video blob with a watermark at the position specified