Project

General

Profile

Osmc/Kodi/tvheadend/hdhomerun doesnt tune program

Added by stefan fiala about 9 years ago

Latest OSMC and Kodi and tvheadend plugin and hdhomerun script.
[osmc on an Rpi1 or 2, both behave similarly).
Live TV on the hdhomerun from Kodi works.
Vlc/Windows/Android use of hdhomerun also works.
[hdhomerun view, etc].
tvheadend is 4.0.5, it finds the 3 tuners
[its an HDHR3 with working cable card].
First issue:-
Had to replace the DVB... lines
in the us-cable-standard-center-frequencies-qam(sic)
to ATSC. (Refused to scan prior but I'd noticed
that it seemed happier with the NTSC files which use ATSC].
[Similar issue to forum#17753? and issue#2514?].
Now it scans finds 157 muxes and hundreds of
services (pretty much as expected).
Issue #2:-
I dont have any service names however.
OSMC has odd looking names (in live tv, channels) that are the
frequency...pmtxx. I know that there are 10.
working programms under mux/service/frequency
441000000, if I find one of these and play it (click)
nothing much happens (no error, tuner appears to be partly set,
untill I quit "playing").
If I use "play" (in tvheadend gui) for
one of these (on a Linux Ubuntu box) It pops
up a VLC window that claims its moving data, buffering,caching,
but remains grey. If I check the tuner during
one of these tests that appear to be moving some data
I see that the tuner has the correct frequency but
virtual-channel and channel are both "none".
[It shows some data is being transfered, mb/s).
If I uses some other means to watch a program, the tuner
shows (correct!) settings for virtual channel (program name)
and channel 1 thru 10.
If I use hdhomerun-config to set the frequency
it shows 10 programs and if I tune one of these
the tuner again has values for virtual-channel
and channel.

It looks to me (knowing nothing at all about
cable/dvb...) that tvheadend isnt setting the
tuner to the correct "program" and gets "data" from
the basic frequency (or mux or whatever its called).
I dont know if this is inside tvheadend or libhdhomerun.
I havent built/tried the dvb-driver for hdhomerun and
the dvb-utils (w_scan) yet. [Current setup circumvents DVB as
I understand it with libhdhomerun].
I can supply screenshots or debug stuff (tell me what
tvheadend ... command line to use) or I'd be happy to try
and replicate under, say, raspbian or with a different .deb
(debug buld, git build from scratch, whatever)
if you want. There is a 4.0.7 of tvheadend
on osmc/staging if thats worth a try.
In the basic debug log, when the scan "tunes" what I beleive
to be a frequency that should work it subscribes and unsubscribes without
any error messages. During this time the tuner appears only have the frequency set,
I never never see any channel (or other change) untill it moves the
frequency to the next setting.
I used the hdhomerun "scan" to build a scan-file, then looked thru all
the scanfiles under the atsc directory tree, it seems to exactly match the
frequencies in us-standard-cable-center-frequencies... and does find muxes and
services so I think the frequency setting are correct as must be the use
of ATSC (none of dvb* find anything). Its the programs/mux part that has me
stumped. I figure the "service name" is what the hdhomerun tuner calls a
"virtual channel" hence the tuner=none equates to a blank name..
If you point me at the code that does the channel-settings I may be
able to make progress with some building of my own.