Created
May 24, 2021 15:57
-
-
Save aafaqin/d8eadc2f023fb881560b2f773122c228 to your computer and use it in GitHub Desktop.
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
#starting from 11 to 33 the array contains the timestamps of the video and each sub part will be 4 seconds after that. | |
array=(00:07:43 00:07:52 00:08:07 00:08:25 00:08:38 00:09:19 00:09:27 00:09:40 00:10:06 00:10:23 00:10:32 00:10:53 00:11:03 00:11:17 00:11:41 00:12:01 00:12:15 00:13:01 00:13:15 00:13:32 00:13:50) | |
counter=0 | |
for i in `seq -w 11 33` | |
do | |
ffmpeg -i VID_20210218_172619.mp4 -ss "${array[counter]}" -t 00:00:04 -c copy "cut""$i.mp4" | |
echo ${array[counter]} >> dump.txt | |
((counter++)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment