Skip to content

Instantly share code, notes, and snippets.

@kannans
Last active September 27, 2017 05:42
Show Gist options
  • Save kannans/cdcd7e4dd910d55173df5a1fc4caa19e to your computer and use it in GitHub Desktop.
Save kannans/cdcd7e4dd910d55173df5a1fc4caa19e to your computer and use it in GitHub Desktop.
convert large files in to pieces and merge it back to original using command line approach
# Split the laracroft movie file into 100MB of each.
# This is Mac command. Just remove prefix "g" from "gsplit" will work with linux.
system "gsplit --bytes=100m lara.mp4 lar_vide_"
# Output: lar_vide_aa .. lar_vide_af
# merge it back to original file
system "cat lar_vide_* > original_lara_yourback.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment