Skip to content

Instantly share code, notes, and snippets.

@tizisdeepan
Last active August 22, 2019 10:42
Show Gist options
  • Save tizisdeepan/f36e9a302e98630bd10eb798923e20ad to your computer and use it in GitHub Desktop.
Save tizisdeepan/f36e9a302e98630bd10eb798923e20ad to your computer and use it in GitHub Desktop.
val command = arrayOf("-y", "-i", inputPath, "-ss", startPosition, "-to", endPosition, "-c", "copy", outputPath)
//inputPath - Path of the source video
//startPosition - Start position in "%d:%02d:%02d" format
//endPosition - End position in "%02d:%02d" format
//copy - Copies the result to outputPath
//outputPath - Path of the destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment