Created
September 30, 2019 12:04
-
-
Save nicolapiccinelli/717e9e9cf8f4214bebc645fe1fc1f0e1 to your computer and use it in GitHub Desktop.
Split video into chunks using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $1 the filename to be chucked | |
# $2 should contains how frequently the video must be chuncked (00:00:00, hh/mm/ss) | |
ffmpeg -i $1 -c copy -map 0 -segment_time $2 -reset_timestamps 1 -f segment output%03d.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment