models

package
v0.86.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0, 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) CRF

func (m *Mediafile) CRF() uint32

func (*Mediafile) CompressionLevel

func (m *Mediafile) CompressionLevel() 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) EncryptionKey

func (m *Mediafile) EncryptionKey() string

func (*Mediafile) Filter deprecated

func (m *Mediafile) Filter() string

Deprecated: Use VideoFilter instead.

func (*Mediafile) FrameRate

func (m *Mediafile) FrameRate() int

func (*Mediafile) GetMetadata

func (m *Mediafile) GetMetadata() *Metadata

func (*Mediafile) GetPixFmt

func (m *Mediafile) GetPixFmt() string

func (*Mediafile) HardwareAcceleration

func (m *Mediafile) HardwareAcceleration() string

func (*Mediafile) HideBanner

func (m *Mediafile) HideBanner() bool

func (*Mediafile) HlsListSize

func (m *Mediafile) HlsListSize() int

func (*Mediafile) HlsMasterPlaylistName

func (m *Mediafile) HlsMasterPlaylistName() string

func (*Mediafile) HlsPlaylistType

func (m *Mediafile) HlsPlaylistType() string

func (*Mediafile) HlsSegmentDuration

func (m *Mediafile) HlsSegmentDuration() int

func (*Mediafile) HlsSegmentFilename

func (m *Mediafile) HlsSegmentFilename() string

func (*Mediafile) HttpKeepAlive

func (m *Mediafile) HttpKeepAlive() bool

func (*Mediafile) HttpMethod

func (m *Mediafile) HttpMethod() string

func (*Mediafile) InputInitialOffset

func (m *Mediafile) InputInitialOffset() string

func (*Mediafile) InputPath

func (m *Mediafile) InputPath() string

func (*Mediafile) InputPipe

func (m *Mediafile) InputPipe() bool

func (*Mediafile) InputPipeReader

func (m *Mediafile) InputPipeReader() io.ReadCloser

func (*Mediafile) InputPipeWriter

func (m *Mediafile) InputPipeWriter() io.Writer

func (*Mediafile) KeyFrameInterval

func (m *Mediafile) KeyFrameInterval() int

func (*Mediafile) MapMetadata

func (m *Mediafile) MapMetadata() string

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) MovFlags

func (m *Mediafile) MovFlags() string

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) ObtainBframe

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

func (*Mediafile) ObtainBufferSize

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

func (*Mediafile) ObtainCRF

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

func (*Mediafile) ObtainCompressionLevel

func (m *Mediafile) ObtainCompressionLevel() []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) ObtainEncryptionKey

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

func (*Mediafile) ObtainFrameRate

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

func (*Mediafile) ObtainHardwareAcceleration

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

func (*Mediafile) ObtainHideBanner

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

func (*Mediafile) ObtainHlsListSize

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

func (*Mediafile) ObtainHlsMasterPlaylistName

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

func (*Mediafile) ObtainHlsPlaylistType

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

func (*Mediafile) ObtainHlsSegmentDuration

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

func (*Mediafile) ObtainHlsSegmentFilename

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

func (*Mediafile) ObtainHttpKeepAlive

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

func (*Mediafile) ObtainHttpMethod

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

func (*Mediafile) ObtainInputInitialOffset

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

func (*Mediafile) ObtainInputPath

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

func (*Mediafile) ObtainInputPipe

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

func (*Mediafile) ObtainKeyframeInterval

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

func (*Mediafile) ObtainMapMetadata

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

func (*Mediafile) ObtainMovFlags

func (m *Mediafile) ObtainMovFlags() []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) ObtainOutputPipe

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

func (*Mediafile) ObtainPixFmt

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

func (*Mediafile) ObtainPreset

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

func (*Mediafile) ObtainQScale

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

func (*Mediafile) ObtainRawInputArgs

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

func (*Mediafile) ObtainRawOutputArgs

func (m *Mediafile) ObtainRawOutputArgs() []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) ObtainTags

func (m *Mediafile) ObtainTags() []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) OutputPipe

func (m *Mediafile) OutputPipe() bool

func (*Mediafile) OutputPipeReader

func (m *Mediafile) OutputPipeReader() io.Reader

func (*Mediafile) OutputPipeWriter

func (m *Mediafile) OutputPipeWriter() io.WriteCloser

func (*Mediafile) Preset

func (m *Mediafile) Preset() string

func (*Mediafile) QScale

func (m *Mediafile) QScale() uint32

func (*Mediafile) RawInputArgs

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

func (*Mediafile) RawOutputArgs

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

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)

** SETTERS **

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) SetBframe

func (m *Mediafile) SetBframe(v int)

func (*Mediafile) SetBufferSize

func (m *Mediafile) SetBufferSize(v int)

func (*Mediafile) SetCRF

func (m *Mediafile) SetCRF(v uint32)

func (*Mediafile) SetCompressionLevel

func (m *Mediafile) SetCompressionLevel(val 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) SetEncryptionKey

func (m *Mediafile) SetEncryptionKey(v string)

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) SetHardwareAcceleration

func (m *Mediafile) SetHardwareAcceleration(val string)

func (*Mediafile) SetHideBanner

func (m *Mediafile) SetHideBanner(val bool)

func (*Mediafile) SetHlsListSize

func (m *Mediafile) SetHlsListSize(val int)

func (*Mediafile) SetHlsMasterPlaylistName

func (m *Mediafile) SetHlsMasterPlaylistName(val string)

func (*Mediafile) SetHlsPlaylistType

func (m *Mediafile) SetHlsPlaylistType(val string)

func (*Mediafile) SetHlsSegmentDuration

func (m *Mediafile) SetHlsSegmentDuration(val int)

func (*Mediafile) SetHlsSegmentFilename

func (m *Mediafile) SetHlsSegmentFilename(val string)

func (*Mediafile) SetHttpKeepAlive

func (m *Mediafile) SetHttpKeepAlive(val bool)

func (*Mediafile) SetHttpMethod

func (m *Mediafile) SetHttpMethod(val string)

func (*Mediafile) SetInputInitialOffset

func (m *Mediafile) SetInputInitialOffset(val string)

func (*Mediafile) SetInputPath

func (m *Mediafile) SetInputPath(val string)

func (*Mediafile) SetInputPipe

func (m *Mediafile) SetInputPipe(val bool)

func (*Mediafile) SetInputPipeReader

func (m *Mediafile) SetInputPipeReader(r io.ReadCloser)

func (*Mediafile) SetInputPipeWriter

func (m *Mediafile) SetInputPipeWriter(w io.Writer)

func (*Mediafile) SetKeyframeInterval

func (m *Mediafile) SetKeyframeInterval(v int)

func (*Mediafile) SetMapMetadata

func (m *Mediafile) SetMapMetadata(val string)

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) SetMovFlags

func (m *Mediafile) SetMovFlags(val string)

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) SetOutputPipe

func (m *Mediafile) SetOutputPipe(val bool)

func (*Mediafile) SetOutputPipeReader

func (m *Mediafile) SetOutputPipeReader(r io.Reader)

func (*Mediafile) SetOutputPipeWriter

func (m *Mediafile) SetOutputPipeWriter(w io.WriteCloser)

func (*Mediafile) SetPixFmt

func (m *Mediafile) SetPixFmt(v string)

func (*Mediafile) SetPreset

func (m *Mediafile) SetPreset(v string)

func (*Mediafile) SetQScale

func (m *Mediafile) SetQScale(v uint32)

Q Scale must be integer between 1 to 31 - https://trac.ffmpeg.org/wiki/Encode/MPEG-4

func (*Mediafile) SetRawInputArgs

func (m *Mediafile) SetRawInputArgs(args []string)

func (*Mediafile) SetRawOutputArgs

func (m *Mediafile) SetRawOutputArgs(args []string)

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) SetTags

func (m *Mediafile) SetTags(val map[string]string)

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 string)

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) Tags

func (m *Mediafile) Tags() map[string]string

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() string

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