ffmpeg: use one command to stream video/audio
This commit is contained in:
@@ -35,11 +35,8 @@ func main() {
|
||||
ustreamer.Start()
|
||||
//go ustreamer.Watch()
|
||||
} else if cfg.Stream.Source == config.StreamSourceH264 {
|
||||
ffmpeg := stream.InitFFmpeg(cfg.Video.Path, cfg.Video.FormatArgs())
|
||||
ffmpeg.Start()
|
||||
|
||||
audio := stream.InitPipedCmd(config.Get().Audio)
|
||||
audio.Start()
|
||||
v := stream.InitFFmpeg()
|
||||
v.Start()
|
||||
} else {
|
||||
log.Fatalf("unsupported stream source type: %v", cfg.Stream.Source)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user