]>
Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/bash/ffmpeg-split.sh
5 ffprobe
-print_format csv
-show_chapters "$input" |
6 cut
-d ',' -f '5,7,8' |
7 while IFS
=, read -r start end chapter
; do
10 -ss "$start" -to "$end" \
16 "$(printf %s "${input%.*}.$chapter.${input##*.}" | tr / _ | sed -e "s/\.\./_/g")"