Jump to content


Photo

Picons by 'Service name'.


  • Please log in to reply
97 replies to this topic

Re: Picons by 'Service name'. #41 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 22 December 2014 - 23:24

That means another if not exists then....

 

The performance is always the best and most unique when using references...


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


Re: Picons by 'Service name'. #42 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 22 December 2014 - 23:58

I agree but when you can get several satellites that all broadcast the same channel or even several provider that broadcast the same channel on different TP,  it is good to have only one picon for all of them.

Is really another if not exists a real problem... it will only reach the last one when picon doesn't exist otherwhise it won't go that deep in the test.  ;)


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: Picons by 'Service name'. #43 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 23 December 2014 - 00:52

Pr2, there are already at least 20 picon set already produced in this format that I know of, and probably a lot more.

 

What you are asking is to limit the names to an even narrower range. I for one want to be able to select the correct picon for the channel (SD or HD) and not be forced to use just one. That means creating an extra fallback (which means even more overhead) for people that want to have a reduced set of picons. Are you really so tight for space that you haven't got room for a full set of picons. And btw one of the main points of this was to be able to avoid using symlinks and create a picon set that even a typical Windows user could produce and to be able to use it directly from a FAT32 formatted USB stick with absolutely no knowledge of Linux, file systems, service references, etc.


Edited by Huevos, 23 December 2014 - 00:53.


Re: Picons by 'Service name'. #44 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 23 December 2014 - 12:24

Yes I was talking of an extra fallback so people that have the hd picon available than it is used and if the hd picon name is not there it can try to use the sd one.

This is not a question of space, I have no problem with it, in the past I have all my picons with full service reference, I was just thinking that it was a smart approach drop the hd reference in the channel name when no picon match the "hd" name. Just to make thing even more smart and user friendly. I don't think that this change will be that CPU/IO intensive...


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: Picons by 'Service name'. #45 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 23 December 2014 - 13:56

it is good to have only one picon for all of them.

What is bad about the short link system?


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


Re: Picons by 'Service name'. #46 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 23 December 2014 - 14:47

This sentence means that it is good to have only once the picon name:   channelname.png n the picon folder for all the satellites.

There is nothing wrong with symlink... except for people using a FAT32 filesystem on therer USB stick whch is not my case.

But OK I understand that you don't want to have this improvement implemented so let close the discussion here.


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: Picons by 'Service name'. #47 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 23 December 2014 - 15:33

I'm only talking that the ...hd or ..hd not discussion is something 'wierd'.....

 

But I agree this is an easy implementation to do....

if not pngname: # picon by channel name
    name = ServiceReference(serviceName).getServiceName()
    name = unicodedata.normalize('NFKD', unicode(name, 'utf_8')).encode('ASCII', 'ignore')
    name = re.sub('[^a-z0-9]', '', name.replace('&', 'and').replace('+', 'plus').replace('*', 'star').lower())
    if name:
-       pngname = findPicon(name)
+       pngname = findPicon(name) or name.endswith('hd') and findPicon(name)[:-2]

Edited by littlesat, 23 December 2014 - 15:46.

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


Re: Picons by 'Service name'. #48 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 23 December 2014 - 16:59

What may be interesting, some services may be your local cable TV operator, same as the ones broadcast over satellite, but the service reference will be different and there will probably no picon sets that cover your local cable TV operator. For that situation, some fallbacks might be preferrable (and indeed also try with "[-_ ]*HD[-_ ]*" removed, I think it's a good idea).


* 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: Picons by 'Service name'. #49 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 23 December 2014 - 17:31

But 'service name picons' don't use service-reference at all.



Re: Picons by 'Service name'. #50 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 23 December 2014 - 21:19

@Erik,

 

Thanks for your support; and even on satellite you can have the same situation, that's why I switch from service-reference to service-name for my picons more easy to manage. And if logo changed we change 1 file and the logo is then changed for all providers.

 

@SatKierkerd

 

Yes we are not talking of service-reference at all here but of picon based on service name, Erik just gives another example between sat and cable where it can also be usefull to try the search without the HD at the end.


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: Picons by 'Service name'. #51 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 23 December 2014 - 22:23

Sounds like we should search for service name before we search for service reference....

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


Re: Picons by 'Service name'. #52 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 24 December 2014 - 04:42

Sounds like we should search for service name before we search for service reference....

No, bad idea as explained earlier.

 

Here is an example. UK ITV has more than 10 regions. But the service name is always ITV. In this case we need to use service ref picons with priority, so the correct picon is selected. No way to do it with service name. But we also have a generic picon with itv.png as the filename that catches any new unknown ITV region or that covers any change of service ref.



Re: Picons by 'Service name'. #53 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 24 December 2014 - 04:46

What may be interesting, some services may be your local cable TV operator, same as the ones broadcast over satellite, but the service reference will be different and there will probably no picon sets that cover your local cable TV operator. For that situation, some fallbacks might be preferrable (and indeed also try with "[-_ ]*HD[-_ ]*" removed, I think it's a good idea).

Erik, there are only alphanumeric ASCII characters used in SNP filenames.



Re: Picons by 'Service name'. #54 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 24 December 2014 - 04:49

 

Sounds like we should search for service name before we search for service reference....

No, bad idea as explained earlier.

 

Here is an example. UK ITV has more than 10 regions. But the service name is always ITV. In this case we need to use service ref picons with priority, so the correct picon is selected. No way to do it with service name. But we also have a generic picon with itv.png as the filename that catches any new unknown ITV region or that covers any change of service ref.

 

Basically service ref picon needs to take priority so that it can be used where there is an unfavourable collision with filenames.



Re: Picons by 'Service name'. #55 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 December 2014 - 08:57

When someone posted on github good picon sets without any complications this can indeed be helpfull I suggest... It would also be helpfull to get the scripts to create good background etc to the picons (I do not like to draw a background seperately).And indeed it works with any provider as long the names are the same.... And spaces and change characters are removed so the chance to find a fix increases...


Edited by littlesat, 24 December 2014 - 08:58.

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


Re: Picons by 'Service name'. #56 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 24 December 2014 - 10:14

I agree with Huevos, service reference should remains the 1st choice since this is the only way to have a real unique ID and so it is the only way to solve conflict in channel names/picons.

 

About the background personnally I would prefer to create a full bunch of empty backgrounds and then apply the TV channel picon with transparent background on top of it.

This is the more flexible way of working.

 

Of course for people that want very specific picons with some light effect on it, they select no background and then the TV channel picon needs to include the background and the effect.

But this is not really the scope of this thread.  ;)


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: Picons by 'Service name'. #57 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 December 2014 - 10:37


I would prefer to create a full bunch of empty backgrounds and then apply the TV channel picon with transparent background on top of it.

This is the more flexible way of working.

 

This means that you in fact need to render picons twice (background, than the transparent icon).... And you need config stuff for the background... etc... etc...

 

I prefer complete sets with backgrounds included.... The set you loaded decides the background you get... In fact the rendering is done where you generate the picon... No extra setting stuff is required at all...!!!

 

How easy can it be?

 


this is the only way to have a real unique ID 

 

That was why we choose this method years ago... at that time IHAD did use service names and they had exactly this issue....


Edited by littlesat, 24 December 2014 - 10:45.

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


Re: Picons by 'Service name'. #58 arn354

  • Senior Member
  • 146 posts

+12
Neutral

Posted 24 December 2014 - 11:12

When someone posted on github good picon sets without any complications this can indeed be helpfull I suggest... It would also be helpfull to get the scripts to create good background etc to the picons (I do not like to draw a background seperately).And indeed it works with any provider as long the names are the same.... And spaces and change characters are removed so the chance to find a fix increases...

 

Hi - we did PiconsUpdater about a year ago. Basically the intention was almost the same (not in full, but the first step) - we wanted to reduce the maintenance efforts for picons if a service reference changes or if multiple service references exist for one service name. And for some cable providers no picon sets existed at all.

 

We store png's on Github named by servicename (reduced by some specialchars, lowercase etc.).

PiconsUpdater reads all service references/ service names in Bouquets and then downloads the picons from Github by service name. Missing png's on Github are written in a logfile.

In addition PiconsUpdater is able to merge the picon with a selected background on downloading and to optimize final png size by pngquant.

Finally we still save the picons with service reference - to further reduce amount of picons we could/should store as service name.

 

A lot people are using PiconsUpdater but only a few are supporting by adding the missing picons. Right now Germany, Austria and Switzerland is covered quite good.

 

https://github.com/g...s_PiconsUpdater



Re: Picons by 'Service name'. #59 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 24 December 2014 - 11:24

BTW, for anyone who wants to convert service ref picons to service name you can use this script.

 

Put it in /tmp

Telnet to the STB

cd /tmp

python rename-picons.py

 

Output will be a zip file: /tmp/picons.zip

Attached Files


Edited by Huevos, 24 December 2014 - 11:25.


Re: Picons by 'Service name'. #60 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 24 December 2014 - 13:13

Thanks!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users