Jump to content


nautilus7

Member Since 8 Sep 2012
Offline Last Active 14 Apr 2024 21:41
-----

#1411642 RAI channel name problems

Posted by nautilus7 on 18 December 2021 - 17:24

OK, I found the problem. Now I am looking for the best solution.

 

This problem is indeed caused because there are both 0x42 (actual) and 0x46 (other) SDT tables transmitted, as we already figured out.

 

enigma2 is bugged because it sets a filter for both of them! This was done in an effort to fix SDT reading for "dish network" back in 2006 (they only use/used 0x46 tables, thus breaking the specification) https://github.com/O...d03460f5d86R166

if (m_SDT->start(m_demux, eDVBSDTSpec(tsid, true)))

The "true" in the eDVBSDTSpec call means that both 0x42 and 0x46 filtering will be done. So, for RAI enigma2 some times fetches the actual SDT table that carries the service names, some times it fetches the other SDT table that carries no names at all. https://github.com/O...dvb/specs.h#L70

	eDVBSDTSpec(int tsid, bool other=false)
	{
		m_spec.pid     = ServiceDescriptionSection::PID;
		m_spec.tid     = ServiceDescriptionSection::TID;
		m_spec.tidext  = tsid;
		/*
		 * from Digital Video Broadcasting (DVB) Guidelines on implementation and usage of Service Information (SI)
		 * DVB Document A005 June 2017:
		 *
		 * "all sections of the SDT for the actual multiplex shall be transmitted at least every 2 s"
		 * "all sections of the SDT for other TSs shall be transmitted at least every 10 s if present"
		 */
		m_spec.timeout = other ? 10500 : 2500; // ServiceDescriptionSection::TIMEOUT;
		m_spec.flags   = eDVBTableSpec::tfAnyVersion |
			eDVBTableSpec::tfHaveTID | eDVBTableSpec::tfCheckCRC |
			eDVBTableSpec::tfHaveTIDExt | eDVBTableSpec::tfHaveTimeout;
		if (other)
		{
			// SDT other transport stream have TID 0x46 (current is 0x42)
			// so we mask out the third bit in table id mask..
			m_spec.flags |= eDVBTableSpec::tfHaveTIDMask;
			m_spec.tid_mask = 0xFB;
		}
	}



#1411374 RAI channel name problems

Posted by nautilus7 on 18 December 2021 - 02:53

tsanalyse and tstables (part of tsduck) shows the following...

|=============================================================================|
|  PID: 0x0011 (17)                                                  SDT/BAT  |
|-----------------------------------------------------------------------------|
|  0x42 (66, SDT Actual), TID ext: 0x3070 (12400)                             |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x02BC (700)                                |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x0384 (900)                                |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 7                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x03E8 (1000)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x04B0 (1200)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 6                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1388 (5000)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 4                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1450 (5200)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1770 (6000)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1A2C (6700)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 2                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1AF4 (6900)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 4                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1B58 (7000)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 5                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1C20 (7200)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 9                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x1D4C (7500)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 4                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x22C4 (8900)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 2                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x2328 (9000)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 4                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x238C (9100)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 2                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x2454 (9300)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 0                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x24B8 (9400)                               |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 0                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x2B5C (11100)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 3                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x2F44 (12100)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x300C (12300)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3070 (12400)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 0                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x30D4 (12500)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3138 (12600)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 0                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x332C (13100)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 3                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x33F4 (13300)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 8                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3BC4 (15300)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 0                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3C28 (15400)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3CF0 (15600)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 1                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3D54 (15700)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 5                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3DB8 (15800)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 200  ms  Version: ............ 9                     |
|-----------------------------------------------------------------------------|
|  0x46 (70, SDT Other), TID ext: 0x3E1C (15900)                              |
|      Repetition: ..... 200  ms  Section cnt: ...... 908                     |
|      Min repet.: ..... 199  ms  Table cnt: ........ 908                     |
|      Max repet.: ..... 201  ms  Version: ............ 0                     |
|=============================================================================|
* SDT Actual, TID 66 (0x42), PID 17 (0x0011)
  Version: 1, sections: 1, total size: 234 bytes
  - Section 0:
    Transport Stream Id: 12400 (0x3070)
    Original Network Id: 318 (0x013E)
    Service Id: 272 (0x0110), EITs: no, EITp/f: no, CA mode: controlled
    Running status: running
    Service Id: 273 (0x0111), EITs: no, EITp/f: no, CA mode: controlled
    Running status: running
    Service Id: 274 (0x0112), EITs: no, EITp/f: no, CA mode: controlled
    Running status: running
    Service Id: 8511 (0x213F), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 11 bytes
      Service type: 0x01 (Digital television service)
      Service: "Rai 1", Provider: "RAI"
    Service Id: 8512 (0x2140), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 11 bytes
      Service type: 0x01 (Digital television service)
      Service: "Rai 2", Provider: "RAI"
    Service Id: 8513 (0x2141), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 11 bytes
      Service type: 0x01 (Digital television service)
      Service: "Rai 3", Provider: "RAI"
    Service Id: 8517 (0x2145), EITs: no, EITp/f: no, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 17 bytes
      Service type: 0x01 (Digital television service)
      Service: "tivùlink", Provider: "tivù"
    Service Id: 8518 (0x2146), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 19 bytes
      Service type: 0x19 (Advanced codec HD digital television service)
      Service: "Rai Storia HD", Provider: "RAI"
    Service Id: 8519 (0x2147), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 21 bytes
      Service type: 0x01 (Digital television service)
      Service: "Camera Deputati", Provider: "RAI"
    Service Id: 8520 (0x2148), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 12 bytes
      Service type: 0x01 (Digital television service)
      Service: "Senato", Provider: "RAI"
    Service Id: 8521 (0x2149), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 19 bytes
      Service type: 0x19 (Advanced codec HD digital television service)
      Service: "Rai Scuola HD", Provider: "RAI"
    Service Id: 8522 (0x214A), EITs: yes, EITp/f: yes, CA mode: controlled
    Running status: running
    - Descriptor 0: Service (0x48, 72), 20 bytes
      Service type: 0x19 (Advanced codec HD digital television service)
      Service: "Rai Premium HD", Provider: "RAI"

* SDT Other, TID 70 (0x46), PID 17 (0x0011)
  Version: 0, sections: 1, total size: 15 bytes
  - Section 0:
    Transport Stream Id: 12400 (0x3070)
    Original Network Id: 318 (0x013E)



#1411366 RAI channel name problems

Posted by nautilus7 on 18 December 2021 - 02:44

I correctly remembered that you have a tbs. That's why I asked for a ts dump, knowing it would be easier for you.

 

I also figured out that there is actual and other sdt tables for that transponder, which perhaps is the cause of the problem. I will continue looking into the code tomorrow.




#840908 oscam-emu startup

Posted by nautilus7 on 7 February 2018 - 11:15

Yes, I use systemtime.

Could you please help me find a recent oscam build with clockfix for oscam emu, both for ARM and MIPSEL?

FWIW, using systemtime set in ntp server and oscam with clockfix, time cannot be set/changed. oscam prevents any changes. This is another reason not to build oscam with clockfix anymore.

 

Here is a mipsel build of oscam-emu without clockfix that I use in my box http://www2.zippysha...9j5eY/file.html I don't have an arm build.