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

How to capture program output? #63

Open
vsalvino opened this issue Jan 25, 2023 · 0 comments
Open

How to capture program output? #63

vsalvino opened this issue Jan 25, 2023 · 0 comments

Comments

@vsalvino
Copy link

Hello - first of all THANK YOU for making this software, it is exactly what I have been looking for, a simple "swiss army knife" for transport streams. And it accurately reads and displays the ATSC broadcasts/info!

I'm wondering how to properly capture program output. Specifically I am looking to get the scan output in JSON, and the EPG guide in JSON. When running commands I can see the output in the console - but it appears to be going to stderr, mixed with lots of other debug/logging output.

For example, to get the EPG for channel 17:

dvbtee -C 17 -I 1 -E -j > out.json
# out.json is empty

dvbtee -C 17 -I 1 -E -j -ofile://out.json
# out.json is binary, perhaps a transport stream?

Same story with channel scanning:

dvbtee -s -C 17 -j > out.json
# out.json has the stdout, which is the plaintext version.

Any help would be appreciated. I'm assuming that various string processing of stderr is going to be required to parse the JSON?

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

No branches or pull requests

2 participants