Class Utils


  • public class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String buildTimeDuration​(long milis)
      * https://www.ffmpeg.org/ffmpeg-utils.html#time-duration-syntax
      static java.lang.String escapeArgument​(java.lang.String argumentIn)
      Escape all special characters []=;,' to be safe to use in command line See https://ffmpeg.org/ffmpeg-utils.html#toc-Quoting-and-escaping
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • buildTimeDuration

        public static java.lang.String buildTimeDuration​(long milis)
        * https://www.ffmpeg.org/ffmpeg-utils.html#time-duration-syntax

        Build a time/duration string based on the milisenconds passed in milis [-][HH:]MM:SS[.m...] or [-]S+[.m...]

        Parameters:
        milis - number of miliseconds, can be negative too
        Returns:
        String to be used for specifying positions in the video/audio file
      • escapeArgument

        public static java.lang.String escapeArgument​(java.lang.String argumentIn)
        Escape all special characters []=;,' to be safe to use in command line See https://ffmpeg.org/ffmpeg-utils.html#toc-Quoting-and-escaping
        Parameters:
        argumentIn - input argument to escape
        Returns:
        escaped string