Attached Files
Edited by Matrix10, 12 January 2018 - 23:42.
Posted 12 January 2018 - 23:42
Edited by Matrix10, 12 January 2018 - 23:42.
Posted 12 January 2018 - 23:51
Picture File name is picture 1
without file extension i have rename to picture1.jpg
Nice result Matrix 10 but don't work for me in Belgium, slideshow are not in MOT in my country...
Posted 12 January 2018 - 23:58
TV = Solo4K 2xDVB-S2 (FBC) + 2xDVB-T2 + TBS5925
Tuner A = Multisat Indoor Home Made 10 LNB 52°e > 5°w-Tuner B = Fibo 90cm USALS = 68°e > 45°w
Posted 13 January 2018 - 00:06
Are you sure they have a slideshow of any kind ?
I just see these ones.
Posted 13 January 2018 - 00:30
diff --git a/plugin/plugin.py b/plugin/plugin.py index b275bfe..c140199 100644 --- a/plugin/plugin.py +++ b/plugin/plugin.py @@ -11,8 +11,9 @@ from Screens.Console import Console from Screens.MessageBox import MessageBox from Screens.Screen import Screen from Tools.BoundFunction import boundFunction -from enigma import eConsoleAppContainer +from enigma import eConsoleAppContainer, ePicLoad +import os import json import time import binascii @@ -157,6 +158,7 @@ class SDGRadioScreen(Screen): </widget> <ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/SDGRadio/img/key_ok.png" position="205,277" size="40,32" transparent="0" zPosition="10" alphatest="on" /> <eLabel name="Select" text="Select" position="151,210" size="146,22" foregroundColor="white" font="Regular; 22" zPosition="5" halign="center" /> + <widget name="pic" position="925,435" size="200,150" halign="center" alphatest="on" backgroundColor="#20000000" zPosition="20" /> </screen>""" def __init__(self, session): @@ -175,6 +177,8 @@ class SDGRadioScreen(Screen): self["key_blue"] = Label(_("Log")) self["info"] = Label(_("Info")) + self['pic'] = Pixmap() + # get currently playing service self.oldService = self.session.nav.getCurrentlyPlayingServiceReference() @@ -274,6 +278,8 @@ class SDGRadioScreen(Screen): self["prog_type"].setText(txt.encode('utf8')) if "programName" in rds and "programId" in rds: self.programs.append((rds["programName"].encode('utf8'), rds["programId"])) + if "mot" in rds: + self.showPicture(rds["mot"][:-2]) except Exception as e: str = "[SDGRadio] RDSProcess Exception: %s data: %s" % (e, binascii.hexlify(data)) self.log.append(str) @@ -446,6 +452,24 @@ class SDGRadioScreen(Screen): print "[SDGRadio] showMenu" self.session.open(SDGRadioSetup) + def showPicture(self, image): + if os.path.exists(image): + sc = AVSwitch().getFramebufferScale() + self.picloads = ePicLoad() + self.picloads.PictureData.get().append(boundFunction(self.showPictureFinish, image)) + self.picloads.setPara(( + self['pic'].instance.size().width(), + self['pic'].instance.size().height(), + sc[0], sc[1], False, 1, '#00000000')) + self.picloads.startDecode(image) + + def showPictureFinish(self, image, picInfo = None): + ptr = self.picloads.getData() + if ptr: + self["pic"].instance.setPixmap(ptr.__deref__()) + del self.picloads + #os.remove(image) + def main(session, **kwargs): session.open(SDGRadioScreen)
Edited by athoik, 13 January 2018 - 00:30.
Posted 13 January 2018 - 01:05
Posted 13 January 2018 - 02:00
Use files from @athoik post 258 for picture slideshow
Im using this line for DAB/DAB+ inside plugin
cmd = "dab-rtlsdr-sdgradio-pcm -C %s -W30 -p %d | gst-launch-1.0 fdsrc ! queue ! audio/x-raw, format=S16LE, channels=2, layout=interleaved, rate=48000 ! dvbaudiosink" % (DAB_FREQ.get(Decimal(freq), '5A'), config.sdgradio.ppmoffset.value)
I think You can have picture slideshow only in pcm and if it exists on your DAB/DAB+
You have to use skin format 1920 x 1080
Plugin use the same skin format.
Posted 13 January 2018 - 02:36
Update removed ! queue from cmd line (I have a feeling to influence,
Use files from @athoik post 258 for picture slideshow
Im using this line for DAB/DAB+ inside plugin
cmd = "dab-rtlsdr-sdgradio-pcm -C %s -W30 -p %d | gst-launch-1.0 fdsrc ! audio/x-raw, format=S16LE, channels=2, layout=interleaved, rate=48000 ! dvbaudiosink" % (DAB_FREQ.get(Decimal(freq), '5A'), config.sdgradio.ppmoffset.value)
I think You can have picture slideshow only in pcm and if it exists on your DAB/DAB+
You have to use skin format 1920 x 1080
Plugin use the same skin format.
Edited by Matrix10, 13 January 2018 - 02:36.
Posted 13 January 2018 - 09:08
Are you sure they have a slideshow of any kind ?
I just see these ones.
FAMILY RADIO 6395 64 kbit/s DAB+Oldies MusicSecondary ComponentFAMILY RADIO SLS 8 kbit/s packet data Slide Show MOT SlideshowJoe 63FF 96 kbit/s DAB+Pop MusicSecondary ComponentJoe SLS 16 kbit/s packet data Slide Show MOT SlideshowQmusic 6306 96 kbit/s DAB+Pop MusicSecondary ComponentQmusic SLS 16 kbit/s packet data Slide Show MOT SlideshowRadio Maria 6424 80 kbit/s DAB+CultureSecondary ComponentRadio Maria SLS8 kbit/s packet data Slide Show MOT SlideshowTOPradio 60AF 80 kbit/s DAB+Pop MusicSecondary ComponentTOPradio SLS16 kbit/s packet data Slide Show MOT SlideshowVBRO RADIO 60A1 64 kbit/s DAB+National MusicSecondary ComponentVBRO RADIO SLS8 kbit/s packet data Slide Show MOT Slideshow
Hi Matrix10, yes the slideshow are transmittes on the radios I have tested.
I have a portable radio and this one display the slideshow.
TV = Solo4K 2xDVB-S2 (FBC) + 2xDVB-T2 + TBS5925
Tuner A = Multisat Indoor Home Made 10 LNB 52°e > 5°w-Tuner B = Fibo 90cm USALS = 68°e > 45°w
Posted 13 January 2018 - 20:38
Posted 13 January 2018 - 21:06
0 members, 1 guests, 0 anonymous users