diff options
author | Marvin Borner | 2020-06-21 19:29:17 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-21 19:29:17 +0200 |
commit | e47bee3cec69e6f378f92b21bfd2e6f096ece54d (patch) | |
tree | 181243f9d71929247061d9a5573ed61be6015328 /.scripts/excerpt_copy | |
parent | bb728ed8169f41eaabe84f4d60d269a7fd118aa7 (diff) |
Aaah, I see
Diffstat (limited to '.scripts/excerpt_copy')
-rwxr-xr-x | .scripts/excerpt_copy | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.scripts/excerpt_copy b/.scripts/excerpt_copy new file mode 100755 index 0000000..c183ea7 --- /dev/null +++ b/.scripts/excerpt_copy @@ -0,0 +1,14 @@ +#!/bin/bash + +BEGIN=$1 +DURATION=$2 +SRC="$3" +DST="$4" + + +ffmpeg -y -nostdin -ss $BEGIN -i "$SRC" -t $DURATION -codec:v copy -codec:a copy -codec:d copy \ + "$DST" + + +#ffmpeg -ss $BEGIN -i $SRC -to $END -strict -2 ${DST}.mp4 + |