Skip to content

Instantly share code, notes, and snippets.

View slhck's full-sized avatar

Werner Robitza slhck

View GitHub Profile
@slhck
slhck / black_split.sh
Last active August 1, 2022 18:29 — forked from davidwebca/gist:e26186b8f4c6795b19c043fffb6f9861
Detect black scenes and split with ffmpeg remux
#!/usr/bin/env bash
# Splits video to separate scenes files when full black frames are found in the video
#
# Author: Werner Robitza
#
# Forked from: https://gist.github.com/davidwebca/e26186b8f4c6795b19c043fffb6f9861
# Inspired by https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e
# Who got inspired by https://stackoverflow.com/a/38205105