dotfiles/dot_local/bin/executable_ffmpeg.lossy_trim

4 lines
125 B
Bash

#!/bin/sh
output_file="$(echo "$1" | sed 's,\(.*\)\.\(.*\)$,\1.sermon.\2,')"
ffmpeg -i "$1" -ss "$2" -to "$3" "$output_file"