mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-04 23:52:42 +08:00
U In version 1.19, ffmpeg in the current directory cannot be used automatically, and the path of ffmpeg can be customized
This commit is contained in:
22
node.go
22
node.go
@@ -10,11 +10,12 @@ import (
|
||||
)
|
||||
|
||||
type Stream struct {
|
||||
Node *Node
|
||||
Label Label
|
||||
Selector Selector
|
||||
Type string
|
||||
Context context.Context
|
||||
Node *Node
|
||||
Label Label
|
||||
Selector Selector
|
||||
Type string
|
||||
FfmpegPath string
|
||||
Context context.Context
|
||||
}
|
||||
|
||||
type RunHook struct {
|
||||
@@ -27,11 +28,12 @@ type RunHook struct {
|
||||
|
||||
func NewStream(node *Node, streamType string, label Label, selector Selector) *Stream {
|
||||
return &Stream{
|
||||
Node: node,
|
||||
Label: label,
|
||||
Selector: selector,
|
||||
Type: streamType,
|
||||
Context: context.Background(),
|
||||
Node: node,
|
||||
Label: label,
|
||||
Selector: selector,
|
||||
Type: streamType,
|
||||
FfmpegPath: "ffmpeg",
|
||||
Context: context.Background(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user