mptsd
mptsd copied to clipboard
Output PIPE | File
Hi @gfto ,
In order to support PIPE output (instead of only Network UDP output), I suggest to merge the changes from @gvangool : https://github.com/gvangool/mptsd/commits/master
His work includes support for file support when disabling network output. Using in this way, it's possible to pipe the output to other tools, as for example: mptsd -N -W - | ffmpeg
You found it interesting?
If you're interested, I'll rebase it onto master and make a pull request.
Hi @gvangool ,
I'm really interested. Just only one comment: You test it with stdout? That's with -W -
.
Thank you for your contribution!
I modified it for friends because they weren't using the network part (only file output).
I'm guessing it currently doesn't support the -
shortcut for /dev/stdout
.
I'm guessing it currently doesn't support the - shortcut for
/dev/stdout
.
Ok. Well, in any case it will be easy to include after the rebase. Thank you!
I've created to pull requests: #25 and #26.
They will have a merge conflict on the getopt
line. I'll fix it when either one gets merged.
@lars18th: I have a commit for the stdout
option, but would still need to test it out.
@lars18th check gvangool/mptsd@issue-24. It combines both pull requests and 1 new change (f36f5da042bf4e076f1ac3fccefa5a2206d162f0).
Hi @gvangool ,
Thank you! I hope @gfto will agree and commit them soon... In any case, I'll check and merge them with my repo.
Regards. :+1:
Hi @gvangool ,
Thank you for the https://github.com/gfto/mptsd/commit/f36f5da042bf4e076f1ac3fccefa5a2206d162f0. However, it doesn't work because even using the -q
(Quiet mode) parameter the program continues writing text in the STDOUT.
So, only disabling all log with -q
and writing to STDERR in case of it, will be possible to use it with PIPEs.
Regards.
Hi @gvangool ,
I created this PR https://github.com/gvangool/mptsd/pull/2 because with your "disable network output" solution the program raises an error. Please, merge it to your "issue-24" branch.
I'm working on fixing the STDOUT output... at time, it doesn't work.
This is implemented in #37 .