mirror of
https://github.com/fxkt-tech/liv
synced 2025-09-26 20:11:20 +08:00
26 lines
448 B
Go
26 lines
448 B
Go
package liv
|
|
|
|
import (
|
|
"github.com/fxkt-tech/liv/ffmpeg"
|
|
"github.com/fxkt-tech/liv/ffprobe"
|
|
)
|
|
|
|
type Option func(*options)
|
|
|
|
type options struct {
|
|
ffmpegOpts []ffmpeg.Option
|
|
ffprobeOpts []ffprobe.Option
|
|
}
|
|
|
|
func FFmpegOptions(ffmpegOpts ...ffmpeg.Option) Option {
|
|
return func(o *options) {
|
|
o.ffmpegOpts = ffmpegOpts
|
|
}
|
|
}
|
|
|
|
func FFprobeOptions(ffprobeOpts ...ffprobe.Option) Option {
|
|
return func(o *options) {
|
|
o.ffprobeOpts = ffprobeOpts
|
|
}
|
|
}
|