batch

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MT_FLV string
View Source
var MT_MP4 string
View Source
var MT_WMV string

Functions

func EventsSubcollections

func EventsSubcollections()

func ImportFFprobeMetadata added in v0.9.4

func ImportFFprobeMetadata()

func OrganizeKiteiMakor

func OrganizeKiteiMakor()

func PrepareFilesForConvert

func PrepareFilesForConvert()

func QueueWork

func QueueWork()

func ReadLogs added in v0.9.4

func ReadLogs()

func ReadRequestsLog

func ReadRequestsLog()

func RenameUnits

func RenameUnits()

Types

type FFPformat added in v0.9.4

type FFPformat struct {
	Filename       string                 `json:"filename"`
	NbStreams      int                    `json:"nb_streams"`
	NbPrograms     int                    `json:"nb_programs"`
	FormatName     string                 `json:"format_name"`
	FormatLongName string                 `json:"format_long_name"`
	StartTime      string                 `json:"start_time"`
	Duration       string                 `json:"duration"`
	Size           string                 `json:"size"`
	BitRate        string                 `json:"bit_rate"`
	ProbeScore     int                    `json:"probe_score"`
	Tags           map[string]interface{} `json:"tags"`
}

type FFPstream added in v0.9.4

type FFPstream struct {
	Index          int           `json:"index"`
	CodecName      string        `json:"codec_name"`
	CodecLongName  string        `json:"codec_long_name"`
	CodecType      string        `json:"codec_type"`
	CodecTimeBase  string        `json:"codec_time_base"`
	CodecTagString string        `json:"codec_tag_string"`
	CodecTag       string        `json:"codec_tag"`
	SampleFmt      string        `json:"sample_fmt"`
	SampleRate     string        `json:"sample_rate"`
	Channels       int           `json:"channels"`
	BitsPerSample  int           `json:"bits_per_sample"`
	RFrameRate     string        `json:"r_frame_rate"`
	AvgFrameRate   string        `json:"avg_frame_rate"`
	TimeBase       string        `json:"time_base"`
	StartPts       int           `json:"start_pts"`
	StartTime      string        `json:"start_time"`
	DurationTs     int           `json:"duration_ts"`
	Duration       string        `json:"duration"`
	BitRate        string        `json:"bit_rate"`
	Tags           FFPstreamTags `json:"tags"`

	Profile            string `json:"profile"`
	Width              int    `json:"width"`
	Height             int    `json:"height"`
	CodedWidth         int    `json:"coded_width"`
	CodedHeight        int    `json:"coded_height"`
	HasBFrames         int    `json:"has_b_frames"`
	SampleAspectRatio  string `json:"sample_aspect_ratio"`
	DisplayAspectRatio string `json:"display_aspect_ratio"`
	PixFmt             string `json:"pix_fmt"`
	Level              int    `json:"level"`
	ChromaLocation     string `json:"chroma_location"`
	Refs               int    `json:"refs"`
}

type FFPstreamTags added in v0.9.4

type FFPstreamTags struct {
	Language string `json:"language"`
}

type FFprobeMetadata added in v0.9.4

type FFprobeMetadata struct {
	Streams []FFPstream `json:"streams"`
	Format  FFPformat   `json:"format"`
}

type FilterFunc

type FilterFunc func(r *Request) bool

type Meta

type Meta struct {
	Type      int
	ID        string
	Timestamp time.Time
}

type Request

type Request struct {
	Meta     *Meta
	Payload  []string
	Response []string
	// contains filtered or unexported fields
}

type TranscodeLog added in v0.9.4

type TranscodeLog struct {
	Size      int64
	TDuration time.Duration
	Text      string
}

func (*TranscodeLog) Ratio added in v0.9.4

func (x *TranscodeLog) Ratio() float64

type TranscodeRequest

type TranscodeRequest struct {
	Sha1   string `json:"sha1"`
	Format string `json:"format"`
}

type UnitNames

type UnitNames struct {
	UnitID int64
	Names  map[string]string
}

Jump to

Keyboard shortcuts

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