summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-07-19 19:43:37 +0530
committerryukamish <[email protected]>2026-07-19 19:43:37 +0530
commitb15a103ad7792f787b67018d4bbf3c68851c56de (patch)
tree7ce858f24264bcb69d392b4045171608a2524d0a /.zshrc
parent9944bc8ae271114dff622fffc3edf6aa3090c396 (diff)
better syntax for cutting videos
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index ee6768a..d5703e5 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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
}