screengen

package module
v0.0.0-...-fc40121 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: GPL-3.0 Imports: 6 Imported by: 0

README

screengen License GoDoc

A library for generating screenshots from video files.

Installation

go get github.com/opennota/screengen

Documentation

Overview

Screengen is a package for generating screenshots from video files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Width              int     // Width of the video
	Height             int     // Height of the video
	Duration           int64   // Duration of the video in milliseconds
	VideoCodec         string  // Name of the video codec
	VideoCodecLongName string  // Readable/long name of the video Codec
	FPS                float64 // Frames Per Second

	AudioCodec         string // Name of the audio codec
	AudioCodecLongName string // readable/long name of the audio codec

	Bitrate int
	// contains filtered or unexported fields
}

Generator is used to generate screenshots from a video file.

func NewGenerator

func NewGenerator(fn string) (_ *Generator, err error)

NewGenerator returns new generator of screenshots for the video file fn.

func (*Generator) Close

func (g *Generator) Close() error

Close closes the internal ffmpeg context.

func (*Generator) Image

func (g *Generator) Image(ts int64) (image.Image, error)

Image returns a screenshot at the ts milliseconds.

Jump to

Keyboard shortcuts

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