Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_FFMPEG_COMMAND_STRING = "ffmpeg -hide_banner -i %s -s %s -vf fps=15/1 -f rawvideo -c:v rawvideo -pix_fmt rgb24 -" // Dryrun is for getting total frames FFMPEG_DRYRUN = "ffmpeg -hide_banner -i %s -s 1x1 -vf fps=15/1 -f rawvideo -c:v rawvideo -pix_fmt rgb24 -" FFMPEG_IMAGE_SIZE = "ffmpeg -i %s -f null -" )
Variables ¶
View Source
var LoaderMap = make(map[string]func(...string) MediaLoader)
Functions ¶
Types ¶
type FFMPEG ¶
type FFMPEG struct {
// contains filtered or unexported fields
}
type FFMPEGWorkerPool ¶
type FFMPEGWorkerPool struct {
// contains filtered or unexported fields
}
func NewFFMPEGWorkerPool ¶
func NewFFMPEGWorkerPool(bufsize int, poolsize int, jobFn func(*FFMPEGJob)) *FFMPEGWorkerPool
func (*FFMPEGWorkerPool) Acquire ¶
func (wp *FFMPEGWorkerPool) Acquire() (*FFMPEGJob, chan<- *FFMPEGJob)
func (*FFMPEGWorkerPool) Wait ¶
func (wp *FFMPEGWorkerPool) Wait()
type GoimageLoader ¶
type GoimageLoader struct { }
type MediaLoader ¶
type MediaLoader interface { Load(filename string, size image.Point) ([]image.Image, error) ImageSize(filename string) (image.Point, error) }
func NewFFMPEG ¶
func NewFFMPEG(options ...string) MediaLoader
func NewGoimage ¶
func NewGoimage(options ...string) MediaLoader
Click to show internal directories.
Click to hide internal directories.