mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-04 15:42:41 +08:00
fix merge output; support error to stdout
This commit is contained in:
@@ -52,10 +52,7 @@ func (s *Stream) OverwriteOutput(stream *Stream) *Stream {
|
||||
}
|
||||
|
||||
// Include all given outputs in one ffmpeg command line
|
||||
func (s *Stream) MergeOutputs(streams ...*Stream) *Stream {
|
||||
if s.Type != "OutputStream" {
|
||||
panic("cannot merge outputs on non-OutputStream")
|
||||
}
|
||||
func MergeOutputs(streams ...*Stream) *Stream {
|
||||
return NewMergeOutputsNode("merge_output", streams).Stream("", "")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user