mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-05 14:46:51 +08:00
show command
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user