gifeo

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package gifeo can be used to create gif videos, from a premade set of images

ffmpeg can be used to create that set: `ffmpeg -i <input video> frames/frame_%05d.jpg`

Index

Constants

This section is empty.

Variables

View Source
var Verbosity = 1

Verbosity can be used to controll the cli output of the program 0 -> nothing 1 -> progress bar

Functions

func EncodeGIF added in v0.9.4

func EncodeGIF(frames []*image.Paletted, outputFile string, delay int)

EncodeGIF encodes a slice of image.Paletted images with a given palette and saves it into the outputFile path.

Types

type Giffer

type Giffer struct {
	// Scale is the scaledown factor used in creating
	// the pixelated dither effect, on a per-frame basis
	Scale int
	// K is the amount of colors to be used in the palette
	K int
	// Palette can be set by the user, if left at default nil,
	// gifeo will create the palette from the first frame
	Palette color.Palette
	// contains filtered or unexported fields
}

Giffer is a struct that contains setup information and is used to create gif videos

func (*Giffer) CreateVideo

func (gf *Giffer) CreateVideo(inputDir, outputFile string)

CreateVideo is used to create the gif video The frames in the inputDir directory need to be of format: frame_ddddd.jpg. This can be achieved with ffmpeg by specifying as an output: frame_%05d.jpg That does mean that the maximum GIF length is 6min40s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL