Last active
November 14, 2022 17:57
-
-
Save uglygus/6bed428614011d8ac3cb5b609bb1ddfc to your computer and use it in GitHub Desktop.
losslessly splits a video file
This file contains 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
function ffsplit() { | |
# bash function to losslessly split | |
# a video file into 10min segments (600 seconds) | |
for item in "$@" | |
do | |
ffmpeg -i "$item" -c copy -map 0 -segment_time 600 -f segment -reset_timestamps 1 "$item"_seg%02d.mov | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment