Versions in this module Expand all Collapse all v1 v1.1.3 Jan 6, 2022 Changes in this version + func New(cfg *Config) transcoder.Transcoder + type Config struct + FfmpegBinPath string + FfprobeBinPath string + ProgressEnabled bool + Verbose bool + type Disposition struct + CleanEffects int + Comment int + Default int + Dub int + Forced int + HearingImpaired int + Karaoke int + Lyrics int + Original int + VisualImpaired int + func (d Disposition) GetCleanEffects() int + func (d Disposition) GetComment() int + func (d Disposition) GetDefault() int + func (d Disposition) GetDub() int + func (d Disposition) GetForced() int + func (d Disposition) GetHearingImpaired() int + func (d Disposition) GetKaraoke() int + func (d Disposition) GetLyrics() int + func (d Disposition) GetOriginal() int + func (d Disposition) GetVisualImpaired() int + type Format struct + BitRate string + Duration string + Filename string + FormatLongName string + FormatName string + NbPrograms int + NbStreams int + ProbeScore int + Size string + Tags Tags + func (f Format) GetBitRate() string + func (f Format) GetDuration() string + func (f Format) GetFilename() string + func (f Format) GetFormatLongName() string + func (f Format) GetFormatName() string + func (f Format) GetNbPrograms() int + func (f Format) GetNbStreams() int + func (f Format) GetProbeScore() int + func (f Format) GetSize() string + func (f Format) GetTags() transcoder.Tags + type Metadata struct + Format Format + Streams []Streams + func (m Metadata) GetFormat() transcoder.Format + func (m Metadata) GetStreams() (streams []transcoder.Streams) + type Options struct + Aspect *string + AudioBitrate *string + AudioChannels *int + AudioCodec *string + AudioFilter *string + AudioProfile *string + AudioRate *int + AudioVariableBitrate *bool + Bframe *int + BufferSize *int + CompressionLevel *int + CopyTs *bool + Crf *uint32 + Duration *string + EncryptionKey *string + ExtraArgs map[string]interface{} + FrameRate *int + HTTPKeepAlive *bool + HTTPMethod *string + HideBanner *bool + HlsListSize *int + HlsMasterPlaylistName *string + HlsPlaylistType *string + HlsSegmentDuration *int + HlsSegmentFilename *string + Hwaccel *string + InputInitialOffset *string + KeyframeInterval *int + MapMetadata *string + Metadata map[string]string + MovFlags *string + MuxDelay *string + NativeFramerateInput *bool + OutputFormat *string + Overwrite *bool + PixFmt *string + Preset *string + Qscale *uint32 + Resolution *string + RtmpLive *string + SeekTime *string + SeekUsingTimestamp *bool + SkipAudio *bool + SkipVideo *bool + StreamIds map[string]string + Strict *int + Target *string + Threads *int + Threadset *bool + Tune *string + Vframes *int + VideoBitRate *string + VideoBitRateTolerance *int + VideoCodec *string + VideoFilter *string + VideoMaxBitRate *int + VideoMinBitrate *int + VideoProfile *string + WhiteListProtocols []string + func (opts Options) GetStrArguments() []string + type Progress struct + CurrentBitrate string + CurrentTime string + FramesProcessed string + Progress float64 + Speed string + func (p Progress) GetCurrentBitrate() string + func (p Progress) GetCurrentTime() string + func (p Progress) GetFramesProcessed() string + func (p Progress) GetProgress() float64 + func (p Progress) GetSpeed() string + type Streams struct + AvgFrameRate string + BitRate string + ChromaLocation string + CodecLongName string + CodecName string + CodecTag string + CodecTagString string + CodecTimeBase string + CodecType string + CodedHeight int + CodedWidth int + DisplayAspectRatio string + Disposition Disposition + DivxPacked string + Duration string + DurationTs int + HasBFrames int + Height int + ID string + Index int + Level int + PixFmt string + Profile string + QuarterSample string + RFrameRrate string + Refs int + SampleAspectRatio string + TimeBase string + Width int + func (s Streams) GetAvgFrameRate() string + func (s Streams) GetBitRate() string + func (s Streams) GetChromaLocation() string + func (s Streams) GetCodecLongName() string + func (s Streams) GetCodecName() string + func (s Streams) GetCodecTag() string + func (s Streams) GetCodecTagString() string + func (s Streams) GetCodecTimeBase() string + func (s Streams) GetCodecType() string + func (s Streams) GetCodedHeight() int + func (s Streams) GetCodedWidth() int + func (s Streams) GetDisplayAspectRatio() string + func (s Streams) GetDisposition() transcoder.Disposition + func (s Streams) GetDivxPacked() string + func (s Streams) GetDuration() string + func (s Streams) GetDurationTs() int + func (s Streams) GetHasBFrames() int + func (s Streams) GetHeight() int + func (s Streams) GetID() string + func (s Streams) GetIndex() int + func (s Streams) GetLevel() int + func (s Streams) GetPixFmt() string + func (s Streams) GetProfile() string + func (s Streams) GetQuarterSample() string + func (s Streams) GetRFrameRrate() string + func (s Streams) GetRefs() int + func (s Streams) GetSampleAspectRatio() string + func (s Streams) GetTimeBase() string + func (s Streams) GetWidth() int + type Tags struct + Encoder string + func (t Tags) GetEncoder() string + type Transcoder struct + func (t *Transcoder) GetMetadata() (transcoder.Metadata, error) + func (t *Transcoder) Input(arg string) transcoder.Transcoder + func (t *Transcoder) InputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder + func (t *Transcoder) Output(arg string) transcoder.Transcoder + func (t *Transcoder) OutputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder + func (t *Transcoder) Start(opts transcoder.Options) (<-chan transcoder.Progress, error) + func (t *Transcoder) WithAdditionalOptions(opts transcoder.Options) transcoder.Transcoder + func (t *Transcoder) WithContext(ctx *context.Context) transcoder.Transcoder + func (t *Transcoder) WithOptions(opts transcoder.Options) transcoder.Transcoder