vidinfo

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(conf *config.Config, p, hash string, duration int) error

func InfoPath

func InfoPath(conf *config.Config, hash string) string

func IsVideo

func IsVideo(filename string) bool

func ThumbnailPath

func ThumbnailPath(conf *config.Config, hash string) string

func WebmPath

func WebmPath(conf *config.Config, hash string) string

Types

type Video

type Video struct {
	Width    int    `json:"width,omitempty" msgpack:"width,omitempty"`
	Height   int    `json:"height,omitempty" msgpack:"height,omitempty"`
	Codec    string `json:"codec,omitempty" msgpack:"codec,omitempty"`
	Duration int    `json:"duration,omitempty" msgpack:"duration,omitempty"`
}

func Parse

func Parse(p string) (*Video, error)

Parse parses/probes a video file and returns the metadata (ffprobe required)

Jump to

Keyboard shortcuts

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