#!/bin/sh
INPUT=$1
START=$2

[ -f  "$INPUT" ] || ( echo "Usage: command filename delay"; exit 2 )

dir=$(dirname "$INPUT")
filename=$(basename "$INPUT")
extension="${filename##*.}"
filename="${filename%.*}"
OUTPUT="$dir/${filename}_cut${START}.$extension"


ffmpeg -ss $START -i "$INPUT" -async 1 -c copy "$OUTPUT"

vlc "$OUTPUT"

#!/bin/sh
INPUT=$1
START=$2

[ -f  "$INPUT" ] || ( echo "Usage: command filename delay"; exit 2 )

dir=$(dirname "$INPUT")
filename=$(basename "$INPUT")
extension="${filename##*.}"
filename="${filename%.*}"
OUTPUT="$dir/${filename}_cut${START}.$extension"


# echo -ss $START -i "$INPUT" -async 1 -c copy "$OUTPUT"
# ffmpeg -ss $START -i "$INPUT" -async 1 -c copy "$OUTPUT"

#echo -ss $START -i "$INPUT" -async 1 -c copy "$OUTPUT"
ffmpeg -ss $START -i "$INPUT" -async 1 "$OUTPUT"

vlc "$OUTPUT"

Remove -c copy to recode the movei
Remove -c copy to recode the movei
