models

package
v0.0.0-...-bc9d3ba Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disposition

type Disposition struct {
	Default         int `json:"default"`
	Dub             int `json:"dub"`
	Original        int `json:"original"`
	Comment         int `json:"comment"`
	Lyrics          int `json:"lyrics"`
	Karaoke         int `json:"karaoke"`
	Forced          int `json:"forced"`
	HearingImpaired int `json:"hearing_impaired"`
	VisualImpaired  int `json:"visual_impaired"`
	CleanEffects    int `json:"clean_effects"`
}

type Ffmpeg

type Ffmpeg struct {
	FfmpegBinPath  string
	FfprobeBinPath string
}

type Format

type Format struct {
	Filename       string
	NbStreams      int    `json:"nb_streams"`
	NbPrograms     int    `json:"nb_programs"`
	FormatName     string `json:"format_name"`
	FormatLongName string `json:"format_long_name"`
	Duration       string `json:"duration"`
	Size           string `json:"size"`
	BitRate        string `json:"bit_rate"`
	ProbeScore     int    `json:"probe_score"`
	Tags           Tags   `json:"tags"`
}

type Mediafile

type Mediafile struct {
	// contains filtered or unexported fields
}

func (*Mediafile) Aspect

func (m *Mediafile) Aspect() string

func (*Mediafile) AudioBitrate

func (m *Mediafile) AudioBitrate() string

func (*Mediafile) AudioChannels

func (m *Mediafile) AudioChannels() int

func (*Mediafile) AudioCodec

func (m *Mediafile) AudioCodec() string

func (*Mediafile) AudioFilter

func (m *Mediafile) AudioFilter() string

func (*Mediafile) AudioProfile

func (m *Mediafile) AudioProfile() string

func (*Mediafile) AudioRate

func (m *Mediafile) AudioRate() int

func (*Mediafile) BufferSize

func (m *Mediafile) BufferSize() int

func (*Mediafile) CopyTs

func (m *Mediafile) CopyTs() bool

func (*Mediafile) Duration

func (m *Mediafile) Duration() string

func (*Mediafile) DurationInput

func (m *Mediafile) DurationInput() string

func (*Mediafile) Filter deprecated

func (m *Mediafile) Filter() string

Deprecated: Use VideoFilter instead.

func (*Mediafile) FrameRate

func (m *Mediafile) FrameRate() int

func (*Mediafile) HideBanner

func (m *Mediafile) HideBanner() bool

func (*Mediafile) HlsListSize

func (m *Mediafile) HlsListSize() int

func (*Mediafile) HlsPlaylistType

func (m *Mediafile) HlsPlaylistType() string

func (*Mediafile) HlsSegmentDuration

func (m *Mediafile) HlsSegmentDuration() int

func (*Mediafile) HttpKeepAlive

func (m *Mediafile) HttpKeepAlive() bool

func (*Mediafile) HttpMethod

func (m *Mediafile) HttpMethod() string

func (*Mediafile) Input2Path

func (m *Mediafile) Input2Path() string

func (*Mediafile) InputInitialOffset

func (m *Mediafile) InputInitialOffset() string

func (*Mediafile) InputPath

func (m *Mediafile) InputPath() string

func (*Mediafile) InputPipeCommand

func (m *Mediafile) InputPipeCommand() *exec.Cmd

func (*Mediafile) KeyFrameInterval

func (m *Mediafile) KeyFrameInterval() int

func (*Mediafile) MaxKeyFrame

func (m *Mediafile) MaxKeyFrame() int

func (*Mediafile) Metadata

func (m *Mediafile) Metadata() Metadata

func (*Mediafile) MinKeyFrame

func (m *Mediafile) MinKeyFrame() int

func (*Mediafile) MuxDelay

func (m *Mediafile) MuxDelay() string

func (*Mediafile) NativeFramerateInput

func (m *Mediafile) NativeFramerateInput() bool

func (*Mediafile) ObtainAspect

func (m *Mediafile) ObtainAspect() []string

func (*Mediafile) ObtainAudioBitRate

func (m *Mediafile) ObtainAudioBitRate() []string

func (*Mediafile) ObtainAudioChannels

func (m *Mediafile) ObtainAudioChannels() []string

func (*Mediafile) ObtainAudioCodec

func (m *Mediafile) ObtainAudioCodec() []string

func (*Mediafile) ObtainAudioFilter

func (m *Mediafile) ObtainAudioFilter() []string

func (*Mediafile) ObtainAudioProfile

func (m *Mediafile) ObtainAudioProfile() []string

func (*Mediafile) ObtainAudioRate

func (m *Mediafile) ObtainAudioRate() []string

func (*Mediafile) ObtainBufferSize

func (m *Mediafile) ObtainBufferSize() []string

func (*Mediafile) ObtainCopyTs

func (m *Mediafile) ObtainCopyTs() []string

func (*Mediafile) ObtainDuration

func (m *Mediafile) ObtainDuration() []string

func (*Mediafile) ObtainDurationInput

func (m *Mediafile) ObtainDurationInput() []string

func (*Mediafile) ObtainExtraParamaters

func (m *Mediafile) ObtainExtraParamaters() []string

func (*Mediafile) ObtainFrameRate

func (m *Mediafile) ObtainFrameRate() []string

func (*Mediafile) ObtainHideBanner

func (m *Mediafile) ObtainHideBanner() []string

func (*Mediafile) ObtainHlsListSize

func (m *Mediafile) ObtainHlsListSize() []string

func (*Mediafile) ObtainHlsPlaylistType

func (m *Mediafile) ObtainHlsPlaylistType() []string

func (*Mediafile) ObtainHlsSegmentDuration

func (m *Mediafile) ObtainHlsSegmentDuration() []string

func (*Mediafile) ObtainHttpKeepAlive

func (m *Mediafile) ObtainHttpKeepAlive() []string

func (*Mediafile) ObtainHttpMethod

func (m *Mediafile) ObtainHttpMethod() []string

func (*Mediafile) ObtainInput2Path

func (m *Mediafile) ObtainInput2Path() []string

func (*Mediafile) ObtainInputInitialOffset

func (m *Mediafile) ObtainInputInitialOffset() []string

func (*Mediafile) ObtainInputPath

func (m *Mediafile) ObtainInputPath() []string

func (*Mediafile) ObtainInputPipeCommand

func (m *Mediafile) ObtainInputPipeCommand() []string

func (*Mediafile) ObtainKeyframeInterval

func (m *Mediafile) ObtainKeyframeInterval() []string

func (*Mediafile) ObtainMuxDelay

func (m *Mediafile) ObtainMuxDelay() []string

func (*Mediafile) ObtainNativeFramerateInput

func (m *Mediafile) ObtainNativeFramerateInput() []string

func (*Mediafile) ObtainOutputFormat

func (m *Mediafile) ObtainOutputFormat() []string

func (*Mediafile) ObtainOutputPath

func (m *Mediafile) ObtainOutputPath() []string

func (*Mediafile) ObtainPreset

func (m *Mediafile) ObtainPreset() []string

func (*Mediafile) ObtainQuality

func (m *Mediafile) ObtainQuality() []string

func (*Mediafile) ObtainResolution

func (m *Mediafile) ObtainResolution() []string

func (*Mediafile) ObtainRtmpLive

func (m *Mediafile) ObtainRtmpLive() []string

func (*Mediafile) ObtainSeekTime

func (m *Mediafile) ObtainSeekTime() []string

func (*Mediafile) ObtainSeekTimeInput

func (m *Mediafile) ObtainSeekTimeInput() []string

func (*Mediafile) ObtainSeekUsingTsInput

func (m *Mediafile) ObtainSeekUsingTsInput() []string

func (*Mediafile) ObtainSkipAudio

func (m *Mediafile) ObtainSkipAudio() []string

func (*Mediafile) ObtainSkipVideo

func (m *Mediafile) ObtainSkipVideo() []string

func (*Mediafile) ObtainStreamIds

func (m *Mediafile) ObtainStreamIds() []string

func (*Mediafile) ObtainStrict

func (m *Mediafile) ObtainStrict() []string

func (*Mediafile) ObtainTarget

func (m *Mediafile) ObtainTarget() []string

func (*Mediafile) ObtainThreads

func (m *Mediafile) ObtainThreads() []string

func (*Mediafile) ObtainTune

func (m *Mediafile) ObtainTune() []string

func (*Mediafile) ObtainVframes

func (m *Mediafile) ObtainVframes() []string

func (*Mediafile) ObtainVideoBitRate

func (m *Mediafile) ObtainVideoBitRate() []string

func (*Mediafile) ObtainVideoBitRateTolerance

func (m *Mediafile) ObtainVideoBitRateTolerance() []string

func (*Mediafile) ObtainVideoCodec

func (m *Mediafile) ObtainVideoCodec() []string

func (*Mediafile) ObtainVideoFilter

func (m *Mediafile) ObtainVideoFilter() []string

func (*Mediafile) ObtainVideoMaxBitRate

func (m *Mediafile) ObtainVideoMaxBitRate() []string

func (*Mediafile) ObtainVideoMinBitRate

func (m *Mediafile) ObtainVideoMinBitRate() []string

func (*Mediafile) ObtainVideoProfile

func (m *Mediafile) ObtainVideoProfile() []string

func (*Mediafile) OutputFormat

func (m *Mediafile) OutputFormat() string

func (*Mediafile) OutputPath

func (m *Mediafile) OutputPath() string

func (*Mediafile) Preset

func (m *Mediafile) Preset() string

func (*Mediafile) Quality

func (m *Mediafile) Quality() int

func (*Mediafile) Resolution

func (m *Mediafile) Resolution() string

func (*Mediafile) RtmpLive

func (m *Mediafile) RtmpLive() string

func (*Mediafile) SeekTime

func (m *Mediafile) SeekTime() string

func (*Mediafile) SeekTimeInput

func (m *Mediafile) SeekTimeInput() string

func (*Mediafile) SeekUsingTsInput

func (m *Mediafile) SeekUsingTsInput() bool

func (*Mediafile) SetAspect

func (m *Mediafile) SetAspect(v string)

func (*Mediafile) SetAudioBitRate

func (m *Mediafile) SetAudioBitRate(v string)

func (*Mediafile) SetAudioChannels

func (m *Mediafile) SetAudioChannels(v int)

func (*Mediafile) SetAudioCodec

func (m *Mediafile) SetAudioCodec(v string)

func (*Mediafile) SetAudioFilter

func (m *Mediafile) SetAudioFilter(v string)

func (*Mediafile) SetAudioProfile

func (m *Mediafile) SetAudioProfile(v string)

func (*Mediafile) SetAudioRate

func (m *Mediafile) SetAudioRate(v int)

func (*Mediafile) SetAudioVariableBitrate

func (m *Mediafile) SetAudioVariableBitrate()

func (*Mediafile) SetBufferSize

func (m *Mediafile) SetBufferSize(v int)

func (*Mediafile) SetCopyTs

func (m *Mediafile) SetCopyTs(val bool)

func (*Mediafile) SetDuration

func (m *Mediafile) SetDuration(v string)

func (*Mediafile) SetDurationInput

func (m *Mediafile) SetDurationInput(v string)

func (*Mediafile) SetExtraParamaters

func (m *Mediafile) SetExtraParamaters(v []string)

** SETTERS **

func (*Mediafile) SetFilter deprecated

func (m *Mediafile) SetFilter(v string)

Deprecated: Use SetVideoFilter instead.

func (*Mediafile) SetFrameRate

func (m *Mediafile) SetFrameRate(v int)

func (*Mediafile) SetHideBanner

func (m *Mediafile) SetHideBanner(val bool)

func (*Mediafile) SetHlsListSize

func (m *Mediafile) SetHlsListSize(val int)

func (*Mediafile) SetHlsPlaylistType

func (m *Mediafile) SetHlsPlaylistType(val string)

func (*Mediafile) SetHlsSegmentDuration

func (m *Mediafile) SetHlsSegmentDuration(val int)

func (*Mediafile) SetHttpKeepAlive

func (m *Mediafile) SetHttpKeepAlive(val bool)

func (*Mediafile) SetHttpMethod

func (m *Mediafile) SetHttpMethod(val string)

func (*Mediafile) SetInput2Path

func (m *Mediafile) SetInput2Path(val string)

func (*Mediafile) SetInputInitialOffset

func (m *Mediafile) SetInputInitialOffset(val string)

func (*Mediafile) SetInputPath

func (m *Mediafile) SetInputPath(val string)

func (*Mediafile) SetInputPipeCommand

func (m *Mediafile) SetInputPipeCommand(command *exec.Cmd)

func (*Mediafile) SetKeyframeInterval

func (m *Mediafile) SetKeyframeInterval(v int)

func (*Mediafile) SetMaxKeyFrame

func (m *Mediafile) SetMaxKeyFrame(v int)

func (*Mediafile) SetMetadata

func (m *Mediafile) SetMetadata(v Metadata)

func (*Mediafile) SetMinKeyFrame

func (m *Mediafile) SetMinKeyFrame(v int)

func (*Mediafile) SetMuxDelay

func (m *Mediafile) SetMuxDelay(val string)

func (*Mediafile) SetNativeFramerateInput

func (m *Mediafile) SetNativeFramerateInput(val bool)

func (*Mediafile) SetOutputFormat

func (m *Mediafile) SetOutputFormat(val string)

func (*Mediafile) SetOutputPath

func (m *Mediafile) SetOutputPath(val string)

func (*Mediafile) SetPreset

func (m *Mediafile) SetPreset(v string)

func (*Mediafile) SetQuality

func (m *Mediafile) SetQuality(v int)

func (*Mediafile) SetResolution

func (m *Mediafile) SetResolution(v string)

func (*Mediafile) SetRtmpLive

func (m *Mediafile) SetRtmpLive(val string)

func (*Mediafile) SetSeekTime

func (m *Mediafile) SetSeekTime(v string)

func (*Mediafile) SetSeekTimeInput

func (m *Mediafile) SetSeekTimeInput(v string)

func (*Mediafile) SetSeekUsingTsInput

func (m *Mediafile) SetSeekUsingTsInput(val bool)

func (*Mediafile) SetSkipAudio

func (m *Mediafile) SetSkipAudio(val bool)

func (*Mediafile) SetSkipVideo

func (m *Mediafile) SetSkipVideo(val bool)

func (*Mediafile) SetStreamIds

func (m *Mediafile) SetStreamIds(val map[int]string)

func (*Mediafile) SetStrict

func (m *Mediafile) SetStrict(v int)

func (*Mediafile) SetThreads

func (m *Mediafile) SetThreads(v int)

func (*Mediafile) SetTune

func (m *Mediafile) SetTune(v string)

func (*Mediafile) SetVframes

func (m *Mediafile) SetVframes(v int)

func (*Mediafile) SetVideoBitRate

func (m *Mediafile) SetVideoBitRate(v int)

func (*Mediafile) SetVideoBitRateTolerance

func (m *Mediafile) SetVideoBitRateTolerance(v int)

func (*Mediafile) SetVideoCodec

func (m *Mediafile) SetVideoCodec(v string)

func (*Mediafile) SetVideoFilter

func (m *Mediafile) SetVideoFilter(v string)

func (*Mediafile) SetVideoMaxBitrate

func (m *Mediafile) SetVideoMaxBitrate(v int)

func (*Mediafile) SetVideoMinBitRate

func (m *Mediafile) SetVideoMinBitRate(v int)

func (*Mediafile) SetVideoProfile

func (m *Mediafile) SetVideoProfile(v string)

func (*Mediafile) SkipAudio

func (m *Mediafile) SkipAudio() bool

func (*Mediafile) SkipVideo

func (m *Mediafile) SkipVideo() bool

func (*Mediafile) StreamIds

func (m *Mediafile) StreamIds() map[int]string

func (*Mediafile) Strict

func (m *Mediafile) Strict() int

func (*Mediafile) Target

func (m *Mediafile) Target() string

func (*Mediafile) Threads

func (m *Mediafile) Threads() int

func (*Mediafile) ToStrCommand

func (m *Mediafile) ToStrCommand() []string

* OPTS *

func (*Mediafile) Tune

func (m *Mediafile) Tune() string

func (*Mediafile) Vframes

func (m *Mediafile) Vframes() int

func (*Mediafile) VideoBitRateTolerance

func (m *Mediafile) VideoBitRateTolerance() int

func (*Mediafile) VideoBitrate

func (m *Mediafile) VideoBitrate() int

func (*Mediafile) VideoCodec

func (m *Mediafile) VideoCodec() string

func (*Mediafile) VideoFilter

func (m *Mediafile) VideoFilter() string

func (*Mediafile) VideoMaxBitRate

func (m *Mediafile) VideoMaxBitRate() int

func (*Mediafile) VideoMinBitRate

func (m *Mediafile) VideoMinBitRate() int

func (*Mediafile) VideoProfile

func (m *Mediafile) VideoProfile() string

type Metadata

type Metadata struct {
	Streams []Streams `json:"streams"`
	Format  Format    `json:"format"`
}

type Progress

type Progress struct {
	FramesProcessed string
	CurrentTime     string
	CurrentBitrate  string
	Progress        float64
	Speed           string
}

type Streams

type Streams struct {
	Index              int
	ID                 string      `json:"id"`
	CodecName          string      `json:"codec_name"`
	CodecLongName      string      `json:"codec_long_name"`
	Profile            string      `json:"profile"`
	CodecType          string      `json:"codec_type"`
	CodecTimeBase      string      `json:"codec_time_base"`
	CodecTagString     string      `json:"codec_tag_string"`
	CodecTag           string      `json:"codec_tag"`
	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"`
	QuarterSample      string      `json:"quarter_sample"`
	DivxPacked         string      `json:"divx_packed"`
	RFrameRrate        string      `json:"r_frame_rate"`
	AvgFrameRate       string      `json:"avg_frame_rate"`
	TimeBase           string      `json:"time_base"`
	DurationTs         int         `json:"duration_ts"`
	Duration           string      `json:"duration"`
	Disposition        Disposition `json:"disposition"`
	BitRate            string      `json:"bit_rate"`
}

type Tags

type Tags struct {
	Encoder string `json:"ENCODER"`
}

Jump to

Keyboard shortcuts

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