Documentation ¶
Overview ¶
From https://github.com/iawia002/annie/blob/master/utils/ffmpeg.go
Index ¶
- func FileExist(fpath, fname string) bool
- func FilePath(fpath, fname, ext string) string
- func FileSize(filePath string) (int64, bool, error)
- func Get(url, cookies string, reqBody io.Reader) (string, error)
- func GetJson(url, cookies string, v interface{}) error
- func MKDir(fpath string)
- func MKDirs(paths ...string)
- func Md5(text string) string
- func MergeToMP4(paths []string, mergedFilePath string, filename string) error
- func MkDir(fpath string) error
- func NewWGProgressBar(wg *sync.WaitGroup) *mpb.Progress
- func Request(method, url, cookies string, reqBody io.Reader, header map[string]string) (*http.Response, error)
- func WriteFile(fpath, fname string, data []byte) error
- func WriteJson(fpath, fname string, data interface{}) error
- func WriteJsonS(fpath, fname string, data interface{}) error
- func WriteLockFile(fpath, fname string) error
- type Progress
- type ProgressData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeToMP4 ¶
MergeToMP4 merge video parts to MP4
func NewWGProgressBar ¶
func WriteJsonS ¶
func WriteLockFile ¶
Types ¶
type Progress ¶
type Progress struct { Title string `json:"title"` Status int `json:"status"` Message string `json:"message"` Progress ProgressData `json:"data"` // contains filtered or unexported fields }
Status: -1 Error 0 Not Started 1 Running 2 Finished
func NewProgress ¶
Click to show internal directories.
Click to hide internal directories.