Skip to content

Instantly share code, notes, and snippets.

View nielsbom's full-sized avatar
🌳
codegrower.net

Niels Bom nielsbom

🌳
codegrower.net
View GitHub Profile
@nielsbom
nielsbom / split-to-scenes.sh
Last active January 15, 2024 01:50 — forked from achesco/split-to-scenes.sh
Detect and split video to scenes with ffmpeg
#!/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.