Kebien
I am not trying to contradict you. As always I admire your knowledge & experience. But here is really simple situation that maybe you have not seen.
1rst. We are talking ONLY of this transponder as is the ONLY sample I had been given.
In this example ONLY Pid 0x1000 is encrypted with tanberg. The ECM is 0x387. ALL pids (0x1000 & 0x387) required for decryption are in plain view. So 1rst we do decryption of 0x1000. (No delays are involved here) Now you have Pid 0x1000 decrypted (FREE of any delay or encryption). Please notice this simple issue you seems have not understood. Except for internal tanberg decryiption. No CWs are involved.
So, second step you take TS binary file JUST with PID 0x1000 and decpasulate T2-MI. You end up with a NEW TS file. But since T2MI has been removed NEW TS contain now NEW Real FULL transponder with many Pids. See.
Click to enlarge
Here is where Selection of Channel to View come ups. We are inside Module and Main App does not Know what is inside decrypted/decasulated new FULL TS. In fact I suspect that if we returned to Main App All this new Pids a Huge conflict may apear as Main App will not know what to do as Is Only expecting a Vpid/Apid to show on screen.
So my limited ( almost 0%) expewrience in Modules allow me to think ONLY that Our New Module will have to Some how Select What Channel and return ONLY expected Vpid/Apid. And that this Vpid/Apid will have to be manually configured in our copied/transformed channel property I mention on previous post.
So all this confusion or not knowing how to implement got me to a simplier solution of not using Main APP and just Read directly from USB PCSAT, decrypt & decapsulate and stream new Channel to VLC. Just for Fun Learning.
Once a master in Modules here show us the proper implementation on a module then we could try to build a module. But once again ALL my past module for the most part failed. Well I have one exception a small Biss plugin I build for MDAPI. Base and translated from Delphi to C++/Mingw/wxwidgets.
Now I can really expect that master anubis_ir will do all this in a simple modules after a couple of minutes of work. As only the new t2-MI de-capsulation method is required and was given to us as free open source I already posted.
Now ON Linux if you read the read-me of open source T2-MI
is is only a simple PIPE command. author newspaperman suggest
Code:
dvbstream -o 4096 | ./t2-mi 4096 1 | vlc -- -
And we only have to add our decryption routine inside that pipe line.