Jump to content


Photo

Show popup for encrypted channel

question

  • Please log in to reply
26 replies to this topic

Re: Show popup for encrypted channel #21 Dimitrij

  • PLi® Core member
  • 10,023 posts

+338
Excellent

Posted 26 June 2013 - 18:20

Yes there is, see again Pieter's proposal...

Perhaps the problem is my bad English :) .
I do not understand how to get this information
(picture/sound).
How it should look like?
An example of a piece of code.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Show popup for encrypted channel #22 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 26 June 2013 - 18:42

The trick is to check whether the decoders virtual clock is advancing (the "pts"). Everytime a valid pes packet (that includes a time stamp) is processed by the decoder (video decoder, not descrambler), the decoder's virtual clock is updated. This sounds complex, but for a playing file (not "live"), it's simply the "progress bar". If you're playing a recording that has parts that are not decrypted, you will see the progress bar is not advancing until you reach a decrypted part. For live streams I guess this works the same way, only the information is not used for the progress bar.

 

If you can find where enigma finds the base for the playback progress bar, you have probably found exactly what you need.

 

There is a "proc" file called /proc/stb/vmpeg/0/pts, but this returns dummy values (on my vuo+solo2, at least), so it's useless.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Show popup for encrypted channel #23 Dimitrij

  • PLi® Core member
  • 10,023 posts

+338
Excellent

Posted 26 June 2013 - 21:32

The trick is to check whether the decoders virtual clock is advancing (the "pts"). Everytime a valid pes packet (that includes a time stamp) is processed by the decoder (video decoder, not descrambler), the decoder's virtual clock is updated. This sounds complex, but for a playing file (not "live"), it's simply the "progress bar". If you're playing a recording that has parts that are not decrypted, you will see the progress bar is not advancing until you reach a decrypted part. For live streams I guess this works the same way, only the information is not used for the progress bar.

 

If you can find where enigma finds the base for the playback progress bar, you have probably found exactly what you need.

 

There is a "proc" file called /proc/stb/vmpeg/0/pts, but this returns dummy values (on my vuo+solo2, at least), so it's useless.

Thank you, now understood...
It is unlikely that I will find this information in the modules enigma.
Can be considered the matter closed.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Show popup for encrypted channel #24 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 June 2013 - 22:08

There are enough places in enigma2 where the pts is polled... E.g. for subtitles. What you could do is poll it each second and check if it does progress one second with some margins. When it is within.limits then the channel decodes.

Edited by littlesat, 26 June 2013 - 22:11.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show popup for encrypted channel #25 Pr2

  • PLi® Contributor
  • 6,075 posts

+257
Excellent

Posted 27 June 2013 - 08:52

Hi,

 

When I display the second info bar, I can see if channel is scrambled or not, since I have the list of all the possible encryption system in Yellow, then when the channel is unscrambled the used system is turned to green.

 

So if the goal is just to detect if a channel is scrambled or not, why not use the same approach as the second info bar does?

On FTA channel the mention is also displayed.

 

So I guess you can reuse the same approach for your own need or do I miss something?

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Show popup for encrypted channel #26 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 27 June 2013 - 12:21

This is about a popup when the service cannot be descrambled...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show popup for encrypted channel #27 Pr2

  • PLi® Contributor
  • 6,075 posts

+257
Excellent

Posted 27 June 2013 - 13:35

I hope that this boring future pop up won't become standard in Openpli...  :D  since using the second info bar will already show you if the channel is scrambled or not.  ;)


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 




Also tagged with one or more of these keywords: question

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users