-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (22 loc) · 1.16 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ffzoompan.sh v20230303
Takes an image or a video and creates a video with a zoom effect into the center of the picture.
REQUIREMENTS
ffmpeg, file, bc
USAGE
ffzoompan.sh -i INPUT_FILE [-o OUTPUT_FILE -t DURATION -r FRAMERATE -q CRF -z MAX_ZOOM -s SIZE -a FF_OPTS]
OPTIONS AND ARGUMENTS
INPUT_FILE path to input file
OUTPUT_FILE path to output file [default: /tmp/ffzoompan-out.mp4]
DURATION duration of the output video (in seconds) [default: 20]
FRAMERATE framerate of the output video (fps) [default: 24]
CRF quality of the output video (constant rate factor) [default: 12]
MAX_ZOOM zoom value at the end of output video (eg. 2 => x2) [default: 2]
SIZE size of output video (WIDTHxHEIGHT) [default: 1080x1920]
FF_OPTS other ffmpeg options to pass to the command
EXAMPLE
$ ffzoompan.sh -i myvid.avi -o finalvid.mp4 -q 15 -t 5 -z 1.5 -r 30 -s 1974x2554
$ ffzoompan.sh -i pic.jpg -o newvid.mp4 -q 15 -t 5 -z 1.5 -r 30 -s 1974x2554 -a "-pix_fmt yuv420p"
AUTHOR
Written by Sylvain Saubier (<http://sylsau.com>)
REPORTING BUGS
Mail at: <[email protected]>