fileutils

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeExtension

func ChangeExtension(original, ext string) string

func ChangeLocation

func ChangeLocation(original, targetDir, ext string) string

func FileExists

func FileExists(fileName string) bool

func GetRelative

func GetRelative(fileName string) string

Types

type VideoFormat

type VideoFormat struct {
	FileName       string            `json:"filename"`
	BitRate        string            `json:"bit_rate"`
	FormatLongName string            `json:"format_long_name"`
	FormatName     string            `json:"format_name"`
	ProbeScore     int               `json:"probe_score"`
	Programs       int               `json:"nb_programs"`
	Size           string            `json:"size"`
	Duration       string            `json:"duration"`
	StartTime      string            `json:"start_time"`
	Streams        int               `json:"nb_streams"`
	Tags           map[string]string `json:"tags"`
}

type VideoInfo

type VideoInfo struct {
	Streams []VideoStream `json:"streams"`
	Format  VideoFormat   `json:"format"`
}

func GetVideoInfo

func GetVideoInfo(source string) (info VideoInfo, err error)

type VideoStream

type VideoStream struct {
	CodecName      string            `json:"codec_name"`
	CodecType      string            `json:"codec_type"`
	CodecLongName  string            `json:"codec_long_name"`
	CodecTag       string            `json:"codec_tag"`
	CodecTagString string            `json:"codec_tag_string"`
	Index          int               `json:"index"`
	Profile        string            `json:"profile"`
	Tags           map[string]string `json:"tags"`
}

func GetAudioStreams

func GetAudioStreams(source string) (list []VideoStream, err error)

Jump to

Keyboard shortcuts

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