Skip to content

Instantly share code, notes, and snippets.

@vitalfadeev
Created September 23, 2021 04:39
Show Gist options
  • Select an option

  • Save vitalfadeev/26fc6b48587b6e8d12509efc47ed65ba to your computer and use it in GitHub Desktop.

Select an option

Save vitalfadeev/26fc6b48587b6e8d12509efc47ed65ba to your computer and use it in GitHub Desktop.
#!/bin/bash
# Remove start into from video.
# Remove end titres from video.
[ -e splitted ] || mkdir trimed
for f in *.mp4
do
echo $f
ffmpeg \
-v quiet \
-y \
-i "$f" \
-vcodec copy \
-acodec copy \
-ss 00:01:55 \
-t 00:42:05 \
-sn \
"trimed/$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment