Documentation ¶
Index ¶
- Constants
- Variables
- func Close()
- func DownloadFromMPDFile(manifestURL, pathToUse, outFilename string) error
- func FfmpegPath() (string, error)
- func LaunchWorkers(wg *sync.WaitGroup, stop <-chan bool)
- func Mux(outFilePath string, audioTracks, videoTracks, textTracks []*OutputTrack) error
- type BytesWriter
- type ContentType
- type OutputTrack
- type WJob
- type WJobType
- type Worker
Constants ¶
View Source
const UnknownString = "unknown"
Variables ¶
View Source
var ( TotalWorkers = 6 TmpFolder, _ = ioutil.TempDir("", "mpdgrabber") AudioDownloadEnabled = true VideoDownloadEnabled = true TextDownloadEnabled = true // inclusive filter, all languages are downloaded by default LangFilter = []string{} DlChan = make(chan *WJob) )
View Source
var Debug = false
Functions ¶
func DownloadFromMPDFile ¶
func FfmpegPath ¶
func LaunchWorkers ¶
LaunchWorkers starts download workers
func Mux ¶
func Mux(outFilePath string, audioTracks, videoTracks, textTracks []*OutputTrack) error
Types ¶
type BytesWriter ¶
func NewByteWriter ¶
func NewByteWriter(size int) *BytesWriter
type ContentType ¶
type ContentType int
const ( ContentTypeAudio ContentType = iota ContentTypeVideo ContentTypeText )
func (ContentType) String ¶
func (c ContentType) String() string
type OutputTrack ¶
Click to show internal directories.
Click to hide internal directories.