Skip to content

ryanbooker/framer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Framer

Pick the best frame from every second of video, for an extremely naive definition of best. There are two filtering options available. By default the script uses edge detection, however when using compressed image types, you may want to use image size as a fast a dirty approiximation for clarity.

$ ./framer.sh
Usage: framer.sh [-f <edges|size>] [-o <output_path>] [-t <jp[e]g|p[i]ng|tif[f]>] -i <input_file>

$ ./framer.sh -i input.mov # generate ping frames using image edges
$ ./framer.sh -f edges -t tif -i input.mov # generate tiff frames using image edges
$ ./framer.sh -f size -t jpg -i input.mov # generate jpeg frames using image size
$ ./framer.sh -f size -t png -i input.mov # generate ping frames using image size

Runtime Dependencies

  1. *nixish environment
  2. ffmpeg
  3. imagemagick
  4. GNU Parallel

Installation

Using the Homebrew package manager

  1. Open Terminal.app on macOS, or equivalent on any other *nixish platform

  2. Install Homebrew by following the instructions @ https://brew.sh/

  3. In the terminal type:

    $ brew install ffmpeg imagemagick parallel git
    
  4. Download framer from https://github.com/ryanbooker/Framer/archive/master.zip, and unzip it in your home folder (or wherever you want to install it)

    Or in the terminal type:

    git clone https://github.com/ryanbooker/Framer.git ~/framer
    
  5. Run framer as described in the first section, above. Enjoy. :)

Using the Nix package manager

  1. Open Terminal.app on macOS, or equivalent on any other *nixish platform

  2. Install Nix by following the instructions @ https://nixos.org/nix/

  3. Download framer from https://github.com/ryanbooker/Framer/archive/master.zip, and unzip it in your home folder (or wherever you want to install it)

    Or in the terminal type:

    git clone https://github.com/ryanbooker/Framer.git ~/framer
    
  4. Run framer as described in the first section, above. Either via the nix-shell command

    $ nix-shell --run "./framer.sh -i input.mov"
    

    Or inside an actual nix-shell

    $ nix-shell
    [nix-shell]$ ./framer.sh -i input.mov
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published