[mythtv] Re: [EXPerimental PATCH] BIG DVB PATCH V1.1

Martin Bene martin.bene at icomedias.com
Sun Nov 7 19:32:39 UTC 2004


Thanks for your work enhancing DVB in mythtv.

Just gave your patch a try; doesn't look too stable at the moment.
HW: Hauppauge Nexus-s 2.1, using astra satelite(s)

* first try: started mythsetup, cleaned card/channel infos. Start
scanning for channels; scan hangs:

ChannelEditor::scan
ScanWizardTuningPage::scanType 0
sourceID 1
sourceID 1
ScanWizard::captureCard 1
Video device = 0
Card type = 1
ScanWizardTuningPage::cardTypeChanged 1
ScanWizard::pageSelected Scan Type
ScanWizard::pageSelected Scan Type
ScanWizard::pageSelected Tuning
ScanWizard::pageSelected Scanning
ScanWizardScanner::scan 0 1 3059251584
2004-11-07 19:41:37 SIParser: Using SI Standard: DVB
2004-11-07 19:41:37 DVB#0 DVB SI Table Parser Started
2004-11-07 19:41:37 SIParser: Starting DVB Section Reader thread
2004-11-07 19:41:37 SIParser: Started Parser Thread
2004-11-07 19:41:38 DVB#0 Using DVB card 0, with frontend ST STV0299
DVB-S.
2004-11-07 19:41:38 DVB#0 CAM - Initialized successfully.
2004-11-07 19:41:38 DVB#0 DVB Status Monitor Starting
SELECT dvb_diseqc_type, diseqc_port, diseqc_pos, lnb_lof_switch,
lnb_lof_hi, lnb_lof_lo FROM cardinput,capturecard WHERE
capturecard.cardid=1 and cardinput.sourceid=1
2004-11-07 19:41:38 SIParser: Starting SIScanner
2004-11-07 19:41:38 DVB#0 Requesting PMap
2004-11-07 19:41:39 DVB#0 WARNING - Status: NO LOCK!
2004-11-07 19:41:39 DVB#0 Status: CARRIER | VITERBI | SIGNAL | SYNC |
LOCK.
Table 00 loaded
2004-11-07 19:41:39 SIParser: Tuned to TransportID: 1079
2004-11-07 19:41:39 SIParser: Services on this Transport: 28006 28007
28008 28009 28011 28012 28013 28014 28015 28016 28017
Table 00 loaded
Table 01 loaded
Table F0 loaded
Table 00 loaded
2004-11-07 19:41:39 SIParser: Tuned to TransportID: 229
2004-11-07 19:41:39 SIParser: Services on this Transport: 28006 28007
28008 28009 28011 28012 28013 28014 28015 28016 28017
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded
Table 02 loaded

Nothing more happens (waited ~ 10minutes). Inital seting was
11953000H/27500000 (zdf). No Transports / channels listed on setup
screen.

* 2nd try: start with diffrent frequency 11797000H/27500000 (premiere1);
result is a partial scan, not all channels are found. Dvbscan works
without problems.

SDT sid: 15 CLASSICA
SDT sid: 21 BEATE-UHSE.TV
SDT sid: 518 GOLDSTAR TV
SDT sid: 22 HEIMATKANAL
SDT sid: 50 BIG BROTHER
SDT sid: 3501 CPT_TP83
2004-11-07 19:50:22 SIScan: Updating Services
Service Table Version number: 6
exact match
I determined the DVB_TID is 1
2004-11-07 19:50:22 SIScan: Channel CLASSICA Not Found in Database -
Adding
calculatd the new chanid
2004-11-07 19:50:22 SIScan: Channel BEATE-UHSE.TV Not Found in Database
- Adding
calculatd the new chanid
2004-11-07 19:50:22 SIScan: Channel GOLDSTAR TV Not Found in Database -
Adding
calculatd the new chanid
2004-11-07 19:50:22 SIScan: Channel HEIMATKANAL Not Found in Database -
Adding
calculatd the new chanid
2004-11-07 19:50:22 SIScan: Channel BIG BROTHER Not Found in Database -
Adding
calculatd the new chanid
2004-11-07 19:50:22 SIScan: Channel CPT_TP83 not a Television Service -
Skipping
2004-11-07 19:50:22 SIScan: Service Update Complete
2004-11-07 19:50:22 SIScan: Tuning to DVB_TID 6
2004-11-07 19:50:22 DVB#0 ERROR - Invalid polarization, aborting.
2004-11-07 19:50:22 SIScan: Transport Failed to Tune
2004-11-07 19:50:22 SIScan: Tuning to DVB_TID 7
2004-11-07 19:50:22 DVB#0 ERROR - Invalid polarization, aborting.
2004-11-07 19:50:22 SIScan: Transport Failed to Tune
2004-11-07 19:50:22 SIScan: Tuning to DVB_TID 8
2004-11-07 19:50:22 DVB#0 ERROR - Invalid polarization, aborting.
2004-11-07 19:50:22 SIScan: Transport Failed to Tune
2004-11-07 19:50:22 SIScan: Tuning to DVB_TID 9
2004-11-07 19:50:22 DVB#0 ERROR - Invalid polarization, aborting.
2004-11-07 19:50:22 SIScan: Transport Failed to Tune
2004-11-07 19:50:22 SIScan: Tuning to DVB_TID 10
2004-11-07 19:50:22 DVB#0 ERROR - Invalid polarization, aborting.
2004-11-07 19:50:22 SIScan: Transport Failed to Tune

Tried this some more times; sonner or later the scan process hangs/stops
without discovering all available channels.

* Channel Names are not Ok in many (not all) cases; there's extra
control characters embedded in the channel names: 

86 6c 61 73 74 6d 69 6e 87 75 74 65 2e 74 76  .lastmin.ute.tv

* ok, try runningbackend with the (partial) channel info entered by the
channel scans.

* starting "watch tv" (with a valid default channel set) crashes the
backend:

Starting up as the master server.
2004-11-07 20:18:45 SIParser: Using SI Standard: DVB
2004-11-07 20:18:45 DVB#0 DVB SI Table Parser Started
2004-11-07 20:18:45 SIParser: Starting DVB Section Reader thread
2004-11-07 20:18:45 SIParser: Started Parser Thread
2004-11-07 20:18:45 DVB#0 Using DVB card 0, with frontend ST STV0299
DVB-S.
2004-11-07 20:18:46 DVB#0 CAM - Initialized successfully.
2004-11-07 20:18:46 DVB#0 Requesting PMap
2004-11-07 20:18:46 DVB#0 WARNING - Status: NO LOCK!
2004-11-07 20:18:46 DVB#0 Status: CARRIER | VITERBI | SIGNAL | SYNC |
LOCK.
2004-11-07 20:18:46 DVB#0 Signal Locked. Waiting on PIDS
Table 00 loaded
2004-11-07 20:18:46 SIParser: Tuned to TransportID: 33
2004-11-07 20:18:46 SIParser: NIT Present on this transport on PID 16
2004-11-07 20:18:46 SIParser: Services on this Transport: 32 40 46 47 51
661 897 898 899 900 3970
Table 00 loaded
Table 02 loaded
2004-11-07 20:18:47 DVB#0 Using VideoPID = 255 () AudioPID = 256 (deu)
2004-11-07 20:18:47 DVB#0 Service is FTA
2004-11-07 20:18:47 DVB#0 AutoPID Complete - PAT/PMT Loaded for service
2004-11-07 20:18:47 DVB#0 Successfully tuned to channel 898.
2004-11-07 20:18:47 Closing DVB channel
2004-11-07 20:18:47 SIParser: Stopping DVB Section Reader
Table 02 loaded
Table 02 loaded
Table 02 loaded
2004-11-07 20:18:47 SIParser: DVB Section Reader thread stopped
2004-11-07 20:18:47 SIParser: Closing thread
2004-11-07 20:18:47 mythbackend version: 0.16.20041106-1 www.mythtv.org
2004-11-07 20:18:47 Enabled verbose msgs : important general
2004-11-07 20:18:49 Found changes in the todo list.
2004-11-07 20:18:49 Scheduled 0 items in 0.00292 seconds.
2004-11-07 20:18:49 Seem to be woken up by USER
2004-11-07 20:20:49 MainServer::HandleAnnounce Playback
2004-11-07 20:20:49 adding: pvr-martin as a client (events: 0)
2004-11-07 20:20:49 MainServer::HandleAnnounce Playback
2004-11-07 20:20:49 adding: pvr-martin as a client (events: 1)
2004-11-07 20:20:49 MainServer::HandleAnnounce Playback
2004-11-07 20:20:49 adding: pvr-martin as a client (events: 0)
2004-11-07 20:20:49 MainServer::HandleAnnounce Playback
2004-11-07 20:20:49 adding: pvr-martin as a client (events: 0)
2004-11-07 20:20:49 adding: pvr-martin as a remote ringbuffer
2004-11-07 20:20:49 Changing from None to WatchingLiveTV
2004-11-07 20:20:49 DVB#0 Using DVB card 0, with frontend ST STV0299
DVB-S.
2004-11-07 20:20:50 DVB#0 CAM - Initialized successfully.
Killed

Hrmpf, I'm doing something wrong - tried to get a backtrace from the
crash, but not go:

pvr-martin mythbackend # gdb mythbackend core.6183
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

Core was generated by `mythbackend'.
Program terminated with signal 11, Segmentation fault.
#0  0xb70d1dc2 in ?? ()
(gdb) backtrace
#0  0xb70d1dc2 in ?? ()
#1  0x00320000 in ?? ()
#2  0x00350037 in ?? ()
#3  0x00300030 in ?? ()
#4  0xb7fd40b8 in ?? ()

If you can tell my what I did wrong here I'll be happy to get you a
better error report.

Oh, final comment: mythtv from cvs without the patch ran fine, the patch
applied cleanly and I did a full recompile (make clean) after patching.

Bye, Martin 


More information about the mythtv-dev mailing list