fileutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) (VideoInfo, 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) ([]VideoStream, error)

Jump to

Keyboard shortcuts

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