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