[mythtv] DVB-C and MythTV
Rudy Zijlstra
mythtv at grumpydevil.homelinux.org
Fri Aug 17 23:39:14 UTC 2007
Rudy Zijlstra wrote:
> Christiaan van Dijk wrote:
>
>> Hi all,
>>
>> I've been working on a MythTV box with a DVB-C card and ran into some
>> problems. I solved quite some issues and would like to share these here.
>>
>> A known problem with DVB-C are the network IDs. In a normal DVB
>> situation there's only one main network ID in the NIT which describes
>> the used network. In DVB-C however the network ID needs to be entered
>> manually and is not even located in the NIT but in NITo. I've seen
>> some discussion on how to deal with this since it's not really DVB
>> standard and solutions are mainly dirty hacks which only pollute the
>> code. I tried a solution which is a bit in between (to my opinion :-)
>> ), this solution makes it possible to give a network ID in the
>> configuration script which is compiled into the code, if not defined
>> (default) the code stays in it's original state. There is some code
>> pollution with the conditional defines but I tried to keep it to a
>> minimum.
>> To use a fixed network ID simply add the option --dvb-net-id=1111 to
>> the configuration script (for network ID 1111).
>>
>> There still is a bug in the standard code for handling the NITo
>> tables, the buffering of the different sections needs to take the
>> network ID into account since the NITo tables can and will include
>> multiple network IDs. This could be tricky since there could be up to
>> 64k-1 IDs in theory. The patch avoids this problem by only
>> interpreting the NITo/NIT with the matching network ID as main NIT.
>>
>> Also fixed a bug in the channel inversion setting, the scanner used to
>> set an invalid value for DVB-C, now it defaults to auto. Really minor
>> but avoids warnings in the log files.
>>
>>
> Hi Christiaan,
>
> Have you kept these current with SVN? i just tried a scan on the @home
> transports in order to update my channels, as they are apparently no
> longer up to date. And completely failed with current SVN, as it no
> longer sees the DVB tables. Updating them is now a real pain.
>
> Have not yet tried to apply to current SVN, will try that tomorrow.
>
> Cheers,
>
> Rudy
>
Christiaan,
tried on current SVN, and i get:
root at satje:/home/svn/mythtv/mythtv# patch -p 2 <
/data/linux_install/apps/MythTV/dvb-c.diff
patching file libs/libmythtv/channelutil.cpp
Hunk #1 succeeded at 278 (offset 1 line).
patching file configure
Hunk #1 succeeded at 154 (offset 36 lines).
Hunk #2 FAILED at 433.
Hunk #3 FAILED at 1160.
Hunk #4 FAILED at 2668.
Hunk #5 FAILED at 3402.
4 out of 5 hunks FAILED -- saving rejects to file configure.rej
patching file libs/libmythtv/mpeg/dvbstreamdata.cpp
Hunk #1 succeeded at 7 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 218 (offset 18 lines).
Hunk #3 succeeded at 270 (offset 13 lines).
Hunk #4 succeeded at 288 (offset 18 lines).
As i am not exactly a coder, that pretty much blocks me...
Help?
Cheers,
Rudy
More information about the mythtv-dev
mailing list