wmcbrine / tivodecode-ng

The "next generation" of tivodecode, to handle transport streams. Not fully working yet.
Other
32 stars 10 forks source link

Match TS progress reporting to PS format #1

Closed mackworth closed 8 years ago

mackworth commented 8 years ago

First, thank you for building this! Due to Comcast's TS/MP4 migration, I'm moving from tivodecode to this version, and had a problem with error output. Currently, in one mode, I use the stderr output to determine how complete the processing is. Verbose mode (-v) puts out a progress line per packet:

    703355: stream_no: e0, block_no: 4
    707658: stream_no: bd, block_no: 1

where the first block is the number of bytes processed, so I can easily compute how far processing is complete.

When I use -v with tivodecode-ng, it puts out a much longer stream for each packet in both TS and PS, resulting in multi-gigabyte files. So in this pull request, I demoted the Packet debug info to VVerbose and added the same reporting <FilePosition> : stream_id: xx block_no: dd to the TS reporting.

If you prefer the packet info to be in Verbose mode, I could instead create an independent Progress option that would just report the data above. Let me know.