aboutsummaryrefslogtreecommitdiff
path: root/.scripts/excerpt_copy
blob: c183ea746c74ab298ca0fa6c72f867e01572a0cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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