clip

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClipOutside is returned when the clip operation is outside the video
	ErrClipOutside = errors.New("clip zone is outside video")
	// ErrInvalidDuration is returned when the provided duration is invalid
	ErrInvalidDuration = errors.New("invalid duration")
)

Functions

This section is empty.

Types

type Clip

type Clip interface {
	io.WriterTo
	io.Closer
	Size() uint64
}

Clip is interface for the clip filter

func New

func New(m *mp4.MP4, begin time.Duration, rr mp4.RangeReader) (Clip, error)

New returns a filter that extracts a clip between begin and begin + duration (in seconds, starting at 0) Il will try to include a key frame at the beginning, and keeps the same chunks as the origin media

type ErrorChunkTrunc

type ErrorChunkTrunc struct {
	// contains filtered or unexported fields
}

ErrorChunkTrunc is custom error type for when a chunk is truncated

func (*ErrorChunkTrunc) Error

func (e *ErrorChunkTrunc) Error() string

Jump to

Keyboard shortcuts

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