Project

General

Profile

Development help with tvheadend

Added by Anonymous over 12 years ago

I'm starting a new thread here because it doesn't really fit in the other. I'm looking at creating a patch to allow for dish network channel services to be read properly.

I've hit a bit of a stumbling block and I need some assistance from the developers since they know the flow much better then I do.

The issue is that DN does not use a standard SDT table - theirs is customized to some degree. A sample of their sdt is here: http://pastebin.com/kCQCUYVt

I have tracked the issue to the dvb_tables.c file. When the muxes are being scanned for services, it is not processing the sdt table the second and subsequent times where it would pick up the channel names, etc. When the following code is called, it is not going to dvb_sdt_callback from what I can tell (it does with other sats, so that is why I believe the issue is here).
tdt_add(tdmi, fp, dvb_sdt_callback, NULL, "sdt",
TDT_QUICKREQ | TDT_CRC, 0x11, NULL);

I can't figure out why its not calling the routine. It's going to tdt_add, but just not to dvb_sdt_callback, where it would populate the other details for the service.

1) Am I on the right track? I can't find anywhere else where it calls dvb_sdt_callback.
2) What are the conditions that could be stopping it from calling that routine?

Thanks for any help.

Cub


Replies (5)

RE: Development help with tvheadend - Added by Adam Sutton over 12 years ago

Norm,

Can I suggest you pop along to the IRC channel (#hts). You'll probably get a better "mix" of responses there. Though you might not always get them straight away.

But specifically I might be misunderstanding your note, but the callback is NOT called directly within tdt_add. This simply install a handler which will be called as data is received from DVB card.

Adam

RE: Development help with tvheadend - Added by Anonymous over 12 years ago

Thanks Adam. I was on irc for a bit last evening and after determining the SDT table we were after was table_id 0x42, I can say with some certainty that Dish does not send that table. Not sure what to do at this point.

Cub

RE: Development help with tvheadend - Added by Adam Sutton over 12 years ago

Yeah i was reading the thread. I think the thought is that if that's the case its a non-compliant DVB stream and might be "problematic". I'm not a DVB expert (though I'm learning). So your best bet is probably another trip to #hts.

Adam

RE: Development help with tvheadend - Added by Anonymous over 12 years ago

I agree and likely will be in there soon enough. I agree its non-compliant and the problem is I'm not a dvb expert either - I'm doing this for the learning and fun. I'm still learning how to use all the right tools liked dvbsnoop, etc.

Cub

RE: Development help with tvheadend - Added by Adam Sutton over 12 years ago

You've probably got further than me on that one then ;) I still haven't actually gotten around to using it :)

See you in there, I'll try and keep an eye on it.

    (1-5/5)