braice / MuMuDVB

A DVB IPTV streaming software
http://mumudvb.braice.net/
GNU General Public License v2.0
213 stars 133 forks source link

Autoconfiguration not working with DVBT2 BBCB mux in UK #257

Closed tazootv closed 3 years ago

tazootv commented 4 years ago

Hi

Bit of a strange one, I've been using MuMuDVB for a while now and never has any problems. However today I tried a scan of BBCB HD mux and it doesn't seem to work properly with autoconfiguration (see output below). If I don't use autoconfiguration and manually enter the channel info, everything works as expected.

Config file - using autoconfiguration

unicast=1 card=5 card_dev_path=/dev/dvb/adapter5 delivery_system=DVBT2 freq=666 multicast_ipv4=1 ip_http=0.0.0.0 port_http=4205 autoconfiguration=full autoconf_ip4=239.100.%card.%number

Config file using manual channel selection

unicast=1 rewrite_sdt=1 autoconf_scrambled=1 card=5 card_dev_path=/dev/dvb/adapter5 delivery_system=DVBT2 freq=666 autoconf_radios=1 multicast_ipv4=1 ip_http=0.0.0.0 port_http=4205 sap=0 rewrite_pat=1 store_eit=0 multicast_ttl=2

new_channel name=BBC TWO HD service_id=17472 pids=100 101 102 106 105 ip=239.100.5.0 port=1234

new_channel name=CHANNEL 4 HD service_id=17664 pids=300 301 302 306 305 ip=239.100.5.1 port=1234

new_channel name=BBC One HD service_id=17540 pids=6600 6601 6602 6606 6605 ip=239.100.5.2 port=1234

new_channel name=ITV HD service_id=17609 pids=200 201 202 206 205 ip=239.100.5.3 port=1234

new_channel name=CHANNEL 5 HD service_id=17728 pids=6400 6401 6402 6406 6405 ip=239.100.5.4 port=1234

new_channel name=CBBC HD service_id=18112 pids=7100 7101 7102 7106 7105 ip=239.100.5.5 port=1234

new_channel name=TBN UK HD service_id=20160 pids=7900 7901 7902 7906 7905 ip=239.100.5.6 port=1234

Output when using autoconfigutation -

MuMuDVB Version 2.1.0_20181020_mumudvb2 --- Build information --- Built without CAM support. Built without SCAM support. Built with ATSC support. Built with support for DVB API Version 5.10. Built with support for DVB-T2.

Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004 Released under the GPL. Latest version available from http://mumudvb.net/ Project from the cr@ns (http://www.crans.org) by Brice DUBOST (mumudvb@braice.net)

Deb2: Main: ==== Configuration file ==== Deb2: Main: 001 filename_pid=/var/www/server/storage/app/pids/1.pid Deb2: Main: 002 unicast=1 Deb2: Main: 003 rewrite_sdt=1 Deb2: Main: 004 autoconf_scrambled=1 Deb2: Main: 005 card=0 Deb2: Main: 006 card_dev_path=/dev/dvb/adapter0 Deb2: Main: 007 delivery_system=DVBT2 Deb2: Main: 008 modulation=QAM256 Deb2: Main: 009 freq=666 Deb2: Main: 010 autoconf_radios=1 Deb2: Main: 011 multicast_ipv4=1 Deb2: Main: 012 ip_http=0.0.0.0 Deb2: Main: 013 port_http=4200 Deb2: Main: 014 sap=0 Deb2: Main: 015 rewrite_pat=1 Deb2: Main: 016 store_eit=0 Deb2: Main: 017 multicast_iface4=enp1s0 Deb2: Main: 018 autoconfiguration=full Deb2: Main: 019 autoconf_ip4=239.100.%card.%number Deb2: Main: ============ done =========== Info: Rewrite: You have enabled the SDT Rewriting Info: Tune: You will use DVB API version 5 for tuning your card. Info: Autoconf: You have to set autoconfiguration in full mode to use autoconf of the radios Info: Rewrite: You have enabled the PAT Rewriting Info: Main: ========== End of configuration, MuMuDVB version 2.1.0_20181020_mumudvb2 is starting ========== WARN: Main: Can't create /var/run/mumudvb/channels_streamed_adapter0_tuner0: No such file or directory WARN: Main: Can't create /var/run/mumudvb/channels_unstreamed_adapter0_tuner0: No such file or directory Info: Main: Streaming. Freq 666000.000000 Info: Tune: Using DVB card "Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T)" tuner 0 Info: Tune: Tuning Terrestrial to 666000000 Hz, Bandwidth: 8000000 Info: Tune: Tuning With DVB-API version 5. delivery system : 16 Deb0: Tune: polling.... Info: Tune: FE_STATUS: Deb0: Tune: polling.... Info: Tune: FE_STATUS: Info: Tune: FE_HAS_SIGNAL : found something above the noise level Info: Tune: FE_HAS_CARRIER : found a DVB signal Info: Tune: FE_HAS_VITERBI : FEC is stable Info: Tune: FE_HAS_SYNC : found sync bytes Info: Tune: FE_HAS_LOCK : everything's working... Info: Tune: Event: Frequency: -1085493436 Info: Tune: Bit error rate: 0 Info: Tune: Signal strength: 36736 Info: Tune: SNR: 45264 Info: Main: Card 0, tuner 0 tuned main 0x7ffddebbb5a0 Info: Common chan: Looking through all services to update their filters Deb0: Common chan: Open the new filters Deb1: DVB: Setting filter for PID 0 Deb1: DVB: Setting filter for PID 1 Deb1: DVB: Setting filter for PID 16 Deb1: DVB: Setting filter for PID 17 Deb1: DVB: Setting filter for PID 18 Deb1: DVB: Setting filter for PID 20 Info: Unicast: We open the Master http socket for address 0.0.0.0:4200 Deb1: Unicast : unicast : unicast_vars->pfdsnum : 1 Info: Autoconf: Autoconfiguration is now ready to work for you ! Deb1: Autoconf: PAT Need update. stored version : -1, new: 11 Deb2: TS: General information PID 0 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 15 Deb2: TS: Starting a packet PID 0 cc 15 len 44 expected len 44 Deb2: TS: First bytes 0x00 0xb0 0x29 0x40 0x89 0xd7 0x00 0x00 Deb2: TS: Struct data table_id 0x00 section_syntax_indicator 0x01 section_length 0x29 transport_stream_id 0x4089 version_number 0x0b current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 44. There's now 1 full packet Deb2: TS: Calling recursively, data left 139 Deb2: TS: Stuffing bytes found data left 139 Deb2: TS: General information PID 0 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 15 Deb2: TS: Starting a packet PID 0 cc 15 len 44 expected len 44 Deb2: TS: First bytes 0x00 0xb0 0x29 0x40 0x89 0xd7 0x00 0x00 Deb2: TS: Struct data table_id 0x00 section_syntax_indicator 0x01 section_length 0x29 transport_stream_id 0x4089 version_number 0x0b current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 44. There's now 1 full packet Deb2: TS: Calling recursively, data left 139 Deb2: TS: Stuffing bytes found data left 139 Deb1: Autoconf: PAT Need update. stored version : -1, new: 11 Deb2: TS: Full packet left: 1, we copy length 44 Deb2: TS: General information PID 0 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 0 Deb2: TS: Starting a packet PID 0 cc 0 len 44 expected len 44 Deb2: TS: First bytes 0x00 0xb0 0x29 0x40 0x89 0xd7 0x00 0x00 Deb2: TS: Struct data table_id 0x00 section_syntax_indicator 0x01 section_length 0x29 transport_stream_id 0x4089 version_number 0x0b current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 44. There's now 1 full packet Deb2: TS: Calling recursively, data left 139 Deb2: TS: Stuffing bytes found data left 139 Info: Autoconf: The PAT version changed, channels have changed Info: Autoconf: New PAT we force SDT update after all sections seen Deb1: Autoconf: ---- New PAT version 11 section 0 ---- Deb2: Autoconf: -------------- Display PAT ---------------- Deb2: Autoconf: transport stream id 0x4089 section_length 41 version 11 section_number 0 last_section_number 0 current_next_indicator 1 Deb1: Autoconf: Network PID 16 (PID of the NIT) Deb1: Autoconf: service 1 id 0x4440 17472 PMT PID : 100 Deb1: Autoconf: service 2 id 0x4484 17540 PMT PID : 6600 Deb1: Autoconf: service 3 id 0x44c9 17609 PMT PID : 200 Deb1: Autoconf: service 4 id 0x4500 17664 PMT PID : 300 Deb1: Autoconf: service 5 id 0x4540 17728 PMT PID : 6400 Deb1: Autoconf: service 6 id 0x46c0 18112 PMT PID : 7100 Deb1: Autoconf: service 7 id 0x4ec0 20160 PMT PID : 7900 Deb1: Autoconf: This PAT contains 7 services Deb2: Autoconf: -------------- PAT Displayed ---------------- Deb2: Autoconf: PAT version 11 program 17472 NEW channel 1 Deb2: Autoconf: PAT version 11 program 17540 NEW channel 2 Deb2: Autoconf: PAT version 11 program 17609 NEW channel 3 Deb2: Autoconf: PAT version 11 program 17664 NEW channel 4 Deb2: Autoconf: PAT version 11 program 17728 NEW channel 5 Deb2: Autoconf: PAT version 11 program 18112 NEW channel 6 Deb2: Autoconf: PAT version 11 program 20160 NEW channel 7 Deb1: Autoconf: It seems that we have finished to get the channel/services list WARN: Autoconf: Channel 0 SID 17472 Force PMT update WARN: Autoconf: Channel 1 SID 17540 Force PMT update WARN: Autoconf: Channel 2 SID 17609 Force PMT update WARN: Autoconf: Channel 3 SID 17664 Force PMT update WARN: Autoconf: Channel 4 SID 17728 Force PMT update WARN: Autoconf: Channel 5 SID 18112 Force PMT update WARN: Autoconf: Channel 6 SID 20160 Force PMT update Deb2: TS: Full packet left: 1, we copy length 44 Deb2: TS: General information PID 0 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 0 Deb2: TS: Starting a packet PID 0 cc 0 len 44 expected len 44 Deb2: TS: First bytes 0x00 0xb0 0x29 0x40 0x89 0xd7 0x00 0x00 Deb2: TS: Struct data table_id 0x00 section_syntax_indicator 0x01 section_length 0x29 transport_stream_id 0x4089 version_number 0x0b current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 44. There's now 1 full packet Deb2: TS: Calling recursively, data left 139 Deb2: TS: Stuffing bytes found data left 139 Deb1: PAT Rewrite: Full PAT updated Deb1: PAT Rewrite: New pat version. Old : -1, new: 11 Deb2: PAT Rewrite: -------------- Display PAT ---------------- Deb2: PAT Rewrite: transport stream id 0x4089 section_length 41 version 11 section_number 0 last_section_number 0 current_next_indicator 1 Deb1: PAT Rewrite: Network PID 16 (PID of the NIT) Deb1: PAT Rewrite: service 1 id 0x4440 17472 PMT PID : 100 Deb1: PAT Rewrite: service 2 id 0x4484 17540 PMT PID : 6600 Deb1: PAT Rewrite: service 3 id 0x44c9 17609 PMT PID : 200 Deb1: PAT Rewrite: service 4 id 0x4500 17664 PMT PID : 300 Deb1: PAT Rewrite: service 5 id 0x4540 17728 PMT PID : 6400 Deb1: PAT Rewrite: service 6 id 0x46c0 18112 PMT PID : 7100 Deb1: PAT Rewrite: service 7 id 0x4ec0 20160 PMT PID : 7900 Deb1: PAT Rewrite: This PAT contains 7 services Deb2: PAT Rewrite: -------------- PAT Displayed ---------------- Deb2: TS: Full packet left: 1, we copy length 44 Deb1: PAT Rewrite: Full PAT updated Deb2: PAT Rewrite: -------------- Display PAT ---------------- Deb2: PAT Rewrite: transport stream id 0x4089 section_length 41 version 11 section_number 0 last_section_number 0 current_next_indicator 1 Deb1: PAT Rewrite: Network PID 16 (PID of the NIT) Deb1: PAT Rewrite: service 1 id 0x4440 17472 PMT PID : 100 Deb1: PAT Rewrite: service 2 id 0x4484 17540 PMT PID : 6600 Deb1: PAT Rewrite: service 3 id 0x44c9 17609 PMT PID : 200 Deb1: PAT Rewrite: service 4 id 0x4500 17664 PMT PID : 300 Deb1: PAT Rewrite: service 5 id 0x4540 17728 PMT PID : 6400 Deb1: PAT Rewrite: service 6 id 0x46c0 18112 PMT PID : 7100 Deb1: PAT Rewrite: service 7 id 0x4ec0 20160 PMT PID : 7900 Deb1: PAT Rewrite: This PAT contains 7 services Deb2: PAT Rewrite: -------------- PAT Displayed ---------------- Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 8 Deb2: TS: Starting a packet PID 17 cc 8 len 183 expected len 231 Deb2: TS: First bytes 0x46 0xf0 0xe4 0x80 0x05 0xe1 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0xe4 transport_stream_id 0x8005 version_number 0x10 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 9 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 9 len 231 expected 231 Deb2: TS: New full packet len 231. There's now 1 full packet Deb1: Autoconf: CAT Need update. stored version : 0, new: 1 Deb2: TS: General information PID 1 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 10 Deb2: TS: Starting a packet PID 1 cc 10 len 12 expected len 12 Deb2: TS: First bytes 0x01 0xb0 0x09 0xff 0xff 0xc3 0x00 0x00 Deb2: TS: Struct data table_id 0x01 section_syntax_indicator 0x01 section_length 0x09 transport_stream_id 0xffff version_number 0x01 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 12. There's now 1 full packet Deb2: TS: Calling recursively, data left 171 Deb2: TS: Stuffing bytes found data left 171 Deb2: TS: Full packet left: 1, we copy length 231 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 10 Deb2: TS: Starting a packet PID 17 cc 10 len 183 expected len 795 Deb2: TS: First bytes 0x46 0xf3 0x18 0x50 0x40 0xc1 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x318 transport_stream_id 0x5040 version_number 0x00 current_next_indicator 0x01 last_section_number 0x00 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 11 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 11 len 367 expected 795 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 12 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 12 len 551 expected 795 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 13 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 13 len 735 expected 795 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 14 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 14 len 795 expected 795 Deb2: TS: New full packet len 795. There's now 1 full packet Deb1: Autoconf: CAT Need update. stored version : 0, new: 1 Deb2: TS: Full packet left: 1, we copy length 12 Deb2: TS: General information PID 1 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 11 Deb2: TS: Starting a packet PID 1 cc 11 len 12 expected len 12 Deb2: TS: First bytes 0x01 0xb0 0x09 0xff 0xff 0xc3 0x00 0x00 Deb2: TS: Struct data table_id 0x01 section_syntax_indicator 0x01 section_length 0x09 transport_stream_id 0xffff version_number 0x01 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 12. There's now 1 full packet Deb2: TS: Calling recursively, data left 171 Deb2: TS: Stuffing bytes found data left 171 Info: Autoconf: The CAT version changed Info: Autoconf: New CAT we force SDT update after all sections seen Deb1: Autoconf: ---- New CAT version 1 section 0 ---- Deb1: Autoconf: It seems that we have finished to get the CAT Deb2: TS: Full packet left: 1, we copy length 795 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 15 Deb2: TS: Starting a packet PID 17 cc 15 len 183 expected len 347 Deb2: TS: First bytes 0x46 0xf1 0x58 0x30 0x06 0xc3 0x01 0x01 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x158 transport_stream_id 0x3006 version_number 0x01 current_next_indicator 0x01 last_section_number 0x01 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 0 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 0 len 347 expected 347 Deb2: TS: New full packet len 347. There's now 1 full packet Deb2: TS: Full packet left: 1, we copy length 347 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 1 Deb2: TS: Starting a packet PID 17 cc 1 len 183 expected len 992 Deb2: TS: First bytes 0x46 0xf3 0xdd 0x60 0x40 0xf5 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x3dd transport_stream_id 0x6040 version_number 0x1a current_next_indicator 0x01 last_section_number 0x00 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 2 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 2 len 367 expected 992 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 3 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 3 len 551 expected 992 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 4 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 4 len 735 expected 992 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 5 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 5 len 919 expected 992 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 6 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 6 len 992 expected 992 Deb2: TS: New full packet len 992. There's now 1 full packet Deb2: TS: Full packet left: 1, we copy length 992 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 7 Deb2: TS: Starting a packet PID 17 cc 7 len 183 expected len 406 Deb2: TS: First bytes 0x46 0xf1 0x93 0x20 0x12 0xcd 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x193 transport_stream_id 0x2012 version_number 0x06 current_next_indicator 0x01 last_section_number 0x00 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 8 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 8 len 367 expected 406 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 9 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 9 len 406 expected 406 Deb2: TS: New full packet len 406. There's now 1 full packet Deb2: TS: Full packet left: 1, we copy length 406 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 10 Deb2: TS: Starting a packet PID 17 cc 10 len 183 expected len 885 Deb2: TS: First bytes 0x46 0xf3 0x72 0x10 0x4f 0xfd 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x372 transport_stream_id 0x104f version_number 0x1e current_next_indicator 0x01 last_section_number 0x00 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 11 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 11 len 367 expected 885 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 12 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 12 len 551 expected 885 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 13 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 13 len 735 expected 885 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 14 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 14 len 885 expected 885 Deb2: TS: New full packet len 885. There's now 1 full packet Deb1: Autoconf: SDT Need update. stored version : -1, new: 20 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 15 Deb2: TS: Starting a packet PID 17 cc 15 len 183 expected len 303 Deb2: TS: First bytes 0x42 0xf1 0x2c 0x40 0x89 0xe9 0x00 0x00 Deb2: TS: Struct data table_id 0x42 section_syntax_indicator 0x01 section_length 0x12c transport_stream_id 0x4089 version_number 0x14 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: Full packet left: 1, we copy length 885 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 15 Deb2: TS: Starting a packet PID 17 cc 15 len 183 expected len 303 Deb2: TS: First bytes 0x42 0xf1 0x2c 0x40 0x89 0xe9 0x00 0x00 Deb2: TS: Struct data table_id 0x42 section_syntax_indicator 0x01 section_length 0x12c transport_stream_id 0x4089 version_number 0x14 current_next_indicator 0x01 last_section_number 0x00 Deb1: SDT rewrite: We didn't got the good SDT (wrong table id) we search for a new one Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 0 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 0 len 303 expected 303 Deb2: TS: New full packet len 303. There's now 1 full packet Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 0 continuity_counter 0 Deb2: TS: Continuing packet, data left 184 Deb2: TS: Continuing a packet PID 17 cc 0 len 303 expected 303 Deb2: TS: New full packet len 303. There's now 1 full packet Deb2: TS: Full packet left: 1, we copy length 303 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 1 Deb2: TS: Starting a packet PID 17 cc 1 len 183 expected len 575 Deb2: TS: First bytes 0x46 0xf2 0x3c 0xa0 0x00 0xcf 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x23c transport_stream_id 0xa000 version_number 0x07 current_next_indicator 0x01 last_section_number 0x00 Info: Autoconf: The SDT version changed, channels description have changed Deb1: Autoconf: -- SDT : Service Description Table (id 0x42)-- Deb2: Autoconf: -- SDT: TSID 0x4089 original_network_id 0x233a version 20 section number 0 last section number 0 -- Deb1: Autoconf: We will update service with id : 0x4440 17472 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 10 offset 0 Deb1: Logs: String len before conversion 10 (DEBUG lenstring is 10 ) Deb2: Logs: Converted text : "BBC TWO HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "BBC TWO HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 17472 name will be updated Deb1: Autoconf: Channel SID 17472 name : "BBC TWO HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 14 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x4484 17540 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 10 offset 0 Deb1: Logs: String len before conversion 10 (DEBUG lenstring is 10 ) Deb2: Logs: Converted text : "BBC ONE HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "BBC ONE HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 17540 name will be updated Deb1: Autoconf: Channel SID 17540 name : "BBC ONE HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 14 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x44c9 17609 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 6 offset 0 Deb1: Logs: String len before conversion 6 (DEBUG lenstring is 6 ) Deb2: Logs: Converted text : "ITV HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "ITV HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 17609 name will be updated Deb1: Autoconf: Channel SID 17609 name : "ITV HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 13 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x4500 17664 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 12 offset 0 Deb1: Logs: String len before conversion 12 (DEBUG lenstring is 12 ) Deb2: Logs: Converted text : "Channel 4 HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "Channel 4 HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 17664 name will be updated Deb1: Autoconf: Channel SID 17664 name : "Channel 4 HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 18 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x4540 17728 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 12 offset 0 Deb1: Logs: String len before conversion 12 (DEBUG lenstring is 12 ) Deb2: Logs: Converted text : "Channel 5 HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "Channel 5 HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 17728 name will be updated Deb1: Autoconf: Channel SID 17728 name : "Channel 5 HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 13 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x46c0 18112 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x19 : Advanced codec HD Television Deb1: Logs: String len 7 offset 0 Deb1: Logs: String len before conversion 7 (DEBUG lenstring is 7 ) Deb2: Logs: Converted text : "CBBC HD" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "CBBC HD" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 18112 name will be updated Deb1: Autoconf: Channel SID 18112 name : "CBBC HD" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 14 Deb2: Autoconf: SDT descriptor_tag : 0x5f, descriptor_len 6 Deb2: Autoconf: SDT descriptor_tag : 0x7e, descriptor_len 3 Deb1: Autoconf: We will update service with id : 0x4ec0 20160 Deb2: Autoconf: running_status : running Deb1: Autoconf: free_ca_mode : 0x0 Deb1: Autoconf: service type: 0x16 : Advanced codec SD Television Deb1: Logs: String len 6 offset 0 Deb1: Logs: String len before conversion 6 (DEBUG lenstring is 6 ) Deb2: Logs: Converted text : "TBN UK" (text encoding : ISO8859-9) nonreversible conversions 0 Deb2: Logs: Converted text : "TBN UK" (text encoding : ISO8859-9) Deb1: Autoconf: Channel SID 20160 name will be updated Deb1: Autoconf: Channel SID 20160 name : "TBN UK" (name encoding : ISO8859-9) Deb2: Autoconf: SDT descriptor_tag : 0x73, descriptor_len 15 Deb1: Autoconf: It seems that we have finished to update get the channels basic info Info: Autoconf: We update the channel names Deb1: Autoconf: Channel SID 17472 service name: "BBC TWO HD" user name: "" channel name: "BBC TWO HD" Deb2: Autoconf: Channel name: "BBC TWO HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 17540 service name: "BBC ONE HD" user name: "" channel name: "BBC ONE HD" Deb2: Autoconf: Channel name: "BBC ONE HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 17609 service name: "ITV HD" user name: "" channel name: "ITV HD" Deb2: Autoconf: Channel name: "ITV HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 17664 service name: "Channel 4 HD" user name: "" channel name: "Channel 4 HD" Deb2: Autoconf: Channel name: "Channel 4 HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 17728 service name: "Channel 5 HD" user name: "" channel name: "Channel 5 HD" Deb2: Autoconf: Channel name: "Channel 5 HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 18112 service name: "CBBC HD" user name: "" channel name: "CBBC HD" Deb2: Autoconf: Channel name: "CBBC HD" LCN asked and the NIT has been seen, SAP will be sent for this channel Deb1: Autoconf: Channel SID 20160 service name: "TBN UK" user name: "" channel name: "TBN UK" Deb2: Autoconf: Channel name: "TBN UK" LCN asked and the NIT has been seen, SAP will be sent for this channel Info: Autoconf: We update the channel status Info: Autoconf: Looking through all channels to see if they are ready for streaming Deb0: Autoconf: Service OK becoming ready. Name "BBC TWO HD", id 17472 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "BBC ONE HD", id 17540 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "ITV HD", id 17609 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "Channel 4 HD", id 17664 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "Channel 5 HD", id 17728 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "CBBC HD", id 18112 type Advanced codec HD Television Deb0: Autoconf: Service OK becoming ready. Name "TBN UK", id 20160 type Advanced codec SD Television Info: Autoconf: We update the channel filters Info: Common chan: Looking through all services to update their filters Deb0: Common chan: pid 100 added Deb0: Common chan: pid 200 added Deb0: Common chan: pid 300 added Deb0: Common chan: pid 6400 added Deb0: Common chan: pid 6600 added Deb0: Common chan: pid 7100 added Deb0: Common chan: pid 7900 added Deb0: Common chan: Open the new filters Deb1: DVB: Setting filter for PID 100 Deb1: DVB: Setting filter for PID 200 Deb1: DVB: Setting filter for PID 300 Deb1: DVB: Setting filter for PID 6400 Deb1: DVB: Setting filter for PID 6600 Deb1: DVB: Setting filter for PID 7100 Deb1: DVB: Setting filter for PID 7900 Info: Autoconf: We update the channel networking Deb1: Common chan: Computing expressions in string "239.100.0.0" Info: Common chan: We open the channel 0 multicast IPv4 socket address 239.100.0.0:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.1" Info: Common chan: We open the channel 1 multicast IPv4 socket address 239.100.0.1:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.2" Info: Common chan: We open the channel 2 multicast IPv4 socket address 239.100.0.2:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.3" Info: Common chan: We open the channel 3 multicast IPv4 socket address 239.100.0.3:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.4" Info: Common chan: We open the channel 4 multicast IPv4 socket address 239.100.0.4:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.5" Info: Common chan: We open the channel 5 multicast IPv4 socket address 239.100.0.5:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb1: Common chan: Computing expressions in string "239.100.0.6" Info: Common chan: We open the channel 6 multicast IPv4 socket address 239.100.0.6:1234 Deb1: Network: Setting IPv4 multicast iface to enp1s0, index 2 Deb2: TS: Full packet left: 1, we copy length 303 Deb2: TS: General information PID 17 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 1 Deb2: TS: Starting a packet PID 17 cc 1 len 183 expected len 575 Deb2: TS: First bytes 0x46 0xf2 0x3c 0xa0 0x00 0xcf 0x00 0x00 Deb2: TS: Struct data table_id 0x46 section_syntax_indicator 0x01 section_length 0x23c transport_stream_id 0xa000 version_number 0x07 current_next_indicator 0x01 last_section_number 0x00 Deb0: SDT rewrite: Full SDT updated. section number 0, last_section_number 0 Deb1: SDT rewrite: New sdt version. Old : -1, new: 20 Deb0: Main: The SDT version changed, we force the update of all the channels. Deb1: SDT rewrite: We need to rewrite the SDT for the channel 0 : "BBC TWO HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 15 (on 38) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 14 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 0 : "BBC TWO HD". service_id : 17472 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 1 : "BBC ONE HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 17472 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 15 (on 38) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 14 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 1 : "BBC ONE HD". service_id : 17540 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 2 : "ITV HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17472 Deb1: SDT rewrite: Program dropped. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17540 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 11 (on 33) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 13 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 2 : "ITV HD". service_id : 17609 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 3 : "Channel 4 HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17472 Deb1: SDT rewrite: Program dropped. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17540 Deb1: SDT rewrite: Program dropped. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17609 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 17 (on 44) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 18 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 3 : "Channel 4 HD". service_id : 17664 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 4 : "Channel 5 HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17472 Deb1: SDT rewrite: Program dropped. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17540 Deb1: SDT rewrite: Program dropped. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17609 Deb1: SDT rewrite: Program dropped. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17664 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 17 (on 39) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 13 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 4 : "Channel 5 HD". service_id : 17728 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 5 : "CBBC HD" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17472 Deb1: SDT rewrite: Program dropped. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17540 Deb1: SDT rewrite: Program dropped. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17609 Deb1: SDT rewrite: Program dropped. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17664 Deb1: SDT rewrite: Program dropped. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17728 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 12 (on 35) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 14 actual Deb2: SDT rewrite: descriptor_tag 0x5f descriptor_len 6 actual Deb2: SDT rewrite: descriptor_tag 0x7e descriptor_len 3 actual Deb0: SDT rewrite: NEW program for channel 5 : "CBBC HD". service_id : 18112 Deb1: SDT rewrite: We need to rewrite the SDT for the channel 6 : "TBN UK" Deb1: SDT rewrite: table id 0x42 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17472 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17540 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17609 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17664 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17728 Deb1: SDT rewrite: Program dropped. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 18112 Deb1: SDT rewrite: Program found, we search for interesting descriptors Deb2: SDT rewrite: We copy this descriptor : descriptor_tag 0x48 descriptor_len 11 (on 26) loop length 0 pos 0 Deb2: SDT rewrite: descriptor_tag 0x73 descriptor_len 15 actual Deb0: SDT rewrite: NEW program for channel 6 : "TBN UK". service_id : 20160 Deb1: Common chan: PMT Need update. stored version : -1, new: 0 Deb1: Common chan: We update the PMT for channel 6 sid 20160 Deb2: TS: General information PID 7900 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 9 Deb2: TS: Starting a packet PID 7900 cc 9 len 49 expected len 49 Deb2: TS: First bytes 0x02 0xb0 0x2e 0x4e 0xc0 0xc1 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x2e transport_stream_id 0x4ec0 version_number 0x00 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 49. There's now 1 full packet Deb2: TS: Calling recursively, data left 134 Deb2: TS: Stuffing bytes found data left 134 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 0 : "BBC TWO HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb0: PAT Rewrite: NEW program for channel 0 : "BBC TWO HD". PMT pid : 100 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 17540 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 17609 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 17664 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 17728 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 18112 Deb1: PAT Rewrite: Program dropped because of service_id. channel 0 :"BBC TWO HD". service_id chan : 17472 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 1 : "BBC ONE HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 17472 Deb0: PAT Rewrite: NEW program for channel 1 : "BBC ONE HD". PMT pid : 6600 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 17609 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 17664 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 17728 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 18112 Deb1: PAT Rewrite: Program dropped because of service_id. channel 1 :"BBC ONE HD". service_id chan : 17540 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 2 : "ITV HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17472 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17540 Deb0: PAT Rewrite: NEW program for channel 2 : "ITV HD". PMT pid : 200 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17664 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 17728 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 18112 Deb1: PAT Rewrite: Program dropped because of service_id. channel 2 :"ITV HD". service_id chan : 17609 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 3 : "Channel 4 HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17472 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17540 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17609 Deb0: PAT Rewrite: NEW program for channel 3 : "Channel 4 HD". PMT pid : 300 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 17728 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 18112 Deb1: PAT Rewrite: Program dropped because of service_id. channel 3 :"Channel 4 HD". service_id chan : 17664 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 4 : "Channel 5 HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17472 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17540 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17609 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 17664 Deb0: PAT Rewrite: NEW program for channel 4 : "Channel 5 HD". PMT pid : 6400 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 18112 Deb1: PAT Rewrite: Program dropped because of service_id. channel 4 :"Channel 5 HD". service_id chan : 17728 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 5 : "CBBC HD" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17472 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17540 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17609 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17664 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 17728 Deb0: PAT Rewrite: NEW program for channel 5 : "CBBC HD". PMT pid : 7100 Deb1: PAT Rewrite: Program dropped because of service_id. channel 5 :"CBBC HD". service_id chan : 18112 service_id prog 20160 Deb1: PAT Rewrite: We need to rewrite the PAT for the channel 6 : "TBN UK" Deb1: PAT Rewrite: PAT rewrite : pointer field 0x0 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17472 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17540 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17609 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17664 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 17728 Deb1: PAT Rewrite: Program dropped because of service_id. channel 6 :"TBN UK". service_id chan : 20160 service_id prog 18112 Deb0: PAT Rewrite: NEW program for channel 6 : "TBN UK". PMT pid : 7900 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 2 sid 17609 Deb2: TS: General information PID 200 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 8 Deb2: TS: Starting a packet PID 200 cc 8 len 90 expected len 90 Deb2: TS: First bytes 0x02 0xb0 0x57 0x44 0xc9 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x57 transport_stream_id 0x44c9 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 90. There's now 1 full packet Deb2: TS: Calling recursively, data left 93 Deb2: TS: Stuffing bytes found data left 93 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 1 sid 17540 Deb2: TS: General information PID 6600 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 8 Deb2: TS: Starting a packet PID 6600 cc 8 len 148 expected len 148 Deb2: TS: First bytes 0x02 0xb0 0x91 0x44 0x84 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x91 transport_stream_id 0x4484 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 148. There's now 1 full packet Deb2: TS: Calling recursively, data left 35 Deb2: TS: Stuffing bytes found data left 35 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 5 sid 18112 Deb2: TS: General information PID 7100 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 7 Deb2: TS: Starting a packet PID 7100 cc 7 len 132 expected len 132 Deb2: TS: First bytes 0x02 0xb0 0x81 0x46 0xc0 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x81 transport_stream_id 0x46c0 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 132. There's now 1 full packet Deb2: TS: Calling recursively, data left 51 Deb2: TS: Stuffing bytes found data left 51 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 0 sid 17472 Deb2: TS: General information PID 100 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 7 Deb2: TS: Starting a packet PID 100 cc 7 len 148 expected len 148 Deb2: TS: First bytes 0x02 0xb0 0x91 0x44 0x40 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x91 transport_stream_id 0x4440 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 148. There's now 1 full packet Deb2: TS: Calling recursively, data left 35 Deb2: TS: Stuffing bytes found data left 35 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 3 sid 17664 Deb2: TS: General information PID 300 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 8 Deb2: TS: Starting a packet PID 300 cc 8 len 93 expected len 93 Deb2: TS: First bytes 0x02 0xb0 0x5a 0x45 0x00 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x5a transport_stream_id 0x4500 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 93. There's now 1 full packet Deb2: TS: Calling recursively, data left 90 Deb2: TS: Stuffing bytes found data left 90 Deb1: Common chan: PMT Need update. stored version : -1, new: 2 Deb1: Common chan: We update the PMT for channel 4 sid 17728 Deb2: TS: General information PID 6400 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 7 Deb2: TS: Starting a packet PID 6400 cc 7 len 90 expected len 90 Deb2: TS: First bytes 0x02 0xb0 0x57 0x45 0x40 0xc5 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x57 transport_stream_id 0x4540 version_number 0x02 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 90. There's now 1 full packet Deb2: TS: Calling recursively, data left 93 Deb2: TS: Stuffing bytes found data left 93 Deb1: Common chan: We update the PMT for channel 6 sid 20160 Deb2: TS: Full packet left: 1, we copy length 49 Deb2: TS: General information PID 7900 adaptation_field_control 1 payload_unit_start_indicator 1 continuity_counter 10 Deb2: TS: Starting a packet PID 7900 cc 10 len 49 expected len 49 Deb2: TS: First bytes 0x02 0xb0 0x2e 0x4e 0xc0 0xc1 0x00 0x00 Deb2: TS: Struct data table_id 0x02 section_syntax_indicator 0x01 section_length 0x2e transport_stream_id 0x4ec0 version_number 0x00 current_next_indicator 0x01 last_section_number 0x00 Deb2: TS: New full packet len 49. There's now 1 full packet Deb2: TS: Calling recursively, data left 134 Deb2: TS: Stuffing bytes found data left 134 Deb1: Autoconf: PMT (PID 7900) read for configuration of channel "TBN UK" with SID 20160 Info: Main: Channel "BBC TWO HD" down.Card 0 Info: Main: Channel "BBC ONE HD" down.Card 0 Info: Main: Channel "ITV HD" down.Card 0 Info: Main: Channel "Channel 4 HD" down.Card 0 Info: Main: Channel "Channel 5 HD" down.Card 0 Info: Main: Channel "CBBC HD" down.Card 0 Info: Main: Channel "TBN UK" down.Card 0

Thanks for taking time to read this!

Steven

tonyapton commented 4 years ago

I cant get T2 to work either.... Rowridge tranmitter, (Kaffeine has no problem tuning but doesnt stream anymore)

tazootv commented 4 years ago

I narrowed it down to 1 channel (TBN UK), I'm not sure why it is crashing mumudvb, but if you remove it using - autoconf_sid_list_ignore=20160 in the config file autoconfiguration works again, I am presuming Freeview are using the same SID across the UK for TBN. If I add the channel without using autoconfiguration, the channel plays fine. I've also ran it through TSreader and there's nothing out of the ordinary.

tonyapton commented 4 years ago

thanks i found some code ln -s /dev/dvb/adapter0/demux0 /dev/dvb/adapter0/demux1 ln -s /dev/dvb/adapter0/dvr0 /dev/dvb/adapter0/dvr1 and ran that first then did you pid ignore and it runs but ..... it resets itself on the fly and i get all kinds of different pids etc but at least the channels stream... and can be read on other pcs running vlc on my lan.... except for one .... that only shows a muliticoloured screen of garbage Linux

what bugs me is Kaffiene works perfectly so someone somewhere must know how to fix mumudvb to do whatever kaffeine does....

braice commented 4 years ago

Hello Can you try to run it in gdb and add to the sid list ignore all BUT the 20160 https://stackoverflow.com/questions/6121094/how-do-i-run-a-program-with-commandline-arguments-using-gdb-within-a-bash-script

When it crashes just type "bt" to get a backtrace

Thank you

On Tue, Feb 18, 2020 at 9:10 AM Steven Matthews notifications@github.com wrote:

I narrowed it down to 1 channel (TBN UK), I'm not sure why it is crashing mumudvb, but if you remove it using - autoconf_sid_list_ignore=20160 in the config file autoconfiguration works again, I am presuming Freeview are using the same SID across the UK for TBN. If I add the channel without using autoconfiguration, the channel plays fine. I've also ran it through TSreader and there's nothing out of the ordinary.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257?email_source=notifications&email_token=AACRIDYDI3A4NMPO2M32VR3RDPT5ZA5CNFSM4KJCYHM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMCDINI#issuecomment-587478069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDZABLHUYZNTTVMTT63RDPT5ZANCNFSM4KJCYHMQ .

braice commented 4 years ago

That is surprising, So you seem to have a multi tuner card. correct ? Can you send me a screenshot of Kaffeine configuration?

Can you try the gdb option, if it crashes it is the way I can investigate where it comes from

On Thu, Feb 20, 2020 at 2:42 PM tonyapton notifications@github.com wrote:

thanks i found some code ln -s /dev/dvb/adapter0/demux0 /dev/dvb/adapter0/demux1 ln -s /dev/dvb/adapter0/dvr0 /dev/dvb/adapter0/dvr1 and ran that first then did you pid ignore and it runs but ..... it resets itself on the fly and i get all kinds of different pids etc but at least the channels stream... and can be read on other pcs running vlc on my lan.... except for one .... that only shows a muliticoloured screen of garbage Linux

what bugs me is Kaffiene works perfectly so someone somewhere must know how to fix mumudvb to do whatever kaffeine does....

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257?email_source=notifications&email_token=AACRID7MUAUEBF4JCX2R22LRD3MLZA5CNFSM4KJCYHM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMPZOEI#issuecomment-589272849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID3MJOQ67S3FPDXLCBDRD3MLZANCNFSM4KJCYHMQ .

tazootv commented 4 years ago

Hi

Thanks for the response.

Please find backtrace from gdb, please let me know if you need anything else

GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from mumudvb...done. (gdb) run Starting program: /usr/local/bin/mumudvb -d -c 6.conf [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". MuMuDVB Version 2.1.0_20181020_mumudvb2 --- Build information --- Built without CAM support. Built without SCAM support. Built with ATSC support. Built with support for DVB API Version 5.10. Built with support for DVB-T2.

Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004 Released under the GPL. Latest version available from http://mumudvb.net/ Project from the cr@ns (http://www.crans.org) by Brice DUBOST (mumudvb@braice.net)

Info: Rewrite: You have enabled the SDT Rewriting Info: Tune: You will use DVB API version 5 for tuning your card. Info: Autoconf: You have to set autoconfiguration in full mode to use autoconf of the radios Info: SAP: Sap announces will be sent Info: Rewrite: You have enabled the PAT Rewriting Info: Main: ========== End of configuration, MuMuDVB version 2.1.0_20181020_mumudvb2 is starting ========== Info: Main: Streaming. Freq 666000.000000 Info: Tune: Using DVB card "Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T)" tuner 0 Info: Tune: Tuning Terrestrial to 666000000 Hz, Bandwidth: 8000000 Info: Tune: Tuning With DVB-API version 5. delivery system : 16 Info: Tune: FE_STATUS: Info: Tune: FE_STATUS: Info: Tune: FE_HAS_SIGNAL : found something above the noise level Info: Tune: FE_HAS_CARRIER : found a DVB signal Info: Tune: FE_HAS_VITERBI : FEC is stable Info: Tune: FE_HAS_SYNC : found sync bytes Info: Tune: FE_HAS_LOCK : everything's working... Info: Tune: Event: Frequency: 1434065604 Info: Tune: Bit error rate: 0 Info: Tune: Signal strength: 39360 Info: Tune: SNR: 45920 Info: Main: Card 5, tuner 0 tuned [New Thread 0x7ffff75bc700 (LWP 18380)] main 0x7fffffefb5d0 [New Thread 0x7ffff6dbb700 (LWP 18381)] Info: Common chan: Looking through all services to update their filters Info: Unicast: We open the Master http socket for address 0.0.0.0:4205 Info: Autoconf: Autoconfiguration is now ready to work for you ! Info: Autoconf: The PAT version changed, channels have changed Info: Autoconf: New PAT we force SDT update after all sections seen WARN: Autoconf: Channel 0 SID 17472 Force PMT update WARN: Autoconf: Channel 1 SID 17540 Force PMT update WARN: Autoconf: Channel 2 SID 17609 Force PMT update WARN: Autoconf: Channel 3 SID 17664 Force PMT update WARN: Autoconf: Channel 4 SID 17728 Force PMT update WARN: Autoconf: Channel 5 SID 18112 Force PMT update WARN: Autoconf: Channel 6 SID 20160 Force PMT update Info: Autoconf: The CAT version changed Info: Autoconf: New CAT we force SDT update after all sections seen Info: Autoconf: The SDT version changed, channels description have changed Info: Autoconf: We update the channel names Info: Autoconf: We update the channel status Info: Autoconf: Looking through all channels to see if they are ready for streaming Info: Autoconf: We update the channel filters Info: Common chan: Looking through all services to update their filters Info: Autoconf: We update the channel networking Info: Common chan: We open the channel 6 multicast IPv4 socket address 239.100.5.6:1234 Info: Main: Channel "TBN UK" down.Card 5 ^C Thread 1 "mumudvb" received signal SIGINT, Interrupt. pmt_find_descriptor (pos=, descriptors_loop_len=12, buf=0x5555557d7ddc "\033\376\335\360\006R\001\vp\001\004\021\376\336\360\021R\001\f\n\004eng", tag=9 '\t') at autoconf_pmt.c:538 538 if (tag == descriptor_tag) (gdb) bt

0 pmt_find_descriptor (pos=, descriptors_loop_len=12, buf=0x5555557d7ddc "\033\376\335\360\006R\001\vp\001\004\021\376\336\360\021R\001\f\n\004eng", tag=9 '\t') at autoconf_pmt.c:538

1 autoconf_get_pmt_pids (auto_p=auto_p@entry=0x7fffffef1770, pmt=pmt@entry=0x5555557d7dd0, pids=pids@entry=0x7fffffef0180, num_pids=num_pids@entry=0x7fffffef017c, pids_type=pids_type@entry=0x7fffffef0380,

pids_language=pids_language@entry=0x7fffffef0580, ca_sys_id=0x7ffffff08268) at autoconf_pmt.c:87

2 0x0000555555572621 in autoconf_read_pmt (auto_p=auto_p@entry=0x7fffffef1770, channel=channel@entry=0x7ffffff07368, pmt=0x5555557d7dd0) at autoconf_pmt.c:410

3 0x000055555555a8d3 in autoconf_new_packet (pid=7900, ts_packet=, auto_p=0x7fffffef1770, fds=0x7fffffef35b0, chan_p=0x7fffffefb5d0, tune_p=0x7fffffef0f50, multi_p=0x7fffffef0aa0, unicast_vars=0x7fffffef0b60,

server_id=0, scam_vars=0x0) at autoconf.c:681

4 0x0000555555558a8a in main (argc=, argv=) at mumudvb.c:1499

Thanks, Steven

braice commented 4 years ago

Please wait for a crash. Or is it doing an infinite loop?

On Thu, Feb 20, 2020 at 3:22 PM Steven Matthews notifications@github.com wrote:

Hi

Thanks for the response.

Please find backtrace from gdb, please let me know if you need anything else GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from mumudvb...done. (gdb) run Starting program: /usr/local/bin/mumudvb -d -c 6.conf [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". MuMuDVB Version 2.1.0_20181020_mumudvb2 --- Build information --- Built without CAM support. Built without SCAM support. Built with ATSC support. Built with support for DVB API Version 5.10. Built with support for DVB-T2.

Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004 Released under the GPL. Latest version available from http://mumudvb.net/ Project from the cr@ns (http://www.crans.org) by Brice DUBOST (mumudvb@braice.net)

Info: Rewrite: You have enabled the SDT Rewriting Info: Tune: You will use DVB API version 5 for tuning your card. Info: Autoconf: You have to set autoconfiguration in full mode to use autoconf of the radios Info: SAP: Sap announces will be sent Info: Rewrite: You have enabled the PAT Rewriting Info: Main: ========== End of configuration, MuMuDVB version 2.1.0_20181020_mumudvb2 is starting ========== Info: Main: Streaming. Freq 666000.000000 Info: Tune: Using DVB card "Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T)" tuner 0 Info: Tune: Tuning Terrestrial to 666000000 Hz, Bandwidth: 8000000 Info: Tune: Tuning With DVB-API version 5. delivery system : 16 Info: Tune: FE_STATUS: Info: Tune: FE_STATUS: Info: Tune: FE_HAS_SIGNAL : found something above the noise level Info: Tune: FE_HAS_CARRIER : found a DVB signal Info: Tune: FE_HAS_VITERBI : FEC is stable Info: Tune: FE_HAS_SYNC : found sync bytes Info: Tune: FE_HAS_LOCK : everything's working... Info: Tune: Event: Frequency: 1434065604 Info: Tune: Bit error rate: 0 Info: Tune: Signal strength: 39360 Info: Tune: SNR: 45920 Info: Main: Card 5, tuner 0 tuned [New Thread 0x7ffff75bc700 (LWP 18380)] main 0x7fffffefb5d0 [New Thread 0x7ffff6dbb700 (LWP 18381)] Info: Common chan: Looking through all services to update their filters Info: Unicast: We open the Master http socket for address 0.0.0.0:4205 Info: Autoconf: Autoconfiguration is now ready to work for you ! Info: Autoconf: The PAT version changed, channels have changed Info: Autoconf: New PAT we force SDT update after all sections seen WARN: Autoconf: Channel 0 SID 17472 Force PMT update WARN: Autoconf: Channel 1 SID 17540 Force PMT update WARN: Autoconf: Channel 2 SID 17609 Force PMT update WARN: Autoconf: Channel 3 SID 17664 Force PMT update WARN: Autoconf: Channel 4 SID 17728 Force PMT update WARN: Autoconf: Channel 5 SID 18112 Force PMT update WARN: Autoconf: Channel 6 SID 20160 Force PMT update Info: Autoconf: The CAT version changed Info: Autoconf: New CAT we force SDT update after all sections seen Info: Autoconf: The SDT version changed, channels description have changed Info: Autoconf: We update the channel names Info: Autoconf: We update the channel status Info: Autoconf: Looking through all channels to see if they are ready for streaming Info: Autoconf: We update the channel filters Info: Common chan: Looking through all services to update their filters Info: Autoconf: We update the channel networking Info: Common chan: We open the channel 6 multicast IPv4 socket address 239.100.5.6:1234 Info: Main: Channel "TBN UK" down.Card 5 ^C Thread 1 "mumudvb" received signal SIGINT, Interrupt. pmt_find_descriptor (pos=, descriptors_loop_len=12, buf=0x5555557d7ddc "\033\376\335\360\006R\001\vp\001\004\021\376\336\360\021R\001\f\n\004eng", tag=9 '\t') at autoconf_pmt.c:538 538 if (tag == descriptor_tag) (gdb) bt

0 pmt_find_descriptor (pos=, descriptors_loop_len=12, buf=0x5555557d7ddc

"\033\376\335\360\006R\001\vp\001\004\021\376\336\360\021R\001\f\n\004eng", tag=9 '\t') at autoconf_pmt.c:538

1 https://github.com/braice/MuMuDVB/pull/1 autoconf_get_pmt_pids

(auto_p=auto_p@entry=0x7fffffef1770, pmt=pmt@entry=0x5555557d7dd0, pids=pids@entry=0x7fffffef0180, num_pids=num_pids@entry=0x7fffffef017c, pids_type=pids_type@entry=0x7fffffef0380, pids_language=pids_language@entry=0x7fffffef0580, ca_sys_id=0x7ffffff08268) at autoconf_pmt.c:87

2 https://github.com/braice/MuMuDVB/pull/2 0x0000555555572621 in

autoconf_read_pmt (auto_p=auto_p@entry=0x7fffffef1770, channel=channel@entry=0x7ffffff07368, pmt=0x5555557d7dd0) at autoconf_pmt.c:410

3 https://github.com/braice/MuMuDVB/pull/3 0x000055555555a8d3 in

autoconf_new_packet (pid=7900, ts_packet=, auto_p=0x7fffffef1770, fds=0x7fffffef35b0, chan_p=0x7fffffefb5d0, tune_p=0x7fffffef0f50, multi_p=0x7fffffef0aa0, unicast_vars=0x7fffffef0b60, server_id=0, scam_vars=0x0) at autoconf.c:681

4 https://github.com/braice/MuMuDVB/pull/4 0x0000555555558a8a in main

(argc=, argv=) at mumudvb.c:1499

Thanks, Steven

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257?email_source=notifications&email_token=AACRID3RAGN6HS63UZOD6KDRD3Q6XA5CNFSM4KJCYHM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMP5WEQ#issuecomment-589290258, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDZ634SXXSVJZR7KUKTRD3Q6XANCNFSM4KJCYHMQ .

tazootv commented 4 years ago

It is doing an infinite loop I think PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1040 root 20 0 94360 20748 2500 R 100.3 0.6 1:06.41 mumudvb

braice commented 4 years ago

Ok, so Can I get the logs in very verbose mode (-vvv on the command line) for a few minutes of run ?

On Fri, Feb 21, 2020 at 3:56 AM Steven Matthews notifications@github.com wrote:

It is doing an infinite loop I think PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1040 root 20 0 94360 20748 2500 R 100.3 0.6 1:06.41 mumudvb

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257?email_source=notifications&email_token=AACRID7VZ5ZY3DZPBOITXM3RD6JMTA5CNFSM4KJCYHM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMR7UXY#issuecomment-589560415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID4CZVAZQJ6FEDQJ44TRD6JMTANCNFSM4KJCYHMQ .

tazootv commented 4 years ago

Hi, Sorry for the delay.

Please find log attached log.txt

malakudi commented 3 years ago

This is the same issue with the one reported by me in https://github.com/braice/MuMuDVB/issues/230 If the main developer cannot fix this after almost two years (I reported this on 23/10/2018) then it means that this project is either dead or the developer is not interested in fixing this specific problem.

braice commented 3 years ago

Hello

I do not have equipment to test and indeed this project is less maintained than before But you are right I overlooked your issue and I am sorry for this. It is also an open source project so feel free to propose your fix (if you can get one of course) :-)

Looking to your infinite loop you reported in issue #230 I am indeed a bit surprised by the piece of code that seem to be looping and I cannot wrap my head around of what is wrong a print of the variables

descriptors_loop_len buf[1] descriptor_len descriptor_tag

would be useful (do like log_message( log_module, MSG_DEBUG,"0x%02x - \n", descriptor_tag);)

This loop looks at the descriptors of the PMT until the PMT is empty, if a descriptor is empty buf[1] should be 0 and the code should advance at least by 2 bytes. The DVBsnoop decoding does not seem to show anything weird so I really do not know what is going on. If you want to follow the code you can look here to see how a PMT table is structured https://en.wikipedia.org/wiki/Program-specific_information

  while (descriptors_loop_len > 0)
    {
            unsigned char descriptor_tag = buf[0];
            unsigned char descriptor_len = buf[1] + 2;

            if (tag == descriptor_tag)
                    return 1;

            if(pos!=NULL)
                    *pos += descriptor_len;
            buf += descriptor_len;
            descriptors_loop_len -= descriptor_len;
    }

On Mon, Sep 7, 2020 at 1:36 PM Panagiotis Malakoudis < notifications@github.com> wrote:

This is the same issue with the one reported by me in #230 https://github.com/braice/MuMuDVB/issues/230 If the main developer cannot fix this after almost two years (I reported this on 23/10/2018) then it means that this project is either dead or the developer is not interested in fixing this specific problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-688267819, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDYVHBEQ4PIPAW5PDPDSETASPANCNFSM4KJCYHMQ .

malakudi commented 3 years ago

I tried to follow the code and find a possible fix but my understanding in PMT parsing is not good enough. I will put those debug logs and report back.

braice commented 3 years ago

I think I might get it, If there is something odd with the service like the descriptor loop len = 1 and descriptor_len (aka buf[1]) = 0 the operation being unsigned can loop back indefinitely and we do not hit the condition > 0 on the top

Try with a block if(descriptors_loop_len < descriptor_len) { //put some debug/warning here break; }

Just below the line unsigned char descriptor_len = buf[1] + 2;

On Sun, Sep 27, 2020 at 8:17 PM Panagiotis Malakoudis < notifications@github.com> wrote:

I tried to follow the code and find a possible fix but my understanding in PMT parsing is not good enough. I will put those debug logs and report back.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-699669186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID6EXXJEDJX52BWTWOTSH56SPANCNFSM4KJCYHMQ .

malakudi commented 3 years ago

It goes again in infinite loop, the if statement doesn't help. I added the debug info you asked: log_message( log_module, MSG_ERROR, "MYDEBUG1 %02X %02X %02X %02X\n",descriptors_loop_len, buf[1], descriptor_len,descriptor_tag); Output in infinite loop is: ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

braice commented 3 years ago

Hello

Now I understand why it goes to an infinite loop, but the problem is probably in the calling function that does not start with the right offset. I will share a bit more my thoughts

Here, this function looks through the descriptors of the PMT table to see if the descriptor list contains one of the descriptors we are looking for. It does an infinite loop by hitting a descriptor for which the length seem to be FE, the total len is the announced len + 2 bytes of header When in 8 bit unsigned one do 0xFE + 0x02 you get 0x00 thus the loop does not shift the pointer and goes infinite

we can do two things. 1 put an exit condition in the while like if(descriptor_len ==0){ display_warning break; }

This will not fundamentally fix the issue but at least we can avoid the infinite loop

  1. dive into why it sees this in the first place I will use your dvbsnoop to do that by hand and I'll let you know if more debug messages might be useful

On Wed, Sep 30, 2020 at 9:12 AM Panagiotis Malakoudis < notifications@github.com> wrote:

It goes again in infinite loop, the if statement doesn't help. I added the debug info you asked: log_message( log_module, MSG_ERROR, "MYDEBUG1 %02X %02X %02X %02X\n",descriptors_loop_len, buf[1], descriptor_len,descriptor_tag); Output in infinite loop is: ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-701205288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID3L2WNVVSXYWMCCAPTSILK47ANCNFSM4KJCYHMQ .

braice commented 3 years ago

The thing that would help though is to have the messages you get before the loop on

ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

Thanks

On Wed, Sep 30, 2020 at 10:16 AM Brice Dubost braice@braice.net wrote:

Hello

Now I understand why it goes to an infinite loop, but the problem is probably in the calling function that does not start with the right offset. I will share a bit more my thoughts

Here, this function looks through the descriptors of the PMT table to see if the descriptor list contains one of the descriptors we are looking for. It does an infinite loop by hitting a descriptor for which the length seem to be FE, the total len is the announced len + 2 bytes of header When in 8 bit unsigned one do 0xFE + 0x02 you get 0x00 thus the loop does not shift the pointer and goes infinite

we can do two things. 1 put an exit condition in the while like if(descriptor_len ==0){ display_warning break; }

This will not fundamentally fix the issue but at least we can avoid the infinite loop

  1. dive into why it sees this in the first place I will use your dvbsnoop to do that by hand and I'll let you know if more debug messages might be useful

On Wed, Sep 30, 2020 at 9:12 AM Panagiotis Malakoudis < notifications@github.com> wrote:

It goes again in infinite loop, the if statement doesn't help. I added the debug info you asked: log_message( log_module, MSG_ERROR, "MYDEBUG1 %02X %02X %02X %02X\n",descriptors_loop_len, buf[1], descriptor_len,descriptor_tag); Output in infinite loop is: ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-701205288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID3L2WNVVSXYWMCCAPTSILK47ANCNFSM4KJCYHMQ .

braice commented 3 years ago

Ok

Got it ! Again, I am sorry it took so long

Please give a try to the attached file just replace the current one with this one in the src folder

Brice

On Wed, Sep 30, 2020 at 10:20 AM Brice Dubost braice@braice.net wrote:

The thing that would help though is to have the messages you get before the loop on

ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

Thanks

On Wed, Sep 30, 2020 at 10:16 AM Brice Dubost braice@braice.net wrote:

Hello

Now I understand why it goes to an infinite loop, but the problem is probably in the calling function that does not start with the right offset. I will share a bit more my thoughts

Here, this function looks through the descriptors of the PMT table to see if the descriptor list contains one of the descriptors we are looking for. It does an infinite loop by hitting a descriptor for which the length seem to be FE, the total len is the announced len + 2 bytes of header When in 8 bit unsigned one do 0xFE + 0x02 you get 0x00 thus the loop does not shift the pointer and goes infinite

we can do two things. 1 put an exit condition in the while like if(descriptor_len ==0){ display_warning break; }

This will not fundamentally fix the issue but at least we can avoid the infinite loop

  1. dive into why it sees this in the first place I will use your dvbsnoop to do that by hand and I'll let you know if more debug messages might be useful

On Wed, Sep 30, 2020 at 9:12 AM Panagiotis Malakoudis < notifications@github.com> wrote:

It goes again in infinite loop, the if statement doesn't help. I added the debug info you asked: log_message( log_module, MSG_ERROR, "MYDEBUG1 %02X %02X %02X %02X\n",descriptors_loop_len, buf[1], descriptor_len,descriptor_tag); Output in infinite loop is: ERRO: Autoconf: MYDEBUG1 0C FE 00 1B

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-701205288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID3L2WNVVSXYWMCCAPTSILK47ANCNFSM4KJCYHMQ .

malakudi commented 3 years ago

I don't see any attachment

braice commented 3 years ago

Seems that github do not like .c attachment, you'll have to change the extension

On Wed, Sep 30, 2020 at 12:46 PM Panagiotis Malakoudis < notifications@github.com> wrote:

I don't see any attachment

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-701312595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDZDLEY7YUVQZTYDBEDSIMD7LANCNFSM4KJCYHMQ .

/*

/** @file

static char *log_module="Autoconf: ";

include

include

include "errors.h"

include "mumudvb.h"

include "autoconf.h"

include "log.h"

include "dvb.h"

int pmt_find_descriptor(uint8_t tag, unsigned char buf, int descriptors_loop_len, int pos); void pmt_print_descriptor_tags(unsigned char buf, int descriptors_loop_len); mumudvb_ca_system_t autoconf_get_ca_system(auto_p_t *auto_p, int ca_system_id);

/****/ //Parts of this code (read of the pmt and read of the pat) // from libdvb, strongly modified, with commentaries added /****/ void autoconf_get_pmt_pids(auto_p_t auto_p, mumudvb_ts_packet_t pmt, int pids, int num_pids, int pids_type, char (pids_language)[4], int ca_sys_id) { num_pids=0;

char temp_pids_language[MAX_PIDS][4];
memset(temp_pids_language,0,MAX_PIDS*4*sizeof(char));
pmt_t *header;
pmt_info_t *descr_header;
int program_info_length;
int section_len,descr_section_len;
int pid;
int pid_type=0;

section_len=pmt->len_full;
header=(pmt_t *)pmt->data_full;

program_info_length=HILO(header->program_info_length); //program_info_length
char language[4]="";
int pos=0;

//For CAM debugging purposes, we look if we can find a CA descriptor to display CA system IDs
//Also find ECM pid...
int pos_ca_descr[255];
int n_ca_descr;
int len;
n_ca_descr = 0;
//search in the main loop
if(program_info_length > 0)
{
    while(len = pmt_find_descriptor(0x09,pmt->data_full+PMT_LEN,PMT_LEN+program_info_length,&pos),len)
    {
        log_message( log_module,  MSG_FLOOD,"  Found a CA descr in main loop at pos %d", pos);

        pos_ca_descr[n_ca_descr] = pos+PMT_LEN;
        pos+=len;
        n_ca_descr ++;

    }
}
//also search in the program loops
for (int i=program_info_length+PMT_LEN; i<=section_len-(PMT_INFO_LEN+4); i+=descr_section_len+PMT_INFO_LEN)
{
    pos=0;
    descr_header=(pmt_info_t *)(pmt->data_full+i);
    //We get the length of the descriptor
    descr_section_len=HILO(descr_header->ES_info_length);        //ES_info_length
    while(len = pmt_find_descriptor(0x09,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, &pos),len)
    {
        log_message( log_module,  MSG_FLOOD,"  Found a CA descr in program loop (%d) at relative pos %d", i, pos);
        pos_ca_descr[n_ca_descr] = pos+i+PMT_INFO_LEN;
        //we need to skip this descriptor
        pos+=len;
        n_ca_descr ++;
    }
}
//now we can loop on the ca descriptors
for (int i=0; i<n_ca_descr; i++)
{
    descr_ca_t *ca_descriptor;
    ca_descriptor=(descr_ca_t *)(pmt->data_full+pos_ca_descr[i]);
    int ca_type = HILO(ca_descriptor->CA_type);
    pid=HILO(ca_descriptor->CA_PID);
    pid_type=PID_ECM;
    log_message( log_module,  MSG_DEBUG,"  ECM \tPID %d\n",pid);
    pids[*num_pids]=pid;
    pids_type[*num_pids]=pid_type;
    snprintf(temp_pids_language[*num_pids],4,"%s",language);
    (*num_pids)++;

    // get the EMM PID
    mumudvb_ca_system_t *ca_system;
    ca_system = autoconf_get_ca_system(auto_p, ca_type);
    if(ca_system != NULL)
    {
        log_message( log_module,  MSG_DEBUG,"  EMM \tPID %d\n", ca_system->emm_pid);
        // The pid might be already added (the EMM pid might be used by different CA systems)
        // Check if it was already added
        int pid_already_added = 0;
        for(int i = 0; i < *num_pids; i++)
        {
            if(pids[i] == ca_system->emm_pid)
            {
                pid_already_added = 1;
                break;
            }
        }
        if (pid_already_added == 0)
        {
            pids[*num_pids]=ca_system->emm_pid;
            pids_type[*num_pids]=PID_EMM;
            (*num_pids)++;
        }
    }
    else if(auto_p->cat_version != -1)
    {
        log_message( log_module,  MSG_ERROR, "Couldn't find CAT CA system for id 0x%04x\n", ca_type);
    }

    int casysid = 0;    
    while(casysid<32 && ca_sys_id[casysid] && ca_sys_id[casysid]!=ca_type)
        casysid++;
    if(casysid<32 && !ca_sys_id[casysid])
    {
        ca_sys_id[casysid]=ca_type;
        log_message( log_module,  MSG_DETAIL,"CA system id 0x%04x : %s\n", ca_type, ca_sys_id_to_str(ca_type));//we display it with the description
    }
    if(casysid==32)
        log_message( log_module,  MSG_WARN,"Too much CA system id line %d file %s\n", __LINE__,__FILE__);
}

pos=0;
//we read the different descriptors included in the pmt
//for more information see ITU-T Rec. H.222.0 | ISO/IEC 13818 table 2-34
for (int i=program_info_length+PMT_LEN; i<=section_len-(PMT_INFO_LEN+4); i+=descr_section_len+PMT_INFO_LEN)
{
    //we parse the part after the descriptors
    //we map the descriptor header
    descr_header=(pmt_info_t *)(pmt->data_full+i);
    //We get the length of the descriptor
    descr_section_len=HILO(descr_header->ES_info_length);        //ES_info_length

    // Default language value if not found
    snprintf(language,4,"%s","---");
    // Default, no position found
    pos=0;

    pid=HILO(descr_header->elementary_PID);
    //Depending of the stream type we'll take or not this pid
    switch(descr_header->stream_type)
    {
    case 0x01:
        pid_type=PID_VIDEO_MPEG1;
        log_message( log_module,  MSG_DEBUG,"  Video MPEG1 \tPID %d\n",pid);
        break;
    case 0x02:
        pid_type=PID_VIDEO_MPEG2;
        log_message( log_module,  MSG_DEBUG,"  Video MPEG2 \tPID %d\n",pid);
        break;
    case 0x10: /* ISO/IEC 14496-2 Visual - MPEG4 video */
        pid_type=PID_VIDEO_MPEG4_ASP;
        log_message( log_module,  MSG_DEBUG,"  Video MPEG4-ASP \tPID %d\n",pid);
        break;
    case 0x1b: /* AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video */
        pid_type=PID_VIDEO_MPEG4_AVC;
        log_message( log_module,  MSG_DEBUG,"  Video MPEG4-AVC \tPID %d\n",pid);
        break;
    case 0x24: /*HEVC video stream TODO: enter quote*/
        pid_type=PID_VIDEO_MPEG4_HEVC;
        log_message( log_module,  MSG_DEBUG,"  Video MPEG4-HVC \tPID %d\n",pid);
        break;
    case 0x03:
        pid_type=PID_AUDIO_MPEG1;
        log_message( log_module,  MSG_DEBUG,"  Audio MPEG1 \tPID %d\n",pid);
        break;
    case 0x04:
        pid_type=PID_AUDIO_MPEG2;
        log_message( log_module,  MSG_DEBUG,"  Audio MPEG2 \tPID %d\n",pid);
        break;
    case 0x11: /* ISO/IEC 14496-3 Audio with the LATM transport syntax as defined in ISO/IEC 14496-3 */
        pid_type=PID_AUDIO_AAC_LATM;
        log_message( log_module,  MSG_DEBUG,"  Audio AAC-LATM \tPID %d\n",pid);
        break;
    case 0x0f: /* ISO/IEC 13818-7 Audio with ADTS transport syntax - usually AAC */
        pid_type=PID_AUDIO_AAC_ADTS;
        log_message( log_module,  MSG_DEBUG,"  Audio AAC-ADTS \tPID %d\n",pid);
        break;
    case 0x81: /* Audio per ATSC A/53B [2] Annex B */
        pid_type=PID_AUDIO_ATSC;
        log_message( log_module,  MSG_DEBUG,"  Audio ATSC A/53B \tPID %d\n",pid);
        break;

    case 0x06: /* Descriptor defined in EN 300 468 */
        if(descr_section_len) //If we have an associated descriptor, we'll search information in it
        {
            if(pmt_find_descriptor(0x45,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  VBI Data \tPID %d\n",pid);
                pid_type=PID_EXTRA_VBIDATA;
            }else if(pmt_find_descriptor(0x46,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  VBI Teletext \tPID %d\n",pid);
                pid_type=PID_EXTRA_VBITELETEXT;
            }else if(pmt_find_descriptor(0x56,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  Teletext \tPID %d\n",pid);
                pid_type=PID_EXTRA_TELETEXT;
            }else if(pmt_find_descriptor(0x59,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, &pos)){
                log_message( log_module,  MSG_DEBUG,"  Subtitling \tPID %d\n",pid);
                pid_type=PID_EXTRA_SUBTITLE;
                char * lng=(char *)(pmt->data_full+i+PMT_INFO_LEN+pos+2);
                language[0]=lng[0];
                language[1]=lng[1];
                language[2]=lng[2];
                language[3]=0;
            }else if(pmt_find_descriptor(0x6a,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  AC3 (audio) \tPID %d\n",pid);
                pid_type=PID_AUDIO_AC3;
            }else if(pmt_find_descriptor(0x7a,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  Enhanced AC3 (audio) \tPID %d\n",pid);
                pid_type=PID_AUDIO_EAC3;
            }else if(pmt_find_descriptor(0x7b,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  DTS (audio) \tPID %d\n",pid);
                pid_type=PID_AUDIO_DTS;
            }else if(pmt_find_descriptor(0x7c,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, NULL)){
                log_message( log_module,  MSG_DEBUG,"  AAC (audio) \tPID %d\n",pid);
                pid_type=PID_AUDIO_AAC;
            }else
            {
                log_message( log_module,  MSG_DEBUG,"Unknown descriptor see EN 300 468 v1.9.1 table 12, PID %d descriptor tags : ", pid);
                pmt_print_descriptor_tags(pmt->data_full+i+PMT_INFO_LEN,descr_section_len);
                log_message( log_module,  MSG_DEBUG,"\n");
                continue;
            }
        }
        else
        {
            log_message( log_module,  MSG_DEBUG,"PMT read : stream type 0x06 without descriptor\n");
            continue;
        }
        break;

        //Now, the list of what we drop
    case 0x05:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : 0x05, ITU-T Rec. H.222.0 | ISO/IEC 13818-1 private_sections \n",pid);
        continue;
        //Digital Storage Medium Command and Control (DSM-CC) cf H.222.0 | ISO/IEC 13818-1 annex B
    case 0x0a:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : 0x0A ISO/IEC 13818-6 type A (DSM-CC)\n",pid);
        continue;
    case 0x0b:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : 0x0B ISO/IEC 13818-6 type B (DSM-CC)\n",pid);
        continue;
    case 0x0c:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : 0x0C ISO/IEC 13818-6 type C (DSM-CC)\n",pid);
        continue;
    case 0x0D:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : ISO/IEC 13818-6 type D",pid);
        continue;
    case 0x0E:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 auxiliary",pid);
        continue;
    case 0x12:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : ISO/IEC 14496-1 SL-packetized stream or FlexMux stream carried in PES packets",pid);
        continue;
    case 0x13:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : ISO/IEC 14496-1 SL-packetized stream or FlexMux stream carried in ISO/IEC 14496_sections",pid);
        continue;
    case 0x14:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : ISO/IEC 13818-6 Synchronized Download Protocol",pid);
        continue;
    case 0x15:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : Metadata carried in PES packets",pid);
        continue;
    case 0x16:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : Metadata carried in metadata_sections",pid);
        continue;
    case 0x17:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : Metadata carried in ISO/IEC 13818-6 Data Carousel",pid);
        continue;
    case 0x18:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : Metadata carried in ISO/IEC 13818-6 Object Carousel",pid);
        continue;
    case 0x19:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : Metadata carried in ISO/IEC 13818-6 Synchronized Download Protocol",pid);
        continue;
    case 0x1A:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : IPMP stream (defined in ISO/IEC 13818-11, MPEG-2 IPMP)",pid);
        continue;
    case 0x7F:
        log_message( log_module,  MSG_DEBUG, "Dropped PID %d, type : IPMP stream",pid);
        continue;
    default:
        if(descr_header->stream_type >= 0x1C && descr_header->stream_type <= 0x7E)
            log_message( log_module,  MSG_DEBUG, "Dropped PID %d, stream type : 0x%02x : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 Reserved",pid,descr_header->stream_type);
        else if(descr_header->stream_type >= 0x80)
            log_message( log_module,  MSG_DEBUG, "Dropped PID %d, stream type : 0x%02x : User Private",pid,descr_header->stream_type);
        else
            log_message( log_module,  MSG_INFO, "!!!!Unknown stream type : 0x%02x, PID : %d cf ITU-T Rec. H.222.0 | ISO/IEC 13818\n",descr_header->stream_type,pid);
        continue;
    }

    //We keep this pid

    // We try to find a 0x0a (ISO639) descriptor to have language information about the stream
    pos=0;
    if(pmt_find_descriptor(0x0a,pmt->data_full+i+PMT_INFO_LEN,descr_section_len, &pos)){
        char * lng=(char *)(pmt->data_full+i+PMT_INFO_LEN+pos+2);
        language[0]=lng[0];
        language[1]=lng[1];
        language[2]=lng[2];
        language[3]=0;
    }
    log_message( log_module,  MSG_DEBUG,"  PID Language Code = %s\n",language);

    pids[*num_pids]=pid;
    pids_type[*num_pids]=pid_type;
    snprintf(temp_pids_language[*num_pids],4,"%s",language);
    (*num_pids)++;
    if (*num_pids >= MAX_PIDS)
    {
        log_message( log_module,  MSG_ERROR,
                "Too many PIDs : %d\n",
                *num_pids);
        (*num_pids)--;
    }

}
memcpy(pids_language,temp_pids_language,MAX_PIDS*4*sizeof(char));

}

/* @brief Reads the program map table

/* @brief Tells if the descriptor with tag in present in buf

/* @brief Debugging function, Print the tags present in the descriptor

braice commented 3 years ago

Here: autoconf_pmt.c.txt

malakudi commented 3 years ago

This code indeed fixes the issue. Thank you very much. I will deploy it to check if there is anything else affected and report back.

malakudi commented 3 years ago

Everything looks to work correctly. You can commit this change. Again thank you very much.

braice commented 3 years ago

Excellent ! I just committed, and thank you for remind me and your dvbsnoop analysis they were critical to understand the bug (I parsed the PMT on paper thanks to those :-) )

Happy streaming !

On Wed, Sep 30, 2020 at 4:28 PM Panagiotis Malakoudis < notifications@github.com> wrote:

Everything looks to work correctly. You can commit this change. Again thank you very much.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/257#issuecomment-701427500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRID4HTXTSFN6XM5THCF3SIM6BFANCNFSM4KJCYHMQ .

malakudi commented 3 years ago

@braice You haven't closed this issue. You only closed #230 . Also many other issues need closure as either irrelevant or referring to very old versions. If you don't have time handling that, I could help if you assign me such rights.

braice commented 3 years ago

Closed