Skip to content

Instantly share code, notes, and snippets.

@eminorhan
Created June 4, 2023 22:08
Show Gist options
  • Save eminorhan/c32b222d916f7660515f8647151323d6 to your computer and use it in GitHub Desktop.
Save eminorhan/c32b222d916f7660515f8647151323d6 to your computer and use it in GitHub Desktop.
crop bottom 90 px, turn upside down, split it into 1 min clips
module load ffmpeg/4.2.4
for file in S/*.mp4; do
ffmpeg -i "$file" -vf "crop=in_w:in_h-90,rotate=PI" -codec:v libx264 -codec:a copy -f segment -segment_time 60 -reset_timestamps 1 -map 0 "minute/${file%.mp4}_segment%d.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment