1 2 3 4 5 6 7 8
#!/bin/sh input_file=$1 output_file=$2 start_time=$3 end_time=$4 exec ffmpeg -ss "$start_time" -i "$input_file" -to "$end_time" -c copy -copyts "$output_file"