bitrate in infobar skin

s8un3no

Active member
avere il bitrate direttamente nelle infobar delle skin è tutta un'altra cosa, vi spiego come ho fatto.
servono 2 file, un binario in usr/bin, opbitrate, e un converter bitrate3.py, buono solo per python 3, da non utilizzare con python2, va in crash. si mette il file opbitrate in /usr/bin con permessi di esecuzione (755) e il file bitrate3.py in /usr/lib/enigma2/python/Components/Converter/Bitrate3.py.
Attenzione al file 'opbitrate' allegato funziona sicuramente con octagon sf8008 ma dovrebbe funzionare con tutti i processori ARM non utilizzatelo con processori mipsel, non mi assumo nessuna responsabilità se il vostro decoder va in crash
ora è possibile utilizzare un <widget> per le skin:

translate
having the bitrate directly in the infobar of the skins is another thing entirely, I'll explain how I did it.
need 2 files, a binary in usr / bin, opbitrate, and a converter bitrate3.py, good only for python 3, not to be used with python2, crashes. you put the opbitrate file in / usr / bin with execute permissions (755) and the bitrate3.py file in /usr/lib/enigma2/python/Components/Converter/Bitrate3.py.
Attention to the attached 'opbitrate' file it certainly works with octagon sf8008 but it should work with all ARM processors do not use it with mipsel processors, I take no responsibility if your decoder crashes
now you can use a <widget> for skins:
Code:
<widget source="session.CurrentService" render="Label" position="1420,663" size="250,30" halign="left" zPosition="4" transparent="1"  foregroundColor="your_foregroundColor"  font="Regular3; 28">
      <convert type="Bitrate3">%V Kb/s</convert>
</widget>
convert:
%V = video bitrate, only the number (Kb / s must be added)
%A = audio bitrate, only the number
 

Attachments

  • Bitrate3.py.zip
    785 bytes · Views: 32
  • opbitrate.zip
    7.2 KB · Views: 34

s8un3no

Active member
con i files sopra anche con python3.
che decoder hai?

Traslate
with the above files also with python3.
what decoder do you have?
 

Goran

Member
Zgemma h7s .
Still waiting for OBH image python 3. I'm going to test another image tonight from another Open team that already has a python 3 image for zgemma h7s
 
Top