Jump to content


Photo

DAB radio reception


  • Please log in to reply
412 replies to this topic

Re: DAB radio reception #261 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 12 January 2018 - 23:42

The picture logo we only have in pcm.
 
I use this line that is by far the best
 
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)

Attached Files


Edited by Matrix10, 12 January 2018 - 23:42.


Re: DAB radio reception #262 Matrix10

  • Senior Member
  • 339 posts

+27
Good

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... :(

 

 

Perhaps if you came up with a more detailed WWW page, about Dab/Dab+ code in Belgium
that @athoik can do something.


Re: DAB radio reception #263 stpierre

  • Member
  • 19 posts

+2
Neutral

Posted 12 January 2018 - 23:58

Thanks Matrix10 maybe here...

 

http://www.wohnort.o...AB/belgium.html


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


Re: DAB radio reception #264 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 00:06

Thanks Matrix10 maybe here...

 

http://www.wohnort.o...AB/belgium.html

Are you sure they have a slideshow of any kind ?

 

I just see these ones.

 

FAMILY RADIO 6395 64 kbit/s DAB+
Oldies Music
Secondary ComponentFAMILY RADIO SLS 8 kbit/s packet data Slide Show MOT Slideshow
Joe 63FF 96 kbit/s DAB+
Pop Music
Secondary ComponentJoe SLS 16 kbit/s packet data Slide Show MOT Slideshow
Qmusic 6306 96 kbit/s DAB+
Pop Music
Secondary ComponentQmusic SLS 16 kbit/s packet data Slide Show MOT Slideshow
Radio Maria 6424 80 kbit/s DAB+
Culture
Secondary ComponentRadio Maria SLS
8 kbit/s packet data Slide Show MOT Slideshow
TOPradio 60AF 80 kbit/s DAB+
Pop Music
Secondary ComponentTOPradio SLS
16 kbit/s packet data Slide Show MOT Slideshow
VBRO RADIO 60A1 64 kbit/s DAB+
National Music
Secondary ComponentVBRO RADIO SLS
8 kbit/s packet data Slide Show MOT Slideshow


Re: DAB radio reception #265 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 January 2018 - 00:30

Can you try this one?

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)

Attached Files


Edited by athoik, 13 January 2018 - 00:30.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #266 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 00:52

Error

 

 

Attached Files



Re: DAB radio reception #267 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 January 2018 - 01:05

In showPicture try :

self.showPicture(str(rds["mot"][:-2]))

or

self.showPicture(rds["mot"].encode('utf8')[:-2])
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #268 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 01:26

self.showPicture(rds["mot"].encode('utf8')[:-2]) 

 

OK

 

skin coding (adjust position for your skin)

 

<widget name="pic" position="30,140" size="200,150" alphatest="on" zPosition="20" />

 

 

Attached Files



Re: DAB radio reception #269 Matrix10

  • Senior Member
  • 339 posts

+27
Good

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.

 

 

 

 

Attached Files



Re: DAB radio reception #270 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 02:06

@athoik

 

There is one problem
 if you select another radio station old Logo/ picture remains in the OSD.


Re: DAB radio reception #271 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 02:20

until he gets the other new Logo/ picture



Re: DAB radio reception #272 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 02:36

Update removed  ! queue from cmd line (I have a feeling to influence,

  sometimes skipping from one radio station to another radio station )

 

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.

Attached Files


Edited by Matrix10, 13 January 2018 - 02:36.


Re: DAB radio reception #273 stpierre

  • Member
  • 19 posts

+2
Neutral

Posted 13 January 2018 - 09:08

 

Thanks Matrix10 maybe here...

 

http://www.wohnort.o...AB/belgium.html

Are you sure they have a slideshow of any kind ?

 

I just see these ones.

 

FAMILY RADIO 6395 64 kbit/s DAB+
Oldies Music
Secondary ComponentFAMILY RADIO SLS 8 kbit/s packet data Slide Show MOT Slideshow
Joe 63FF 96 kbit/s DAB+
Pop Music
Secondary ComponentJoe SLS 16 kbit/s packet data Slide Show MOT Slideshow
Qmusic 6306 96 kbit/s DAB+
Pop Music
Secondary ComponentQmusic SLS 16 kbit/s packet data Slide Show MOT Slideshow
Radio Maria 6424 80 kbit/s DAB+
Culture
Secondary ComponentRadio Maria SLS
8 kbit/s packet data Slide Show MOT Slideshow
TOPradio 60AF 80 kbit/s DAB+
Pop Music
Secondary ComponentTOPradio SLS
16 kbit/s packet data Slide Show MOT Slideshow
VBRO RADIO 60A1 64 kbit/s DAB+
National Music
Secondary ComponentVBRO RADIO SLS
8 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


Re: DAB radio reception #274 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 11:02

Again update for 1920 x 1080 skin changed Radio logo position

 

 

Attached Files



Re: DAB radio reception #275 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 January 2018 - 20:38

Hi,

New version of SDGRadio, it now handles the "MOT" picture. Also the rawaudioparse was reverted.
New version of dab-cmdline, it reports mot data and mot type. Also a possible fix was applied to handle "PAD data" when using AAC mode.

Please provide screenshots from original plugin if possible, since ERT DAB+ doesn't broadcast any MOT data (yet).
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #276 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 13 January 2018 - 21:01

I've installed the last mips32el binaries found on earlier page, and now I'm able to tune signal.

The problem is that sound has many many interruptions.

I change to pcm, same results.


Enigma is getting old....

 

Spoiler

Re: DAB radio reception #277 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 January 2018 - 21:06

There is not enough cpu power on mipsel to perform viterbi decoding.

Please feel free to provide an mipsel optimized viterbi algorithm.

Until then, just forget mipsel.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #278 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 22:02

@athoik 

 

new coding

 Does not show radio logo  "MOT" picture in skin .


Edited by Matrix10, 13 January 2018 - 22:03.


Re: DAB radio reception #279 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 January 2018 - 22:06

What is shown in log?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: DAB radio reception #280 Matrix10

  • Senior Member
  • 339 posts

+27
Good

Posted 13 January 2018 - 22:28

This one is OK

 

if "mot" in rds:
self.showPicture(rds["mot"].encode('utf8')[:-2]) 
 
hide also OK
 
 

Attached Files




7 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users