Skip to content

Creates a video with a zoom effect into the center of the picture (see examples).

Notifications You must be signed in to change notification settings

sylsau/ffzoompan.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]>