-
Notifications
You must be signed in to change notification settings - Fork 71
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
Make redirecting stdout/stderr optional #205
Comments
I had a little thought about this. An obvious implementation for this would be to pass stdin/stdout/stderr arguments to the OMXPlayer constructor, store them in attributes and use them in
To make it easier to write to files, you could also support passing a However, this does make me wonder when, if at all, file objects should be closed. If omxplayerwrapper opens a file (e.g. devnull), it should probably close it, but when? When the process exits? But what if another Another approach is to pass stdin/stderr/stdout directly to So, not so trivial as I had hoped (which kept me from implementing this now, also since I really should be getting other things done), but I wanted to at least remember and share my thoughts. |
Feature Request
Description
Currently, omxplayer is always started with stdout redirected to /dev/null and stderr left untouched (e.g. print to the calling process's stderr). This sometimes throws away valuable information including errors (which omxplayer currently prints to stdout.
It would be helpful if this redirection could be disabled, or redirected to a file or a pipe. Maybe the default should be changed to not redirect?
For completeness, allowing redirects of stderr would also be helpful.
Implementing this could be a matter of passing the stdin/stdout arguments from the OMXPlayer constructor all the way to subprocess.
The text was updated successfully, but these errors were encountered: