mediasnacks 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/gif.sh DELETED
@@ -1,44 +0,0 @@
1
- #!/bin/sh
2
-
3
- FPS=10
4
- WIDTH=600
5
-
6
- help() {
7
- /bin/cat << EOF
8
- SYNOPSIS
9
- mediasnacks gif [--fps <number>] [-w | --width <pixels>] <file>
10
-
11
- DESCRIPTION
12
- Converts video to GIF
13
-
14
- OPTIONS
15
- --fps Default: $FPS
16
- -w,--width Default: $WIDTH
17
- EOF
18
- exit "${1:-0}"
19
- }
20
-
21
- while [ $# -gt 0 ]; do
22
- case "$1" in
23
- --fps)
24
- FPS="$2";
25
- shift 2 ;;
26
-
27
- --width|-w)
28
- WIDTH="$2"
29
- shift 2 ;;
30
-
31
- --help|-h)
32
- help ;;
33
-
34
- *)
35
- file="$1"
36
- shift ;;
37
- esac
38
- done
39
-
40
- [ -z "$file" ] && help 1
41
-
42
- ffmpeg -v error -i "$file" \
43
- -vf "fps=${FPS},scale=${WIDTH}:-1" \
44
- "${file%.*}.gif"