Project

General

Profile

Force DVB type

Added by Christian Wohlert over 11 years ago

Hi at all,
I use a terratec h7 connected with dvb-c. TVHeadend initially recognizes the adapter as dvb-s type,
therefore I could not add any muxes to get some services. I changed

/home/hts/.hts/tvheadend/dvbadapters/_dev_dvb_adapter0_DRXK_DVB_C_DVB_T

And moved the line

"type": "DVB-S",

to

"type": "DVB-C",

restarted TVHeadend and afterwards adding muxes with services etc works fine. The problem comes up again when restarting the system: TVHeadend seems to search again for adapters and recognizes this one as DVB-S, switches just the line back to DVB-S and all service assigned channels don't ever work anymore.
Is there any possibility to force the dvb type of an adapter to TVHeadend? Or just skip the searching for adapters at all?


Replies (19)

RE: Force DVB type - Added by Adam Sutton over 11 years ago

We don't currently support multi-mode frontend devices. You'll have to hack TVH to get that working, possibly stop it from changing the type on save? Though surprised its that simple.

Adam

RE: Force DVB type - Added by Christian Wohlert over 11 years ago

Ok thats the answer I hoped not to hear ;)

I cloned the rep and dirty hacked the tvheadend, just edited the two methods in
"tvheadend/src/dvb/dvb_support.c"

to

int
dvb_str_to_adaptertype(const char *str) {
return FE_QAM;
}

const char *
dvb_adaptertype_to_str(int type) {
return val2str(FE_QAM, adaptertype) ?: "invalid";
}

fresh compiled it seems to work, every adapter is now type dvb-c (FE_QAM).
This is really a dirty solution, would be great if someone get's me a better one..

Thank for your help

RE: Force DVB type - Added by Adam Sutton over 11 years ago

I actually started to look into this, as part of the DVB rewrite thats under way, one problem is that true multi-mode frontends aren't even supported with DVB API 5.4 (which is fairly standard on most modern systems). You actually need 5.5, so I couldn't even checkout the APIs :(

However it will be available in the next release, as part of the rewrite, though I cannot say when that will be yet.

Adam

RE: Force DVB type - Added by Christian Wohlert over 11 years ago

Ok but as a first solution a switch in the webinterface where the user could force the adapter type could fix this easily :)

RE: Force DVB type - Added by Adam Sutton over 11 years ago

Yes, and that's basically no better than your hack ;) and therefore no point in adding it to master given that the code is being completely reworked and updated.

Adam

RE: Force DVB type - Added by Linus Östholm about 11 years ago

Any news on this?

I tried the hack mentioned above. And in /home/hts/.hts/tvheadend/dvbadapters/ the adapters shows up with "type": "DVB-C", but when i try to add muxes it still thinks it is a DVB-T/T2 card.

Any suggestions?

RE: Force DVB type - Added by Jeffrey Schilperoord almost 11 years ago

I am also having this issue with a technisat cablestar combo hd ci. I will try to apply the above patch.

RE: Force DVB type - Added by Linus Östholm almost 11 years ago

Try the latest builds of tvheadend. I think you can choose what fronted you want or use there.

RE: Force DVB type - Added by Adam Sutton almost 11 years ago

Indeed, new code "should" now properly support combi tuners. Though there may still be some teething problems. But it does work with the Sundtek T/C device that I have.

Adam

RE: Force DVB type - Added by Jeffrey Schilperoord almost 11 years ago

That sounds promising. I'll have to check which version comes with the latest openelec devel builds. As I am using openelec.

Thanks for your very quick responses :-)

Jeffrey

RE: Force DVB type - Added by Jeffrey Schilperoord almost 11 years ago

Just to verify. We are talking about the latest development builds? I currently using 3.4.27 wich doesnt have this switch. Can you provide some specifics about which version I should compile ?

Thanks,

Jeffrey

RE: Force DVB type - Added by Alasdair Campbell almost 11 years ago

Adam Bark,

Which version are you referring to that properly handles combi tuners? I have a DuoFlex C/T/T2 tuner and tvheadend seems to think it can only handle DVB-C. Even when I alter the adapter file and change it to DVB-T, restart tvheadend it thinks the adapter is disabled so when I enable if via the web gui it overwrites the config and undoes my changes :(

Cheers,
Alasdair.

RE: Force DVB type - Added by Prof Yaffle almost 11 years ago

Alasdair Campbell - me again :-) - Adam talks about the "new code", which I take to mean the new DVR code and adapter handling. Go to the latest version (3.9.x) and you'll get it.

RE: Force DVB type - Added by Alasdair Campbell almost 11 years ago

Cheers @Prof, downloading 3.9 tag now, just to figure out how to build for openelec.

RE: Force DVB type - Added by Simon Hanemaaijer almost 11 years ago

I am also trying to fix this issue just like Jeffrey.

@Alisdair: Did you get anything working yet? I've also been looking at how i can compile this for OPENelec. I've been able to clone and build the 3.9 branch on my Ubuntu machine. Now i need to add these build.linux packages/files into the OpenElec tvheadend directory? Or am i missing something here.

I did the following:

1. Get v3.9 branch of tvheadend
2. Compile this branch following tvheadend's guide
3. ? Im guessing that i need to copy the files generated in the build.linux folder of tvheadend to the "OpenELEC.tv/packages/addons/service/multimedia/tvheadend" folder but i am totally insure.
4. Adjust config files and meta files for openelec following these steps http://openelec.tv/forum/79-tvheadend/52322-solved-new-tvheadend-binary-or-add-on?limitstart=0#53739
5. Build OpenELEC again?

I hope you guys understand more if this than i do...

RE: Force DVB type - Added by Prof Yaffle almost 11 years ago

If you need it for Ubuntu, I suggest you use one of the precompiled .debs:

https://tvheadend.org/builds/tvheadend

If you need it for OpenElec, try these:

http://saraev.ca/tvheadend/4.1/

I don't think you need to rebuild OpenElec - try installing the replacement addon as a zip from the System -> Addons menu.

RE: Force DVB type - Added by Simon Hanemaaijer almost 11 years ago

I'm trying that last option and it doesn't work for me. When i try to install the addon from zipfile it says "Failed: Dependancies missing" in XBMC. Without saying what dependancies i am missing. From reading the addon.xml file i was able to see this:

<requires>
<import addon="os.openelec.tv" version="4.0"/>
<import addon="xbmc.python" version="2.1.0"/>

&lt;/requires&gt;

Does that mean i need openelec 4.0?
Or Maybe Python is missing?

But shouldn't it update these automatically?

Altough; from reading other forums i can see that it might be due to an XBMC version problem. Do i need Gotham for this to work? Currently user 12.2 i think (standard openelec xbmc)

RE: Force DVB type - Added by Prof Yaffle almost 11 years ago

Most likely that the new addon depends on the pre-Gotham OpenElec versions - you won't get an auto-update to 4.0 until it's formally released, so you won't know about them unless you go and get them.

http://openelec.tv/forum/20-development-discussion/67846-xbmc-gotham-generic-nightly-builds

Current OE is Frodo 12.3, I think, moving to Gotham 13.0 in due course - Gotham is about to go into formal beta, so it should be pretty stable now. OpenElec 4.0 will be based on Gotham, so it's the same answer whether you look at it as an OE version issue or an XBMC version issue.

RE: Force DVB type - Added by Alasdair Campbell over 10 years ago

I can confirm the Link @Prof gave:
[[http://saraev.ca/tvheadend/4.1/]]

Works on the OE nightlies based on Gotham.

simon rabanser, Update to a Gotham based version and the link will work. I now have DVB-T TV using my DuoFlex DVB-C/T/T2 card which previously was trying to only use DVB-C when I don't have cable.

    (1-19/19)