-
Notifications
You must be signed in to change notification settings - Fork 29
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
Control over log output #19
Comments
This is a great question. I looked into it in the past, but didn't see it through. This SO page has a few suggestions. Any thoughts on the API? We could do things in a |
When it's a nuisance I can imagine wanting to just buffer it all and maybe look at it later in case of a problem. But I can also see it being useful to want live streaming access to the log output as it arrives. In my case that would be nice; I'm updating my ray tracer to stream rendered frames to a movie as the rendering progresses, and it would be nice to have an ffmpeg output area in my One problem I foresee is that the log output may be intended for a terminal, i.e., it might contain escape sequences for coloring, and I wouldn't want any of that if I just wanted strings suitable for my own use. So another consideration would be whether the color escapes can be disabled: I recall seeing something about this at https://ffmpeg.org/ffmpeg.html (see |
This is starting to annoy me, too. But from a quick look here:
It is not obvious to me what is the scope where a call to If it's global, it might be enough to provide some very lightweight Haskell wrappers which allow the user of |
This doesn't do anything fancy; it just allows Haskell code to control the log level. Related to Issue #19
I added very basic support to at least turn the logging output off without losing |
I'm not using this library at the moment like I was when I requested this, but I would still enjoy having more control over the log output without having to redirect |
When I run programs using
ffmpeg-light
I getffmpeg
log output in the terminal. Is there any way to get more control over ffmpeg's log output? I'm using this in an application that also does curses-style terminal manipulation so any ffmpeg output is garbled. I could redirect stderr, but what I really want is to get more control over the library so I can use stderr for my own purposes.The text was updated successfully, but these errors were encountered: