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) CRF() uint32
- func (m *Mediafile) CompressionLevel() int
- func (m *Mediafile) CopyTs() bool
- func (m *Mediafile) Duration() string
- func (m *Mediafile) DurationInput() string
- func (m *Mediafile) EncryptionKey() string
- func (m *Mediafile) Filter() stringdeprecated
- func (m *Mediafile) FrameRate() int
- func (m *Mediafile) GetMetadata() *Metadata
- func (m *Mediafile) GetPixFmt() string
- func (m *Mediafile) HardwareAcceleration() string
- func (m *Mediafile) HideBanner() bool
- func (m *Mediafile) HlsListSize() int
- func (m *Mediafile) HlsMasterPlaylistName() string
- func (m *Mediafile) HlsPlaylistType() string
- func (m *Mediafile) HlsSegmentDuration() int
- func (m *Mediafile) HlsSegmentFilename() string
- func (m *Mediafile) HttpKeepAlive() bool
- func (m *Mediafile) HttpMethod() string
- func (m *Mediafile) InputInitialOffset() string
- func (m *Mediafile) InputPath() string
- func (m *Mediafile) InputPipe() bool
- func (m *Mediafile) InputPipeReader() io.ReadCloser
- func (m *Mediafile) InputPipeWriter() io.Writer
- func (m *Mediafile) KeyFrameInterval() int
- func (m *Mediafile) MapMetadata() string
- func (m *Mediafile) MaxKeyFrame() int
- func (m *Mediafile) Metadata() Metadata
- func (m *Mediafile) MinKeyFrame() int
- func (m *Mediafile) MovFlags() string
- 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) ObtainBframe() []string
- func (m *Mediafile) ObtainBufferSize() []string
- func (m *Mediafile) ObtainCRF() []string
- func (m *Mediafile) ObtainCompressionLevel() []string
- func (m *Mediafile) ObtainCopyTs() []string
- func (m *Mediafile) ObtainDuration() []string
- func (m *Mediafile) ObtainDurationInput() []string
- func (m *Mediafile) ObtainEncryptionKey() []string
- func (m *Mediafile) ObtainFrameRate() []string
- func (m *Mediafile) ObtainHardwareAcceleration() []string
- func (m *Mediafile) ObtainHideBanner() []string
- func (m *Mediafile) ObtainHlsListSize() []string
- func (m *Mediafile) ObtainHlsMasterPlaylistName() []string
- func (m *Mediafile) ObtainHlsPlaylistType() []string
- func (m *Mediafile) ObtainHlsSegmentDuration() []string
- func (m *Mediafile) ObtainHlsSegmentFilename() []string
- func (m *Mediafile) ObtainHttpKeepAlive() []string
- func (m *Mediafile) ObtainHttpMethod() []string
- func (m *Mediafile) ObtainInputInitialOffset() []string
- func (m *Mediafile) ObtainInputPath() []string
- func (m *Mediafile) ObtainInputPipe() []string
- func (m *Mediafile) ObtainKeyframeInterval() []string
- func (m *Mediafile) ObtainMapMetadata() []string
- func (m *Mediafile) ObtainMovFlags() []string
- func (m *Mediafile) ObtainMuxDelay() []string
- func (m *Mediafile) ObtainNativeFramerateInput() []string
- func (m *Mediafile) ObtainOutputFormat() []string
- func (m *Mediafile) ObtainOutputPath() []string
- func (m *Mediafile) ObtainOutputPipe() []string
- func (m *Mediafile) ObtainPixFmt() []string
- func (m *Mediafile) ObtainPreset() []string
- func (m *Mediafile) ObtainQScale() []string
- func (m *Mediafile) ObtainRawInputArgs() []string
- func (m *Mediafile) ObtainRawOutputArgs() []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) ObtainTags() []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) OutputPipe() bool
- func (m *Mediafile) OutputPipeReader() io.Reader
- func (m *Mediafile) OutputPipeWriter() io.WriteCloser
- func (m *Mediafile) Preset() string
- func (m *Mediafile) QScale() uint32
- func (m *Mediafile) RawInputArgs() []string
- func (m *Mediafile) RawOutputArgs() []string
- 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) SetBframe(v int)
- func (m *Mediafile) SetBufferSize(v int)
- func (m *Mediafile) SetCRF(v uint32)
- func (m *Mediafile) SetCompressionLevel(val int)
- func (m *Mediafile) SetCopyTs(val bool)
- func (m *Mediafile) SetDuration(v string)
- func (m *Mediafile) SetDurationInput(v string)
- func (m *Mediafile) SetEncryptionKey(v string)
- func (m *Mediafile) SetFilter(v string)deprecated
- func (m *Mediafile) SetFrameRate(v int)
- func (m *Mediafile) SetHardwareAcceleration(val string)
- func (m *Mediafile) SetHideBanner(val bool)
- func (m *Mediafile) SetHlsListSize(val int)
- func (m *Mediafile) SetHlsMasterPlaylistName(val string)
- func (m *Mediafile) SetHlsPlaylistType(val string)
- func (m *Mediafile) SetHlsSegmentDuration(val int)
- func (m *Mediafile) SetHlsSegmentFilename(val string)
- func (m *Mediafile) SetHttpKeepAlive(val bool)
- func (m *Mediafile) SetHttpMethod(val string)
- func (m *Mediafile) SetInputInitialOffset(val string)
- func (m *Mediafile) SetInputPath(val string)
- func (m *Mediafile) SetInputPipe(val bool)
- func (m *Mediafile) SetInputPipeReader(r io.ReadCloser)
- func (m *Mediafile) SetInputPipeWriter(w io.Writer)
- func (m *Mediafile) SetKeyframeInterval(v int)
- func (m *Mediafile) SetMapMetadata(val string)
- func (m *Mediafile) SetMaxKeyFrame(v int)
- func (m *Mediafile) SetMetadata(v Metadata)
- func (m *Mediafile) SetMinKeyFrame(v int)
- func (m *Mediafile) SetMovFlags(val string)
- 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) SetOutputPipe(val bool)
- func (m *Mediafile) SetOutputPipeReader(r io.Reader)
- func (m *Mediafile) SetOutputPipeWriter(w io.WriteCloser)
- func (m *Mediafile) SetPixFmt(v string)
- func (m *Mediafile) SetPreset(v string)
- func (m *Mediafile) SetQScale(v uint32)
- func (m *Mediafile) SetRawInputArgs(args []string)
- func (m *Mediafile) SetRawOutputArgs(args []string)
- 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) SetTags(val map[string]string)
- func (m *Mediafile) SetThreads(v int)
- func (m *Mediafile) SetTune(v string)
- func (m *Mediafile) SetVframes(v int)
- func (m *Mediafile) SetVideoBitRate(v string)
- 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) Tags() map[string]string
- 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() string
- 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) CompressionLevel ¶
func (*Mediafile) DurationInput ¶
func (*Mediafile) EncryptionKey ¶
func (*Mediafile) GetMetadata ¶
func (*Mediafile) HardwareAcceleration ¶
func (*Mediafile) HideBanner ¶
func (*Mediafile) HlsListSize ¶
func (*Mediafile) HlsMasterPlaylistName ¶
func (*Mediafile) HlsPlaylistType ¶
func (*Mediafile) HlsSegmentDuration ¶
func (*Mediafile) HlsSegmentFilename ¶
func (*Mediafile) HttpKeepAlive ¶
func (*Mediafile) HttpMethod ¶
func (*Mediafile) InputInitialOffset ¶
func (*Mediafile) InputPipeReader ¶
func (m *Mediafile) InputPipeReader() io.ReadCloser
func (*Mediafile) InputPipeWriter ¶
func (*Mediafile) KeyFrameInterval ¶
func (*Mediafile) MapMetadata ¶
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) ObtainBframe ¶
func (*Mediafile) ObtainBufferSize ¶
func (*Mediafile) ObtainCompressionLevel ¶
func (*Mediafile) ObtainCopyTs ¶
func (*Mediafile) ObtainDuration ¶
func (*Mediafile) ObtainDurationInput ¶
func (*Mediafile) ObtainEncryptionKey ¶
func (*Mediafile) ObtainFrameRate ¶
func (*Mediafile) ObtainHardwareAcceleration ¶
func (*Mediafile) ObtainHideBanner ¶
func (*Mediafile) ObtainHlsListSize ¶
func (*Mediafile) ObtainHlsMasterPlaylistName ¶
func (*Mediafile) ObtainHlsPlaylistType ¶
func (*Mediafile) ObtainHlsSegmentDuration ¶
func (*Mediafile) ObtainHlsSegmentFilename ¶
func (*Mediafile) ObtainHttpKeepAlive ¶
func (*Mediafile) ObtainHttpMethod ¶
func (*Mediafile) ObtainInputInitialOffset ¶
func (*Mediafile) ObtainInputPath ¶
func (*Mediafile) ObtainInputPipe ¶
func (*Mediafile) ObtainKeyframeInterval ¶
func (*Mediafile) ObtainMapMetadata ¶
func (*Mediafile) ObtainMovFlags ¶
func (*Mediafile) ObtainMuxDelay ¶
func (*Mediafile) ObtainNativeFramerateInput ¶
func (*Mediafile) ObtainOutputFormat ¶
func (*Mediafile) ObtainOutputPath ¶
func (*Mediafile) ObtainOutputPipe ¶
func (*Mediafile) ObtainPixFmt ¶
func (*Mediafile) ObtainPreset ¶
func (*Mediafile) ObtainQScale ¶
func (*Mediafile) ObtainRawInputArgs ¶
func (*Mediafile) ObtainRawOutputArgs ¶
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) ObtainTags ¶
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) OutputPipe ¶
func (*Mediafile) OutputPipeReader ¶
func (*Mediafile) OutputPipeWriter ¶
func (m *Mediafile) OutputPipeWriter() io.WriteCloser
func (*Mediafile) RawInputArgs ¶
func (*Mediafile) RawOutputArgs ¶
func (*Mediafile) Resolution ¶
func (*Mediafile) SeekTimeInput ¶
func (*Mediafile) SeekUsingTsInput ¶
func (*Mediafile) SetAudioBitRate ¶
func (*Mediafile) SetAudioChannels ¶
func (*Mediafile) SetAudioCodec ¶
func (*Mediafile) SetAudioProfile ¶
func (*Mediafile) SetAudioRate ¶
func (*Mediafile) SetAudioVariableBitrate ¶
func (m *Mediafile) SetAudioVariableBitrate()
func (*Mediafile) SetBufferSize ¶
func (*Mediafile) SetCompressionLevel ¶
func (*Mediafile) SetDuration ¶
func (*Mediafile) SetDurationInput ¶
func (*Mediafile) SetEncryptionKey ¶
func (*Mediafile) SetFrameRate ¶
func (*Mediafile) SetHardwareAcceleration ¶
func (*Mediafile) SetHideBanner ¶
func (*Mediafile) SetHlsListSize ¶
func (*Mediafile) SetHlsMasterPlaylistName ¶
func (*Mediafile) SetHlsPlaylistType ¶
func (*Mediafile) SetHlsSegmentDuration ¶
func (*Mediafile) SetHlsSegmentFilename ¶
func (*Mediafile) SetHttpKeepAlive ¶
func (*Mediafile) SetHttpMethod ¶
func (*Mediafile) SetInputInitialOffset ¶
func (*Mediafile) SetInputPath ¶
func (*Mediafile) SetInputPipe ¶
func (*Mediafile) SetInputPipeReader ¶
func (m *Mediafile) SetInputPipeReader(r io.ReadCloser)
func (*Mediafile) SetInputPipeWriter ¶
func (*Mediafile) SetKeyframeInterval ¶
func (*Mediafile) SetMapMetadata ¶
func (*Mediafile) SetMaxKeyFrame ¶
func (*Mediafile) SetMetadata ¶
func (*Mediafile) SetMinKeyFrame ¶
func (*Mediafile) SetMovFlags ¶
func (*Mediafile) SetMuxDelay ¶
func (*Mediafile) SetNativeFramerateInput ¶
func (*Mediafile) SetOutputFormat ¶
func (*Mediafile) SetOutputPath ¶
func (*Mediafile) SetOutputPipe ¶
func (*Mediafile) SetOutputPipeReader ¶
func (*Mediafile) SetOutputPipeWriter ¶
func (m *Mediafile) SetOutputPipeWriter(w io.WriteCloser)
func (*Mediafile) SetQScale ¶
Q Scale must be integer between 1 to 31 - https://trac.ffmpeg.org/wiki/Encode/MPEG-4
func (*Mediafile) SetRawInputArgs ¶
func (*Mediafile) SetRawOutputArgs ¶
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.