Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress compiled command #62

Open
SleepyPrince opened this issue Sep 10, 2022 · 2 comments
Open

Suppress compiled command #62

SleepyPrince opened this issue Sep 10, 2022 · 2 comments

Comments

@SleepyPrince
Copy link

SleepyPrince commented Sep 10, 2022

ffmpeg-go/run.go

Lines 252 to 269 in f39088d

func (s *Stream) Compile(options ...CompilationOption) *exec.Cmd {
args := s.GetArgs()
cmd := exec.CommandContext(s.Context, "ffmpeg", args...)
if a, ok := s.Context.Value("Stdin").(io.Reader); ok {
cmd.Stdin = a
}
if a, ok := s.Context.Value("Stdout").(io.Writer); ok {
cmd.Stdout = a
}
if a, ok := s.Context.Value("Stderr").(io.Writer); ok {
cmd.Stderr = a
}
for _, option := range options {
option(s, cmd)
}
log.Printf("compiled command: ffmpeg %s\n", strings.Join(args, " "))
return cmd
}

Is there a version of this that would suppress "compiled command" log?

@KevinVecchione
Copy link

Thank you for addressing this @Kirari04!

@u2takey I see that there hasn't been a tagged release in over a year. Any chance of a new release in the future? 🙏

@NoraWang12
Copy link

NoraWang12 commented Jul 31, 2023

Hi @u2takey, I have the same question. Could we have a new release to include the Silent() function change to suppress the log? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants