1
Fork 0

Add descriptions to functions.

This commit is contained in:
Bauke 2023-01-20 11:09:01 +01:00
parent f8c980ee57
commit ea44a161a4
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 8 additions and 0 deletions

View File

@ -1,11 +1,17 @@
# Copies a section from a video using ffmpeg.
# extract-clip <input file> <start timestamp> <end timestamp> <output file>
extract-clip () {
ffmpeg -i "$1" -ss "$2" -to "$3" -c copy "$4"
}
# Creates a new signed, annotated git tag.
# gtag <version number>
gtag () {
git tag -s -a "$1" -m "Version $1"
}
# Tries to find a feed URL for any given URLs.
# get-feed-url <url ...>
get-feed-url () {
for input_url in "$@"; do
html=$(curl -fsLS "$input_url")
@ -15,6 +21,8 @@ get-feed-url () {
done
}
# Converts any given files to 128K Opus using ffmpeg.
# to-opus <file ...>
to-opus () {
for input_file in "$@"; do
output_file="${input_file%.*}.opus"