Skip to content

Instantly share code, notes, and snippets.

@mushtaq
Created November 6, 2016 11:20
Show Gist options
  • Save mushtaq/c5d6b846eff509789e4f062922c86851 to your computer and use it in GitHub Desktop.
Save mushtaq/c5d6b846eff509789e4f062922c86851 to your computer and use it in GitHub Desktop.
#!/bin/bash
file=$1
ffmpeg -ss 00:00:00 -t 02:00:00 -i $file -c copy "${file%.*}_part1.mp4"
ffmpeg -ss 02:00:00 -t 04:00:00 -i $file -c copy "${file%.*}_part2.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment