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