mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-05 16:06:50 +08:00
Print nothing if no progress tracking is being done
This commit is contained in:
@@ -117,7 +117,9 @@ func (t *Transcoder) Initialize(inputPath string, outputPath string) (error) {
|
||||
func (t *Transcoder) Run(progress bool) <-chan error {
|
||||
done := make(chan error)
|
||||
command := t.GetCommand()
|
||||
|
||||
if !progress {
|
||||
command = append([]string{"-nostats", "-loglevel", "0"}, command...)
|
||||
}
|
||||
proc := exec.Command(t.configuration.FfmpegBin, command...)
|
||||
if progress {
|
||||
errStream, err := proc.StderrPipe()
|
||||
|
Reference in New Issue
Block a user