T2MI_decap

cayoenrique

Member
Messages
475
dvlajkovic ask me if I can update dale's T2MI_decap program. I believe original post started at https://www.sat-universe.com/index....uner-frontend-for-win7.299849/post-2036758851

dvlajkovic told me he uses the program but not why it is important. I do not do T2MI, well I still have no antenna. I guess because maybe the only Windows app that can do T2MI.

I am willing to look at it but not sure if I have the last sources. If you have it please upload and send me the link.

I know he posted a version that do Irdeto. But from what I remember uses osemu files and had some C++ stuff. I in the other hand I prefere C and OScam files.

Any help appreciated. While I wait, for now I will look on what I have.
 

dvlajkovic

Member
Messages
498
Unfortunately I've got no source files of your T2MI_decap program.
The upload links you used went down a long time ago.
 

cayoenrique

Member
Messages
475
I found my backup files. But as I play with them I do not remember what was the original sources. Can you tell me the date of the T2MI_decap.exe.
 

cayoenrique

Member
Messages
475
EnoSat
Thanks for the info. Any help is greatly appreciated.

But what dvlajkovic ask was to improved T2MI_decap.exe it was made to be executed in Windows. And accept a stream from File, Linux receiver or PCSAT. Then the program stream to VLC or similar or even again to a file.

In fact the sources used belonged to newspaperman. I could be wrong but believe he was one of the 1rst one if not the 1rst one to post such a C solution.
_https://github.com/newspaperman/t2-mi

Thanks.
 

cayoenrique

Member
Messages
475
dvlajkovic

I manually did decrypt CSA and then T2MI decaped and file can be view.
And yes original program did not have that option, it did Aberti, T2MI and Tangerg+T2MI.

Now I am having some stupidity issues with my development environment. You know wird errors that have no real reasons. All is because I work/develop under Linux and original files where build to be compiled Full in Windows.

Do not worry I know you want the final file to be windows exe. I need a couple of days to work my environment issues, so that I can finally update the sources.

So a few days. See you soon
 

cayoenrique

Member
Messages
475
dvlajkovic

You are giving me to much credit. I am not a real hacker I only follow people in Oscam. They are the ones that have the knowledge.
Only different I do, is to try help newbies learn the basics. And that I am willing to try new things even when we know it is so hard.

Solution is not impossible. I can run a ts Files by two step and I get the correct output File, Decript CSA then T2MI. But the program as is create errors if I try to do it at onces, Decript while decap!! And we need that function in order to do live ip streaming -> decoding -> VLC. I am busy today but maybe in the night. I may have to create another piped multitread like having two live program running one after the other. Also tested in real Win7, may be it function ok on it and is a wired Linux induced issue.

Now the funy part is Aberti do similar situation and work. It does decrypt CSA then decap in a diferent method than T2MI
 

frankviana

Registered
Messages
73
Hello! Good to see T2-MI development.

Here in America we have some transponders. I want to see my osmini4k working astra-sm, but, at the moment, don't work. Zgemma h9s/se and vuzero/zero 4k work fine, including tandberg+oscam.

Thanks and I'm waiting for good news for Windows or Linux development.

Frank
================
 

cayoenrique

Member
Messages
475
Listen I am an old guy some simple mobility problems with very little income. The truth is that I do not have any antenna at the moment nor had purchase any of those nice Linux or android equipment. Why I say this? because my experience with latest E2/Android is very limited. So I can easily say something that is wrong or not feasible.
I have no knowledge of ASTRA.

Decaping a T2MI Pid to create a new Full transponder is a simple task. Just see _https://github.com/newspaperman/t2-mi
So asking a E2/Android box to stream a Pid is simple, building a small program to decode unencrypted T2MI should be no hard to do. Finally asking VLC or similar to watch the stream it is also something any Android should do. The limited Rom memory of E2 may not allow to do VLC viewing.

Problem rises if the PID is encrypted. Normally a program channel has 1 to 3 pids encrypted. So resources necessaries to decrypt are easy.

But in T2MI that single pid pack a new FULL hiden transponder with many channels each with various pids. See the different. So decryption what it seems a single PID is a HIGH resource consumption as that PID hold inside a hidden transponder!!! That I recall in a PC we consume 10-20% of CPU for decryption depending on how fast PC is.

I remember see various other programs that are use for OTT video decoding. And I know SU lost many old files.
What I can do now is to Post a new Link of the original Dale's T2MI-decap so that those of you that think it is useful can try it for now while I update for the new request made by dvlajkovic. Most of my files always contain sources. Thank God dale did too supply T2MI-decap with sources you can look.

We only have to thanks @newspaperman for hes nice github post on T2MI decryption where all is base.
 
Last edited:

cayoenrique

Member
Messages
475
Here are the sources and a binary of what I found from dale's original post.

T2MI_decap-030-058.zip (674.17 KB)
Code:
https://workupload.com/file/Py5VCpFULec

password
Code:
www.sat-universe.com


========================
Ahaaaa

I found on that thread that xosef1234 made a module for dvbdream!! You can find that post in https://www.sat-universe.com/index....uner-frontend-for-win7.299849/post-2036761150

I never tested that but may be it works for you.
 
Last edited:

Psilos2003

Registered
Messages
52
So decryption what it seems a single PID is a HIGH resource consumption as that PID hold inside a hidden transponder!!! That I recall in a PC we consume 10-20% of CPU for decryption depending on how fast PC is.
And this is why I think most video is encrypted with CSA (the question that was asked in the other thread); because it's not done with a processor executing software (that can be programmed differently) but with dedicated hardware that is only designed to decrypt one or at most two different encryption types.

On another note I had compiled newspaperman's source with cygwin in the past and it works fine if the stream has no errors but as soon as there is a problem with the reception it crashes.
 

cayoenrique

Member
Messages
475
Psilos2003

And this is why I think most video is encrypted with CSA.....
dedicated hardware that is only designed to decrypt one or at most two different encryption types.

YESSSSS that is the correct way to do it inside a receiver BOX. Some place in its demodulation hardware there is solutions to decrypt one or various PIDS with DES &/or CSA.
If you have have knowledge on how to send that Key to the demodulation Hardware then it will do the job freeing you ARM CPU. But usually this require knowledge/software of the Development Software made by the manufacturer. People at OpenPly or similar may have this knowledge. Their normal firmware sends the keys to hardware.

...but as soon as there is a problem with the reception it crashes
I have not used ASTRA I can easily assume is a BIGGGGG Package. And I can easily guess it handles very well and do not crash....

Now see the few ( little to nothing ) lines inside newspaperman's source. Just the basic to do the T2MI job. So when an error show up it generate an alarm that make it crash. Our job then is to add the necessary code to catch those exceptions and we decide what we do with them!!! As we do not have much knowledge, the easy solution is to stop decamping and through that line to the trashcan. Then wait for new T2MI beginning to start and continue. This may generates more errors or execptions as now the Video or Audio Pid its self is incomplete.!!!

See it now our Job to Improve it. Once we find a little solution we can send newspaperman's github a request to add it or just post its solution so that other can used it. That my friend is what I fail to do. HE HE HE. I like to be anonymous and github requires you to signing with a good email like google.
 
Last edited:

cayoenrique

Member
Messages
475
@Psilos2003 & @frankviana

AHHHHHHh
Most of my post do not receive so many responses.. I see now the Interest in this tread. A few threads bellow it is "Scrambled T2-MI - Astra 4A at 4.8°E".

Remember I said "My E2/Android is very limited and I can be wrong"

Talking without knowing as I can be wrong. I think some one could use OSCAM to include T2MI.

Here are what I found.

If you go to 5.1. Using the Digital TV Framework

You can read “The /dev/dvb/adapter0/ca0 is used to decode encrypted channels. “

So you take your E2/Android Box and do ls -lR /dev/dvb or ls -lR /devdvb/adapter0 You get something similar to
Code:
crw-rw----+ 1 root video 212, 3 mag 13 10:41 ca0
crw-rw----+ 1 root video 212, 0 mag 13 10:41 demux0
crw-rw----+ 1 root video 212, 1 mag 13 10:41 dvr0
crw-rw----+ 1 root video 212, 4 mag 13 10:41 frontend0
crw-rw----+ 1 root video 212, 5 mag 13 10:41 frontend1
crw-rw----+ 1 root video 212, 2 mag 13 10:41 net0

If you see “ /dev/dvb/adapter0/ca0” that is the Hardware Decoder exposed to Linux.

It seems to me that Oscam hackers did rehabilitated this feature when the DES powervu came across soo many years ago. I can see in Oscam

Code:
43	#define BOXTYPE_DUCKBOX 2
44	#define BOXTYPE_UFS910  3
45	#define BOXTYPE_DBOX2   4
46	#define BOXTYPE_IPBOX   5
47	#define BOXTYPE_IPBOX_PMT   6
48	#define BOXTYPE_DM7000  7
49	#define BOXTYPE_QBOXHD  8
50	#define BOXTYPE_COOLSTREAM  9
51	#define BOXTYPE_NEUMO   10
52	#define BOXTYPE_PC      11
53	#define BOXTYPE_PC_NODMX    12

and even here in SU we can find threads talking about this, see unimportant sample.
https://www.sat-universe.com/index....cant-open-device-dev-dvb-adapter0-ca0.308945/

With my limited knowledge of E2/Android and Oscam it seems possible to send a command to Hardware to:
1) Tune a Transponder
2) Filter single T2MI PID ( encrypted at this point)
3) set extra Channel List info and their Keys in Oscam, I guess we could grab lists from posted for Astra
4) Ask Oscam to decode PID via Hardware CA
5) Prepare a simple T2MI-decap to decap and create new transponder.

At this point we should have all or new channels ready to be viewed

Now why pass all this work? @frankviana said his osmini4k do not work with astra
 
Last edited:

cayoenrique

Member
Messages
475
@EnoSat & @frankviana
Then @frankviana should tell us why he can not install/execute ASTRA-SM in his osmini4k. Just tell us the problem to understand your particuar situation. If you want Help in Edison, then Please Open a New thread in proper SU area, then post the link here for us to follow.

To all
Then in general I do not see why we can not prepare a Custom Oscam Build that can ADD T2MI after decryption, ONLY for a special list of channels we put in a separate configuration file. I think this simple modification may work as a ultimate solution if you can not run ASTRA-SM.

Regards the main objective of the thread. I already said I am some what busy this week. But I am working on spare time. At the moment I am redoing a little 1rst. I do not like the Osemu part. Instead I will reuse my modified old Oscam files from old my ostsdec . This is good for me and good for the ones that are starting. Learn Oscam is the way to go. Then to prevent T2MI to crash on me, I will create a new independent thread for T2MI. I expect this trick will stop T2MI from loosing/corrupting data. So be aware I am working on it.

@Me2019H
I am busy at the moment on your project of none BISS CAS. I guess you could look at this T2MI as something different to Plain BISS. So you can learn here too. A soon as I am finish here I will continue with you on how to hack or brute-force an ECM. Hope you understand, to little time for all issues.
 
Last edited:

cayoenrique

Member
Messages
475
@EnoSat
Why you say "has been uncoded" only for 9.0°E 12226V/12303V?

I do not have myself antenna but I believe the 1rst two you mention Keys are available..

For 9.0°E 12226V/12303V I love if you provide me with a small log for me to test. Again 50MEG of Full transponder is optimal. But I will acept anything you can provide.

Then I recall from an thread of drhans created for tanberg one, some people mention:

40.0E_3566_L not Encripted

And this one I have no Idea
26W 12520 V,27000,2/3,Dvb-S2/QPSK,ACM,Single-Data,
26W 12560 V,27000,2/3,Dvb-S2/QPSK,ACM,Single-Data,

Buy the way if anyone want to add to the list feel free to post. In the event there is one that we do not have the key just log PID or transponder and we try to have a look.

I will be taking a nap for a few hours,then I will see if I can continue work on program.
 

frankviana

Registered
Messages
73
@EnoSat & @frankviana
Then @frankviana should tell us why he can not install/execute ASTRA-SM in his osmini4k. Just tell us the problem to understand your particuar situation. If you want Help in Edison, then Please Open a New thread in proper SU area, then post the link here for us to follow.

To all
Then in general I do not see why we can not prepare a Custom Oscam Build that can ADD T2MI after decryption, ONLY for a special list of channels we put in a separate configuration file. I think this simple modification may work as a ultimate solution if you can not run ASTRA-SM.

Regards the main objective of the thread. I already said I am some what busy this week. But I am working on spare time. At the moment I am redoing a little 1rst. I do not like the Osemu part. Instead I will reuse my modified old Oscam files from old my ostsdec . This is good for me and good for the ones that are starting. Learn Oscam is the way to go. Then to prevent T2MI to crash on me, I will create a new independent thread for T2MI. I expect this trick will stop T2MI from loosing/corrupting data. So be aware I am working on it.

@Me2019H
I am busy at the moment on your project of none BISS CAS. I guess you could look at this T2MI as something different to Plain BISS. So you can learn here too. A soon as I am finish here I will continue with you on how to hack or brute-force an ECM. Hope you understand, to little time for all issues.

Hello friends.

I don't know if it is a specific problem of Edision drivers, but I think the binary is built the same way in ZGMMA H9S -If and works very well with Oscam and Tandberg (SES 6 - 40.5W).

Even with the same Decap mechanism via drivers, Edision should do open picture just as the h9s/SE/VUZERO4K.

root@osmini4k:~# cd /usr/bin
root@osmini4k:/usr/bin# killall astra
root@osmini4k:/usr/bin# astra --analyze "t2mi://#t2mi_pid=4096&t2mi_input=http://127.0.0.1:8001/1:0:1:320:1:3001:C7A0000:0:0:0:"
Aug 10 19:38:09: INFO: Starting Astra SM 0.2
Aug 10 19:38:09: INFO: [t2mi/analyze] L1-current: PLP 0 (Data Type 1), group 1 (*)
Aug 10 19:38:09: INFO: [t2mi/analyze] L1-current: PLP 1 (Data Type 1), group 1
Aug 10 19:38:09: INFO: [t2mi/analyze] selected data PLP 0 (auto)
Aug 10 19:38:09: INFO: PAT: tsid: 10
Aug 10 19:38:09: INFO: PAT: pid: 16 NIT
Aug 10 19:38:09: INFO: PAT: pid: 100 PMT pnr: 2
Aug 10 19:38:09: INFO: PAT: pid: 300 PMT pnr: 3
Aug 10 19:38:09: INFO: PAT: pid: 600 PMT pnr: 5
Aug 10 19:38:09: INFO: PAT: pid: 400 PMT pnr: 6
Aug 10 19:38:09: INFO: PAT: pid: 800 PMT pnr: 7
Aug 10 19:38:09: INFO: PAT: pid: 1080 PMT pnr: 8
Aug 10 19:38:09: INFO: PAT: crc32: 0x4DA19114
Aug 10 19:38:09: INFO: PMT: pnr: 3
Aug 10 19:38:09: INFO: PMT: pid: 301 PCR
Aug 10 19:38:09: INFO: PMT: descriptor: 0x0C0480B48168
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 8253
Aug 10 19:38:09: INFO: VIDEO: pid: 301 type: MPEG-4 AVC/H.264, ISO/IEC 14496-10 (0x1B)
Aug 10 19:38:09: INFO: VIDEO: Stream ID: 1
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x020322445F
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x060102
Aug 10 19:38:09: INFO: VIDEO: Maximum bitrate: 8284
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x28046400283F
Aug 10 19:38:09: INFO: AUDIO: pid: 302 type: MPEG-1 audio, ISO/IEC 11172-3 (0x03)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 2
Aug 10 19:38:09: INFO: AUDIO: Language: eng
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 260
Aug 10 19:38:09: INFO: PMT: crc32: 0xB0570476
Aug 10 19:38:09: INFO: PMT: pnr: 8
Aug 10 19:38:09: INFO: PMT: pid: 8191 PCR
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 321
Aug 10 19:38:09: INFO: AUDIO: pid: 803 type: MPEG-2 audio, ISO/IEC 13818-3 (0x04)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 1
Aug 10 19:38:09: INFO: AUDIO: Language: spa
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 329
Aug 10 19:38:09: INFO: PMT: crc32: 0xE9571E52
Aug 10 19:38:09: INFO: PMT: pnr: 5
Aug 10 19:38:09: INFO: PMT: pid: 8191 PCR
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 121
Aug 10 19:38:09: INFO: AUDIO: pid: 602 type: MPEG-2 audio, ISO/IEC 13818-3 (0x04)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 1
Aug 10 19:38:09: INFO: AUDIO: Language: spa
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 124
Aug 10 19:38:09: INFO: PMT: crc32: 0x145517CC
Aug 10 19:38:09: INFO: PMT: pnr: 7
Aug 10 19:38:09: INFO: PMT: pid: 8191 PCR
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 161
Aug 10 19:38:09: INFO: AUDIO: pid: 802 type: MPEG-1 audio, ISO/IEC 11172-3 (0x03)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 1
Aug 10 19:38:09: INFO: AUDIO: Language: eng
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 166
Aug 10 19:38:09: INFO: PMT: crc32: 0x89C32BF2
Aug 10 19:38:09: INFO: PMT: pnr: 6
Aug 10 19:38:09: INFO: PMT: pid: 8191 PCR
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 316
Aug 10 19:38:09: INFO: AUDIO: pid: 402 type: MPEG-2 audio, ISO/IEC 13818-3 (0x04)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 1
Aug 10 19:38:09: INFO: AUDIO: Language: spa
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 324
Aug 10 19:38:09: INFO: PMT: crc32: 0xCC007D9E
Aug 10 19:38:09: INFO: PMT: pnr: 2
Aug 10 19:38:09: INFO: PMT: pid: 101 PCR
Aug 10 19:38:09: INFO: PMT: descriptor: 0x0C0480B48168
Aug 10 19:38:09: INFO: PMT: Maximum bitrate: 21631
Aug 10 19:38:09: INFO: VIDEO: pid: 101 type: MPEG-4 AVC/H.264, ISO/IEC 14496-10 (0x1B)
Aug 10 19:38:09: INFO: VIDEO: Stream ID: 1
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x020322445F
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x060102
Aug 10 19:38:09: INFO: VIDEO: Maximum bitrate: 20545
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x28046400283F
Aug 10 19:38:09: INFO: VIDEO: descriptor: 0x8607E1737061C1BFFF
Aug 10 19:38:09: INFO: AUDIO: pid: 102 type: MPEG-1 audio, ISO/IEC 11172-3 (0x03)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 2
Aug 10 19:38:09: INFO: AUDIO: Language: eng
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 677
Aug 10 19:38:09: INFO: AUDIO: pid: 103 type: MPEG-1 audio, ISO/IEC 11172-3 (0x03)
Aug 10 19:38:09: INFO: AUDIO: Stream ID: 3
Aug 10 19:38:09: INFO: AUDIO: Language: eng
Aug 10 19:38:09: INFO: AUDIO: descriptor: 0x030167
Aug 10 19:38:09: INFO: AUDIO: Maximum bitrate: 355
Aug 10 19:38:09: INFO: SUB: pid: 1024 type: Private PES, ISO/IEC 13818-1 (0x06)
Aug 10 19:38:09: INFO: SUB: Stream ID: 4
Aug 10 19:38:09: INFO: SUB: Maximum bitrate: 625
Aug 10 19:38:09: INFO: SUB: descriptor: 0x59087370611400020002
Aug 10 19:38:09: INFO: PMT: crc32: 0xEB301DDB
Aug 10 19:38:10: INFO: SDT: tsid: 10
Aug 10 19:38:10: INFO: SDT: sid: 2
Aug 10 19:38:10: INFO: SDT: Service: RCN HD
Aug 10 19:38:10: INFO: SDT: Provider: RCNTV
Aug 10 19:38:10: INFO: SDT: sid: 3
Aug 10 19:38:10: INFO: SDT: Service: RCN HD 2
Aug 10 19:38:10: INFO: SDT: Provider: RCN TELEVISION
Aug 10 19:38:10: INFO: SDT: sid: 5
Aug 10 19:38:10: INFO: SDT: Service: RCN LA RADIO
Aug 10 19:38:10: INFO: SDT: Provider: RCN TELEVISION
Aug 10 19:38:10: INFO: SDT: sid: 6
Aug 10 19:38:10: INFO: SDT: Service: LA FM RADIO
Aug 10 19:38:10: INFO: SDT: Provider: RCN TELEVISION
Aug 10 19:38:10: INFO: SDT: sid: 7
Aug 10 19:38:10: INFO: SDT: Service: RCN RADIO UNO
Aug 10 19:38:10: INFO: SDT: Provider: RCN TELEVISION
Aug 10 19:38:10: INFO: SDT: sid: 8
Aug 10 19:38:10: INFO: SDT: Service: LA MEGA
Aug 10 19:38:10: INFO: SDT: Provider: RCN
Aug 10 19:38:10: INFO: SDT: crc32: 0x19D90C20
Aug 10 19:38:10: INFO: Bitrate: 11756 Kbit/s
^CAug 10 19:38:11: INFO: [main] shutting down
root@osmini4k:/usr/bin#
 
Last edited:

frankviana

Registered
Messages
73
astra.conf

=========================================================================

#!/usr/bin/astra
log.set({ stdout = false, debug = false, syslog = "astra", })

f3797plp3797 = make_t2mi_decap({
name = "T2-MI CARACOL",
input = "http://127.0.0.1:8001/1:0:1:320:1:1:BCB0ED5:0:0:0:",
plp = 0,
pnr = 0,
pid = 4096,
})

f4020plp4096 = make_t2mi_decap({
name = "T2MI_RCN",
input = "http://127.0.0.1:8001/1:0:1:320:1:3001:C7A0000:0:0:0:",
plp = 0,
pnr = 0,
pid = 4096,
})

make_channel({
name = "CARACOL", input = { "t2mi://f3797plp3797", },
output = { "http://0.0.0.0:9999/tdt/tdt3797", },
})

make_channel({
name = "RCN", input = { "t2mi://f4020plp4096", },
output = { "http://0.0.0.0:9999/tdt/tdt4096", },
})
 
Top