Ticket #7701 (assigned Patch - Feature)
Opened 4 years ago
Last modified 8 months ago
Enhance channel.conf import
| Reported by: | martin@… | Owned by: | danielk |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.27 |
| Component: | MythTV - Channel Scanner | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | yes |
Description
If somebody adds the transponders manually or imports a channel.conf file, the TID and NID does not get updated in the dtv_multiplex table. This seems to not harm the ability of viewing Live TV; but the EITScanner is unable to get the Guide data.
Additionally theres no field in the "add transponders" - menu of mythtv-setup to insert them.
As long as a "Full Scan" on a frequency is performed - TID and NID are inserted correctly. Do a full scan or insert the right values in the dtv_multiplex table and the EITScanner works.
Attachments
Change History
comment:1 in reply to: ↑ description Changed 3 years ago by anonymous
comment:3 Changed 3 years ago by mythtv@…
This also appears to have the side affect of crashing the DVB-T HDHomerun
If a mux hasnt been correctly updated with the TID or NID attempting to view any channel within it causes the mythbackend log to fill up with:
"HDHRSH::TunerSet?() Failed. Trying qam_16:546000000" (number depending on the mux)
The frontend then dumps with an 'irrecoverable tuner error' and the backend eventually crashes.
Inserting the TID or NID manually, or by a full scan fixes this
comment:4 Changed 3 years ago by glemsom@…
I can confirm this issue is still in mythtv-0.23@25427.
Some users are relying on importing a channel.conf - since a full-scan from MythTV does not find all channels (NOT related to this bug!).
comment:6 Changed 3 years ago by niels@…
I found a related problem, ie the EIT scanner is correctly activated etc, but no EIT data is processed. After some debugging it seems the dvbstreamdata isn't activated, but just the mpegstreamdata. Sofar I found that in tv_rec.cpp TVRec::SetupDTVSignalMonitor, the tuningmode isn't equal to 'dvb' but has 'mpeg'. When I remove the extra check on tuningmode == dvb, the EIT scanner starts to function. Hope this helps in finding why EIT seems to fail.
comment:7 Changed 3 years ago by stuarta
Hmmmm, if the channels are marked as "mpeg" and not as "dvb" then that is potentially a problem in the channel scanner rather than in EIT itself.
Stuart
comment:8 Changed 3 years ago by Niels Nes <niels@…>
could I check the mysql dtv* or channels table to see if the channel scanner made some mistake. Channels were scanned in the channels.conf/delete all/scan - using known transports.
Niels
comment:9 Changed 3 years ago by Niels Nes <niels@…>
could it be that sistandard in the dtv_multiplex should be filled in (now empty) for all transports?
comment:10 Changed 3 years ago by Niels Nes <niels@…>
After setting the dtv_multiplex.sistandard for my dvb-c cards to dvb, the non-patched version also works. ie when loading the transports via channel.conf may also have caused the problem.
comment:11 Changed 3 years ago by stuartm
We have always stated that EIT would not work if channels are imported via channels.conf and that's why we do not recommend the use of channels.conf instead of the internal scanner.
Yes the internal scanner has it's faults, but too few users bother to report them meaning they will never get fixed.
comment:12 Changed 3 years ago by Niels Nes <niels@…>
the internal scanner failed indeed, but could very well be caused by a bad cable (did that scan some time ago). For various posts I saw that EIT doesn't work with channels.conf. Some however do report success with re-using the transports from this scan. That clearly doesn't work if the networkid and sistandard aren't correct. All fixable by a simple (for dvb only setup)
update dtv_multiplex set networkid = <networkid>, sistandard = 'dvb'; anyway thanks for the help.
comment:13 Changed 21 months ago by anonymous@…
I can confirm that problem still there. Rescanning from channels.conf kills EID. Manual tuned scan makes it works.
mythbackend version: branches/release-0-22-fixes [22594] www.mythtv.org
If somebody adds the transponders manually or imports a channel.conf file, the TID and NID does not get updated in the dtv_multiplex table. This seems to not harm the ability of viewing Live TV; but the EITScanner is unable to get the Guide data.
Additionally theres no field in the "add transponders" - menu of mythtv-setup to insert them.
As long as a "Full Scan" on a frequency is performed - TID and NID are inserted correctly. Do a full scan or insert the right values in the dtv_multiplex table and the EITScanner works.
comment:2 Changed 20 months ago by Kaacz
still same in trunk [23330] too ..
comment:3 Changed 18 months ago by mythtv@…
This also appears to have the side affect of crashing the DVB-T HDHomerun
If a mux hasnt been correctly updated with the TID or NID attempting to view any channel within it causes the mythbackend log to fill up with:
"HDHRSH::TunerSet??() Failed. Trying qam_16:546000000" (number depending on the mux)
The frontend then dumps with an 'irrecoverable tuner error' and the backend eventually crashes.
Inserting the TID or NID manually, or by a full scan fixes this
comment:4 Changed 14 months ago by glemsom@…
I can confirm this issue is still in mythtv-0.23@25427. Some users are relying on importing a channel.conf - since a full-scan from MythTV does not find all channels (NOT related to this bug!).
comment:5 Changed 14 months ago by robertm
Status changed from new to assigned comment:6 Changed 14 months ago by niels@…
I found a related problem, ie the EIT scanner is correctly activated etc, but no EIT data is processed. After some debugging it seems the dvbstreamdata isn't activated, but just the mpegstreamdata. Sofar I found that in tv_rec.cpp TVRec::SetupDTVSignalMonitor, the tuningmode isn't equal to 'dvb' but has 'mpeg'. When I remove the extra check on tuningmode == dvb, the EIT scanner starts to function. Hope this helps in finding why EIT seems to fail.
comment:7 Changed 14 months ago by stuarta
Hmmmm, if the channels are marked as "mpeg" and not as "dvb" then that is potentially a problem in the channel scanner rather than in EIT itself.
Stuart
comment:8 Changed 14 months ago by Niels Nes <niels@…>
could I check the mysql dtv* or channels table to see if the channel scanner made some mistake. Channels were scanned in the channels.conf/delete all/scan - using known transports.
Niels
comment:9 Changed 14 months ago by Niels Nes <niels@…>
could it be that sistandard in the dtv_multiplex should be filled in (now empty) for all transports?
comment:10 Changed 14 months ago by Niels Nes <niels@…>
After setting the dtv_multiplex.sistandard for my dvb-c cards to dvb, the non-patched version also works. ie when loading the transports via channel.conf may also have caused the problem.
comment:11 Changed 14 months ago by stuartm
We have always stated that EIT would not work if channels are imported via channels.conf and that's why we do not recommend the use of channels.conf instead of the internal scanner.
Yes the internal scanner has it's faults, but too few users bother to report them meaning they will never get fixed.
comment:12 Changed 14 months ago by Niels Nes <niels@…>
the internal scanner failed indeed, but could very well be caused by a bad cable (did that scan some time ago). For various posts I saw that EIT doesn't work with channels.conf. Some however do report success with re-using the transports from this scan. That clearly doesn't work if the networkid and sistandard aren't correct. All fixable by a simple (for dvb only setup)
Comprar el Dolar Hoy
update dtv_multiplex set networkid = <networkid>, sistandard = 'dvb'; anyway thanks for the help.
comment:14 Changed 21 months ago by stuartm
- Status changed from assigned to closed
- Resolution set to Invalid
- Ticket locked set
As stated a year ago, this isn't a bug, it's a limitation of using channel.conf instead of the internal scanner. Closing this as invalid since it's at best a feature request without patch - at worst it's about extending a temporary workaround instead of fixing internal scanner bugs.
Changed 17 months ago by dekarl@…
- Attachment 0005-Teach-DTVMultiplex-and-the-channels.conf-importer-ab.patch added
patch written to file format description (untested)
Changed 17 months ago by dekarl@…
- Attachment 0001-unbreak-the-channels.conf-importer-for-DVB.patch added
extended patch, now with more brains
Changed 17 months ago by dekarl@…
- Attachment 0001-unbreak-DVB-channels.conf-compile-tested.patch added
third version, now compiles without error, doh.
comment:15 Changed 17 months ago by stuartm
- Status changed from closed to new
- Resolution Invalid deleted
- Version changed from 0.22-fixes to Master Head
- Ticket locked unset
comment:16 Changed 16 months ago by stuartm
- Owner changed from stuarta to danielk
- Status changed from new to assigned
- Type changed from defect to Patch - Bug Fix
- Milestone changed from unknown to 0.25
May not be as simple as it looks, but there's a patch and it's an issue which seems to generate a lot of feedback from users.
comment:17 Changed 16 months ago by stuartm
- Component changed from MythTV - EIT to MythTV - Channel Scanner
comment:18 Changed 15 months ago by danielk
- Summary changed from EIT does not get updated when inserting transponders manually to Enhance channel.conf import
- Type changed from Patch - Bug Fix to Patch - Feature
- Milestone changed from 0.25 to 0.26
I'd rather drop channel.conf import and just improve the internal scanner, but for now just push this to 0.26 since it is really feature.
comment:20 Changed 8 months ago by jerry.baum@…
3 years later, problem still exists. channels.conf import still broken although a patch was submitted, and users are being told it's a feature and not a bug. way to go!

Replying to martin@…:
I can confirm that problem still there. Rescanning from channels.conf kills EID. Manual tuned scan makes it works.
mythbackend version: branches/release-0-22-fixes [22594] www.mythtv.org