progress

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

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

func (Progress) Bitrate

func (p Progress) Bitrate() float64

func (Progress) Drop

func (p Progress) Drop() int64

func (Progress) Dup

func (p Progress) Dup() int64

func (Progress) Duration

func (p Progress) Duration() time.Duration

func (Progress) Fps

func (p Progress) Fps() float64

func (Progress) FramesProcessed

func (p Progress) FramesProcessed() int64

func (Progress) Size

func (p Progress) Size() int64

func (Progress) Speed

func (p Progress) Speed() float64

type Reader

type Reader interface {
	// Read reads from r until EOF or an error occurs and writes to progress channel.
	Read(ctx context.Context, r io.Reader, progress chan<- Progress) error
}

Reader sets the interface for reading progress from ffmpeg.

func NewReader

func NewReader() Reader

Jump to

Keyboard shortcuts

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