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
#!/bin/bash | |
# set -Eeuo pipefail | |
# Splits video to separate scenes files | |
# Source: https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e | |
# Inspired by https://stackoverflow.com/a/38205105 | |
# The "-c:v h264_videotoolbox \" argument makes it work faster on Apple Silicon | |
# computers. | |
# ❗The bitrate argument is overriden in this version, we look at the original bitrate. |