Package ws.schild.jave.utils
Class Utils
java.lang.Object
ws.schild.jave.utils.Utils
- Author:
- a.schild
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildTimeDuration(long milis) * https://www.ffmpeg.org/ffmpeg-utils.html#time-duration-syntaxstatic StringescapeArgument(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
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
buildTimeDuration
* https://www.ffmpeg.org/ffmpeg-utils.html#time-duration-syntaxBuild 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
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
-