Documentation ¶
Index ¶
- type Disposition
- type Ffmpeg
- type Format
- type Mediafile
- func (m *Mediafile) Aspect() string
- func (m *Mediafile) AudioBitrate() string
- func (m *Mediafile) AudioChannels() int
- func (m *Mediafile) AudioCodec() string
- func (m *Mediafile) AudioFilter() string
- func (m *Mediafile) AudioProfile() string
- func (m *Mediafile) AudioRate() int
- func (m *Mediafile) BufferSize() int
- func (m *Mediafile) CopyTs() bool
- func (m *Mediafile) Duration() string
- func (m *Mediafile) DurationInput() string
- func (m *Mediafile) Filter() stringdeprecated
- func (m *Mediafile) FrameRate() int
- func (m *Mediafile) HideBanner() bool
- func (m *Mediafile) HlsListSize() int
- func (m *Mediafile) HlsPlaylistType() string
- func (m *Mediafile) HlsSegmentDuration() int
- func (m *Mediafile) HttpKeepAlive() bool
- func (m *Mediafile) HttpMethod() string
- func (m *Mediafile) Input2Path() string
- func (m *Mediafile) InputInitialOffset() string
- func (m *Mediafile) InputPath() string
- func (m *Mediafile) InputPipeCommand() *exec.Cmd
- func (m *Mediafile) KeyFrameInterval() int
- func (m *Mediafile) MaxKeyFrame() int
- func (m *Mediafile) Metadata() Metadata
- func (m *Mediafile) MinKeyFrame() int
- func (m *Mediafile) MuxDelay() string
- func (m *Mediafile) NativeFramerateInput() bool
- func (m *Mediafile) ObtainAspect() []string
- func (m *Mediafile) ObtainAudioBitRate() []string
- func (m *Mediafile) ObtainAudioChannels() []string
- func (m *Mediafile) ObtainAudioCodec() []string
- func (m *Mediafile) ObtainAudioFilter() []string
- func (m *Mediafile) ObtainAudioProfile() []string
- func (m *Mediafile) ObtainAudioRate() []string
- func (m *Mediafile) ObtainBufferSize() []string
- func (m *Mediafile) ObtainCopyTs() []string
- func (m *Mediafile) ObtainDuration() []string
- func (m *Mediafile) ObtainDurationInput() []string
- func (m *Mediafile) ObtainExtraParamaters() []string
- func (m *Mediafile) ObtainFrameRate() []string
- func (m *Mediafile) ObtainHideBanner() []string
- func (m *Mediafile) ObtainHlsListSize() []string
- func (m *Mediafile) ObtainHlsPlaylistType() []string
- func (m *Mediafile) ObtainHlsSegmentDuration() []string
- func (m *Mediafile) ObtainHttpKeepAlive() []string
- func (m *Mediafile) ObtainHttpMethod() []string
- func (m *Mediafile) ObtainInput2Path() []string
- func (m *Mediafile) ObtainInputInitialOffset() []string
- func (m *Mediafile) ObtainInputPath() []string
- func (m *Mediafile) ObtainInputPipeCommand() []string
- func (m *Mediafile) ObtainKeyframeInterval() []string
- func (m *Mediafile) ObtainMuxDelay() []string
- func (m *Mediafile) ObtainNativeFramerateInput() []string
- func (m *Mediafile) ObtainOutputFormat() []string
- func (m *Mediafile) ObtainOutputPath() []string
- func (m *Mediafile) ObtainPreset() []string
- func (m *Mediafile) ObtainQuality() []string
- func (m *Mediafile) ObtainResolution() []string
- func (m *Mediafile) ObtainRtmpLive() []string
- func (m *Mediafile) ObtainSeekTime() []string
- func (m *Mediafile) ObtainSeekTimeInput() []string
- func (m *Mediafile) ObtainSeekUsingTsInput() []string
- func (m *Mediafile) ObtainSkipAudio() []string
- func (m *Mediafile) ObtainSkipVideo() []string
- func (m *Mediafile) ObtainStreamIds() []string
- func (m *Mediafile) ObtainStrict() []string
- func (m *Mediafile) ObtainTarget() []string
- func (m *Mediafile) ObtainThreads() []string
- func (m *Mediafile) ObtainTune() []string
- func (m *Mediafile) ObtainVframes() []string
- func (m *Mediafile) ObtainVideoBitRate() []string
- func (m *Mediafile) ObtainVideoBitRateTolerance() []string
- func (m *Mediafile) ObtainVideoCodec() []string
- func (m *Mediafile) ObtainVideoFilter() []string
- func (m *Mediafile) ObtainVideoMaxBitRate() []string
- func (m *Mediafile) ObtainVideoMinBitRate() []string
- func (m *Mediafile) ObtainVideoProfile() []string
- func (m *Mediafile) OutputFormat() string
- func (m *Mediafile) OutputPath() string
- func (m *Mediafile) Preset() string
- func (m *Mediafile) Quality() int
- func (m *Mediafile) Resolution() string
- func (m *Mediafile) RtmpLive() string
- func (m *Mediafile) SeekTime() string
- func (m *Mediafile) SeekTimeInput() string
- func (m *Mediafile) SeekUsingTsInput() bool
- func (m *Mediafile) SetAspect(v string)
- func (m *Mediafile) SetAudioBitRate(v string)
- func (m *Mediafile) SetAudioChannels(v int)
- func (m *Mediafile) SetAudioCodec(v string)
- func (m *Mediafile) SetAudioFilter(v string)
- func (m *Mediafile) SetAudioProfile(v string)
- func (m *Mediafile) SetAudioRate(v int)
- func (m *Mediafile) SetAudioVariableBitrate()
- func (m *Mediafile) SetBufferSize(v int)
- func (m *Mediafile) SetCopyTs(val bool)
- func (m *Mediafile) SetDuration(v string)
- func (m *Mediafile) SetDurationInput(v string)
- func (m *Mediafile) SetExtraParamaters(v []string)
- func (m *Mediafile) SetFilter(v string)deprecated
- func (m *Mediafile) SetFrameRate(v int)
- func (m *Mediafile) SetHideBanner(val bool)
- func (m *Mediafile) SetHlsListSize(val int)
- func (m *Mediafile) SetHlsPlaylistType(val string)
- func (m *Mediafile) SetHlsSegmentDuration(val int)
- func (m *Mediafile) SetHttpKeepAlive(val bool)
- func (m *Mediafile) SetHttpMethod(val string)
- func (m *Mediafile) SetInput2Path(val string)
- func (m *Mediafile) SetInputInitialOffset(val string)
- func (m *Mediafile) SetInputPath(val string)
- func (m *Mediafile) SetInputPipeCommand(command *exec.Cmd)
- func (m *Mediafile) SetKeyframeInterval(v int)
- func (m *Mediafile) SetMaxKeyFrame(v int)
- func (m *Mediafile) SetMetadata(v Metadata)
- func (m *Mediafile) SetMinKeyFrame(v int)
- func (m *Mediafile) SetMuxDelay(val string)
- func (m *Mediafile) SetNativeFramerateInput(val bool)
- func (m *Mediafile) SetOutputFormat(val string)
- func (m *Mediafile) SetOutputPath(val string)
- func (m *Mediafile) SetPreset(v string)
- func (m *Mediafile) SetQuality(v int)
- func (m *Mediafile) SetResolution(v string)
- func (m *Mediafile) SetRtmpLive(val string)
- func (m *Mediafile) SetSeekTime(v string)
- func (m *Mediafile) SetSeekTimeInput(v string)
- func (m *Mediafile) SetSeekUsingTsInput(val bool)
- func (m *Mediafile) SetSkipAudio(val bool)
- func (m *Mediafile) SetSkipVideo(val bool)
- func (m *Mediafile) SetStreamIds(val map[int]string)
- func (m *Mediafile) SetStrict(v int)
- func (m *Mediafile) SetThreads(v int)
- func (m *Mediafile) SetTune(v string)
- func (m *Mediafile) SetVframes(v int)
- func (m *Mediafile) SetVideoBitRate(v int)
- func (m *Mediafile) SetVideoBitRateTolerance(v int)
- func (m *Mediafile) SetVideoCodec(v string)
- func (m *Mediafile) SetVideoFilter(v string)
- func (m *Mediafile) SetVideoMaxBitrate(v int)
- func (m *Mediafile) SetVideoMinBitRate(v int)
- func (m *Mediafile) SetVideoProfile(v string)
- func (m *Mediafile) SkipAudio() bool
- func (m *Mediafile) SkipVideo() bool
- func (m *Mediafile) StreamIds() map[int]string
- func (m *Mediafile) Strict() int
- func (m *Mediafile) Target() string
- func (m *Mediafile) Threads() int
- func (m *Mediafile) ToStrCommand() []string
- func (m *Mediafile) Tune() string
- func (m *Mediafile) Vframes() int
- func (m *Mediafile) VideoBitRateTolerance() int
- func (m *Mediafile) VideoBitrate() int
- func (m *Mediafile) VideoCodec() string
- func (m *Mediafile) VideoFilter() string
- func (m *Mediafile) VideoMaxBitRate() int
- func (m *Mediafile) VideoMinBitRate() int
- func (m *Mediafile) VideoProfile() string
- type Metadata
- type Progress
- type Streams
- type Tags
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 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) AudioBitrate ¶
func (*Mediafile) AudioChannels ¶
func (*Mediafile) AudioCodec ¶
func (*Mediafile) AudioFilter ¶
func (*Mediafile) AudioProfile ¶
func (*Mediafile) BufferSize ¶
func (*Mediafile) DurationInput ¶
func (*Mediafile) HideBanner ¶
func (*Mediafile) HlsListSize ¶
func (*Mediafile) HlsPlaylistType ¶
func (*Mediafile) HlsSegmentDuration ¶
func (*Mediafile) HttpKeepAlive ¶
func (*Mediafile) HttpMethod ¶
func (*Mediafile) Input2Path ¶
func (*Mediafile) InputInitialOffset ¶
func (*Mediafile) InputPipeCommand ¶
func (*Mediafile) KeyFrameInterval ¶
func (*Mediafile) MaxKeyFrame ¶
func (*Mediafile) MinKeyFrame ¶
func (*Mediafile) NativeFramerateInput ¶
func (*Mediafile) ObtainAspect ¶
func (*Mediafile) ObtainAudioBitRate ¶
func (*Mediafile) ObtainAudioChannels ¶
func (*Mediafile) ObtainAudioCodec ¶
func (*Mediafile) ObtainAudioFilter ¶
func (*Mediafile) ObtainAudioProfile ¶
func (*Mediafile) ObtainAudioRate ¶
func (*Mediafile) ObtainBufferSize ¶
func (*Mediafile) ObtainCopyTs ¶
func (*Mediafile) ObtainDuration ¶
func (*Mediafile) ObtainDurationInput ¶
func (*Mediafile) ObtainExtraParamaters ¶
func (*Mediafile) ObtainFrameRate ¶
func (*Mediafile) ObtainHideBanner ¶
func (*Mediafile) ObtainHlsListSize ¶
func (*Mediafile) ObtainHlsPlaylistType ¶
func (*Mediafile) ObtainHlsSegmentDuration ¶
func (*Mediafile) ObtainHttpKeepAlive ¶
func (*Mediafile) ObtainHttpMethod ¶
func (*Mediafile) ObtainInput2Path ¶
func (*Mediafile) ObtainInputInitialOffset ¶
func (*Mediafile) ObtainInputPath ¶
func (*Mediafile) ObtainInputPipeCommand ¶
func (*Mediafile) ObtainKeyframeInterval ¶
func (*Mediafile) ObtainMuxDelay ¶
func (*Mediafile) ObtainNativeFramerateInput ¶
func (*Mediafile) ObtainOutputFormat ¶
func (*Mediafile) ObtainOutputPath ¶
func (*Mediafile) ObtainPreset ¶
func (*Mediafile) ObtainQuality ¶
func (*Mediafile) ObtainResolution ¶
func (*Mediafile) ObtainRtmpLive ¶
func (*Mediafile) ObtainSeekTime ¶
func (*Mediafile) ObtainSeekTimeInput ¶
func (*Mediafile) ObtainSeekUsingTsInput ¶
func (*Mediafile) ObtainSkipAudio ¶
func (*Mediafile) ObtainSkipVideo ¶
func (*Mediafile) ObtainStreamIds ¶
func (*Mediafile) ObtainStrict ¶
func (*Mediafile) ObtainTarget ¶
func (*Mediafile) ObtainThreads ¶
func (*Mediafile) ObtainTune ¶
func (*Mediafile) ObtainVframes ¶
func (*Mediafile) ObtainVideoBitRate ¶
func (*Mediafile) ObtainVideoBitRateTolerance ¶
func (*Mediafile) ObtainVideoCodec ¶
func (*Mediafile) ObtainVideoFilter ¶
func (*Mediafile) ObtainVideoMaxBitRate ¶
func (*Mediafile) ObtainVideoMinBitRate ¶
func (*Mediafile) ObtainVideoProfile ¶
func (*Mediafile) OutputFormat ¶
func (*Mediafile) OutputPath ¶
func (*Mediafile) Resolution ¶
func (*Mediafile) SeekTimeInput ¶
func (*Mediafile) SeekUsingTsInput ¶
func (*Mediafile) SetAudioBitRate ¶
func (*Mediafile) SetAudioChannels ¶
func (*Mediafile) SetAudioCodec ¶
func (*Mediafile) SetAudioFilter ¶
func (*Mediafile) SetAudioProfile ¶
func (*Mediafile) SetAudioRate ¶
func (*Mediafile) SetAudioVariableBitrate ¶
func (m *Mediafile) SetAudioVariableBitrate()
func (*Mediafile) SetBufferSize ¶
func (*Mediafile) SetDuration ¶
func (*Mediafile) SetDurationInput ¶
func (*Mediafile) SetExtraParamaters ¶
** SETTERS **
func (*Mediafile) SetFrameRate ¶
func (*Mediafile) SetHideBanner ¶
func (*Mediafile) SetHlsListSize ¶
func (*Mediafile) SetHlsPlaylistType ¶
func (*Mediafile) SetHlsSegmentDuration ¶
func (*Mediafile) SetHttpKeepAlive ¶
func (*Mediafile) SetHttpMethod ¶
func (*Mediafile) SetInput2Path ¶
func (*Mediafile) SetInputInitialOffset ¶
func (*Mediafile) SetInputPath ¶
func (*Mediafile) SetInputPipeCommand ¶
func (*Mediafile) SetKeyframeInterval ¶
func (*Mediafile) SetMaxKeyFrame ¶
func (*Mediafile) SetMetadata ¶
func (*Mediafile) SetMinKeyFrame ¶
func (*Mediafile) SetMuxDelay ¶
func (*Mediafile) SetNativeFramerateInput ¶
func (*Mediafile) SetOutputFormat ¶
func (*Mediafile) SetOutputPath ¶
func (*Mediafile) SetQuality ¶
func (*Mediafile) SetResolution ¶
func (*Mediafile) SetRtmpLive ¶
func (*Mediafile) SetSeekTime ¶
func (*Mediafile) SetSeekTimeInput ¶
func (*Mediafile) SetSeekUsingTsInput ¶
func (*Mediafile) SetSkipAudio ¶
func (*Mediafile) SetSkipVideo ¶
func (*Mediafile) SetStreamIds ¶
func (*Mediafile) SetThreads ¶
func (*Mediafile) SetVframes ¶
func (*Mediafile) SetVideoBitRate ¶
func (*Mediafile) SetVideoBitRateTolerance ¶
func (*Mediafile) SetVideoCodec ¶
func (*Mediafile) SetVideoFilter ¶
func (*Mediafile) SetVideoMaxBitrate ¶
func (*Mediafile) SetVideoMinBitRate ¶
func (*Mediafile) SetVideoProfile ¶
func (*Mediafile) VideoBitRateTolerance ¶
func (*Mediafile) VideoBitrate ¶
func (*Mediafile) VideoCodec ¶
func (*Mediafile) VideoFilter ¶
func (*Mediafile) VideoMaxBitRate ¶
func (*Mediafile) VideoMinBitRate ¶
func (*Mediafile) VideoProfile ¶
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"` }
Click to show internal directories.
Click to hide internal directories.