Skip to content

How to capture program output? #63

Description

@vsalvino

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions