From ad27eb72f57ad0938ee8d78f9133670c93c75af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramon=20R=C3=BCttimann?= Date: Sat, 9 Nov 2019 12:59:32 +0100 Subject: [PATCH] show command --- transcoder/transcoder.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/transcoder/transcoder.go b/transcoder/transcoder.go index 9429a98..0e9ea5b 100644 --- a/transcoder/transcoder.go +++ b/transcoder/transcoder.go @@ -175,6 +175,7 @@ func (t *Transcoder) Initialize(inputPath string, outputPath string) error { func (t *Transcoder) Run(progress bool) <-chan error { done := make(chan error) command := t.GetCommand() + fmt.Println(command) if !progress { command = append([]string{"-nostats", "-loglevel", "0"}, command...) @@ -222,7 +223,9 @@ func (t *Transcoder) Run(progress bool) <-chan error { if t.mediafile.InputPipeCommand() != nil { err = t.mediafile.InputPipeCommand().Run() if err != nil { - err = fmt.Errorf("Failed execution of pipe-in command (%s) with %s", t.mediafile.InputPipeCommand().Args, err) + done <- fmt.Errorf("Failed execution of pipe-in command (%s) with %s", t.mediafile.InputPipeCommand().Args, err) + close(done) + return } }