Skip to content

Chipdelmal/ffmpegTLapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffmpegTLapse

These scripts generate timelapse videos from GoPro Session 5 photos. Please have a look at my blogpost for more information and click on the following image for an example of a roadtrip timelapse compiled with this code!

Instructions

This script requires ffmpeg installed in your system, so please follow their installation instructions before using the code.

By default, the script will go to the ~/Pictures/GoPro directory to look for the folder name provided with the -f tag. For example, given the following path structure:

~
    Pictures
        GoPro
            DCIM
                144GOPRO
                    G0014667.JPG
                    G0014668.JPG
                    ...
                    G0014987.JPG
                145GOPRO
                146GOPRO
                ...
                165GOPRO

we could run the script as follows:

bash main.sh -f "DCIM"

and it would move all our nested images to the DCIM folder and export our MP4 timelapse video in ~/Pictures/GoPro/DCIM/DCIM.mp4. Which would be equivalent to running:

bash main.sh -f "DCIM" -p "~/Pictures/GoPro"

Different paths can be provided with this -p flag, and additional flags for the script are:

[-f] Foldername: Base name of the folder in which the ___GOPRO folders containing the images are stored (REQUIRED)
[-p] Path: Path in which our base folder is located (default: ~/Pictures/GoPro)
[-y] Overwrite: Overwrite existing files (off by default)
[-u] Upside-down: Rotate 180 degrees and flip the video (off by default)
[-v] Verbose: Print ffmpeg processing messages ('panic', 'warning', default: 'error')
[-r] Framerate: Framerate for the timelapse video (default: 30)
[-w] Angle: If provided, uses 1920x1080 resolution for wide angle, instead of 1440x1080 (off by default)
[-h] Help: Print flags help message.
[-d] Debug: Dev flag to print provided args and skip processing.

Sources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages