mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-06 00:16:50 +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 {
|
func (t *Transcoder) Run(progress bool) <-chan error {
|
||||||
done := make(chan error)
|
done := make(chan error)
|
||||||
command := t.GetCommand()
|
command := t.GetCommand()
|
||||||
|
fmt.Println(command)
|
||||||
|
|
||||||
if !progress {
|
if !progress {
|
||||||
command = append([]string{"-nostats", "-loglevel", "0"}, command...)
|
command = append([]string{"-nostats", "-loglevel", "0"}, command...)
|
||||||
@@ -222,7 +223,9 @@ func (t *Transcoder) Run(progress bool) <-chan error {
|
|||||||
if t.mediafile.InputPipeCommand() != nil {
|
if t.mediafile.InputPipeCommand() != nil {
|
||||||
err = t.mediafile.InputPipeCommand().Run()
|
err = t.mediafile.InputPipeCommand().Run()
|
||||||
if err != nil {
|
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