diff options
| author | ryukamish <[email protected]> | 2026-07-19 19:43:37 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-07-19 19:43:37 +0530 |
| commit | b15a103ad7792f787b67018d4bbf3c68851c56de (patch) | |
| tree | 7ce858f24264bcb69d392b4045171608a2524d0a | |
| parent | 9944bc8ae271114dff622fffc3edf6aa3090c396 (diff) | |
better syntax for cutting videos
| -rw-r--r-- | .zshrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -80,20 +80,20 @@ function video-to-gif() { } function cut() { - start_time="$1" - end_time="$2" - input_file="$3" + start_time="$2" + end_time="$3" + input_file="$1" if [[ "$end_time" == "" ]]; then ffmpeg -ss "$start_time" \ -i "$input_file" \ -c copy "$(date +"%Y%m%d_%H%M ")$input_file" \ - || printf "Usage: %s <start> <end> <input file>\n" "$0" + || printf "Usage: %s <input file> <start> <end>\n" "$0" elif [[ "$end_time" != "" ]]; then ffmpeg -ss "$start_time" -to "$end_time" \ -i "$input_file" \ -c copy "$(date +"%Y%m%d_%H%M ")$input_file" \ - || printf "Usage: %s <start> <end> <input file>\n" "$0" + || printf "Usage: %s <input file> <start> <end>\n" "$0" fi } |
