encode

package
v0.0.0-...-3ce85d1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(conf *config.Config, fs afero.Fs, ts *mpegts.MpegTS) error

Encode Encode

Types

type EncodeFilePath

type EncodeFilePath struct {
	Path    string
	Storage string
}

EncodeFilePath EncodeFilePath

func NewEncodeFilePath

func NewEncodeFilePath(statfs Statfs, path string, storages []string) (*EncodeFilePath, error)

NewEncodeFilePath NewEncodeFilePath

func (EncodeFilePath) Base

func (item EncodeFilePath) Base() string

Base Base

func (EncodeFilePath) Copy

func (item EncodeFilePath) Copy(fs afero.Fs) error

Copy Copy

func (EncodeFilePath) Date

func (item EncodeFilePath) Date() int

Date Date

func (EncodeFilePath) Dest

func (item EncodeFilePath) Dest() string

Dest Dest

func (EncodeFilePath) Dir

func (item EncodeFilePath) Dir() string

Dir Dir

func (EncodeFilePath) Src

func (item EncodeFilePath) Src() string

Src Src

func (EncodeFilePath) ToVIndexItem

func (item EncodeFilePath) ToVIndexItem() (*vindexdata.VIndexItem, error)

ToVIndexItem ToVIndexItem

type EncodeInfo

type EncodeInfo struct {
	RawPath           string
	MetadataFileNames []string
	StoragePaths      []string
	Storage           string
}

EncodeInfo EncodeInfo

func NewEncodeInfo

func NewEncodeInfo(conf *config.Config, fs afero.Fs, tsPath string) (*EncodeInfo, error)

NewEncodeInfo NewEncodeInfo

func (EncodeInfo) Base

func (info EncodeInfo) Base() string

Base Base

func (EncodeInfo) Dir

func (info EncodeInfo) Dir() string

Dir Dir

func (EncodeInfo) FetchMeta

func (info EncodeInfo) FetchMeta(fs afero.Fs) ([]string, error)

FetchMeta FetchMeta

func (EncodeInfo) MP4Name

func (info EncodeInfo) MP4Name() string

MP4Name MP4Name

func (EncodeInfo) Move

func (info EncodeInfo) Move(statfs Statfs, fs afero.Fs) error

Move Move

func (EncodeInfo) MoveFiles

func (info EncodeInfo) MoveFiles() []string

MoveFiles MoveFiles

func (EncodeInfo) Prefix

func (info EncodeInfo) Prefix() string

Prefix Prefix

func (EncodeInfo) TSDest

func (info EncodeInfo) TSDest() string

TSDest TSDest

type Statfs

type Statfs func(path string, stat *syscall.Statfs_t) error

Statfs syscall.Statfs

Jump to

Keyboard shortcuts

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