Versions in this module Expand all Collapse all v1 v1.0.0 Mar 9, 2025 Changes in this version + const HLSAACCodecFlag + const OutputDirContext + const OutputFlag + const SourceURLContext + var DefaultRenditions = []Rendition + func DistributeByHash(dirs []string, hash string) (string, error) + func GetDir(location string, hash string) (string, error) + func NewBufferedResponseWrtier(w http.ResponseWriter) *bufferedResponseWriter + func RegisterCommonFlags(f []cli.Flag) []cli.Flag + func RegisterContentProberFlags(f []cli.Flag) []cli.Flag + func RegisterHLSFlags(f []cli.Flag) []cli.Flag + func RegisterWebFlags(f []cli.Flag) []cli.Flag + type ContentProbe struct + func NewContentProbe(c *cli.Context) *ContentProbe + func (s *ContentProbe) Get(input string, out string) (*cp.ProbeReply, error) + type HLS struct + func NewHLS(in string, probe *cp.ProbeReply, cfg *HLSConfig) *HLS + func (h *HLS) GetFFmpegParams(out string) ([]string, error) + func (s *HLS) MakeMasterPlaylist(out string) error + type HLSBuilder struct + func NewHLSBuilder(c *cli.Context) *HLSBuilder + func (s *HLSBuilder) Build(in string, probe *cp.ProbeReply) *HLS + type HLSConfig struct + type HLSStream struct + func NewHLSStream(index int, st StreamType, s *cp.Stream, r *Rendition, cfg *HLSConfig, ...) *HLSStream + func (h *HLSStream) GetCodecParams() []string + func (h *HLSStream) GetFFmpegParams(out string) []string + func (h *HLSStream) GetLanguage() string + func (h *HLSStream) GetName() string + func (h *HLSStream) GetPlaylistName() string + func (h *HLSStream) GetPlaylistPath(out string) string + func (h *HLSStream) GetSegmentExtension() string + func (h *HLSStream) GetSegmentFormat() string + func (h *HLSStream) MakeMasterPlaylist() string + type PlayerData struct + SourceURL string + type Rendition struct + DefRate uint + Height uint + Required bool + func (s *Rendition) Rate() uint + type StreamMode int + const MultiBitrate + const Online + type StreamType string + const Audio + const Subtitle + const Video + type TouchMap struct + func NewTouchMap() *TouchMap + func (s *TouchMap) Touch(path string) (bool, error) + type TranscodePool struct + func NewTranscodePool() *TranscodePool + func (s *TranscodePool) IsDone(out string) bool + func (s *TranscodePool) IsTranscoding(out string) bool + func (s *TranscodePool) Transcode(out string, h *HLS) error + type Transcoder struct + func NewTranscoder(out string, h *HLS) *Transcoder + func (s *Transcoder) Run() (err error) + func (s *Transcoder) Stop() error + type Web struct + func NewWeb(c *cli.Context, contentProbe *ContentProbe, hlsBuilder *HLSBuilder, ...) *Web + func (s *Web) Close() + func (s *Web) Serve() error