add TS support
Status: Alpha
Brought to you by:
jeremyd2019
This is a preliminary implementation of TS support for tivodecode.
The only apparent problem :
Packet N of PID XX starts a new series of PES headers, which spill over into packet N+1 of PID XX, which has an encrypted payload.
The problem is how to cleanly make that "continuation" from packet N to N+1, such that the offset into Packet N+1 can be determined where the decrypt needs to start.
Sweet! I was meaning to look into this, but since from what I've read the functionality for TS streams is only available in AU/NZ so far, I have not had anything to test with. I thought there was a way to change the url and get a TS stream from a US tivo, but subsequent googling seems to have proved that wrong.
Unfortunately, being unable to test this, I can't just go and commit it. Before making a release, I compile the code on several OS/versions/architectures and run through a few simple tests to make sure everything is working properly. Without the ability to get a TS stream from my TiVo, and without wanting to have someone from AU/NZ share their MAK with me (which would be a violation of the ToS), I cannot run this code through my battery of OS/arch tests. So until such time as downloading TS streams is possible from a US TiVo (Series3), this patch will probably have to remain as "unofficial" and maintained by others (I see someone else has already posted a newer/cleaned up version).
To the original author of this patch:
I don't have any way of contacting you, since you submitted the patch anonymously. I didn't even know that sourceforge would let you do so. I have updated the tracker to disallow anonymous entries now. Please come back and leave a comment while logged in, so I can properly attribute the code if and when I do merge it.