Project

General

Profile

Map DVB Services Doesn't Work

Added by Bob Baird almost 12 years ago

Here is my setup:
HDHomerun - Dual ATSC tuners, properly set up per this thread[[https://www.lonelycoder.com/redmine/boards/14/topics/3368]]
TVHeadend 3.3.195 installed on Ubuntu Minimal 12.10
XBMC Frodo Beta 2 as frontend (if I ever get that far)
Additional info:

Hardware
Device path:
/dev/dvb/adapter0
Device name:
HDHomeRun ATSC
Host connection:
PCI
Frequency range:
54000 kHz - 858000 kHz, in steps of 62 kHz
Symbolrate range:
451875 Baud - 7230000 Baud
Status
Currently tuned to:

Services:
416
Muxes:
51
Muxes awaiting initial scan:
0
Signal Strength:
%
Bit Error Rate:
/s
Uncorrected Bit Errors:
/s

I can successfully add a DVB network by location (using a custom mux per this thread [[https://www.lonelycoder.com/redmine/boards/4/topics/6326?r=6733#message-6733]])
When I click on Map DVB Services the log says "web interface: Service probe started on "HDHomeRun ATSC"" but nothing happens. I have let it set for 24 hours, but the service names remain blank on the services tab. I am kind of at a loss as to what to do next, do you guys have any ideas?


Replies (6)

RE: Map DVB Services Doesn't Work - Added by Alex . almost 12 years ago

Hi Robert,

Strange, it appears your system did find the channels ("services 416").

Can you actually watch them ? (you should be able to watch them even without mapping the channels).
Under configuration, tv adapters, go to the services-tab and try to "play".

Also, are the services "enabled", and to they have channelnames ( under the configuration/adapters/services-tab)? (if there is no name, try to add one manually and retry to map the channels).

Alex.

PS re-reading your message it looks lke indeed you have no servicenames under the servicetabs, so try adding a servicename by hand first...

RE: Map DVB Services Doesn't Work - Added by Bob Baird almost 12 years ago

How do I add a servicename by hand? I tried double clicking on the field, but it doesn't do anything. I have also tried to play the streams like you described above, but my browser just hangs and doesn't do anything. Here is some debug info if it helps:

Loglevel debug: enabled
Dec 08 17:17:56 dvb: "/dev/dvb/adapter0" tuning to "441,000 kHz" (Autoscan)
Dec 08 17:17:59 web interface: Service probe started on "HDHomeRun ATSC"
There seems to be a problem with the live update feed from Tvheadend. Trying to reconnect...
Dec 08 17:18:07 subscription: "HTTP" direct subscription to adapter: "HDHomeRun ATSC", network: "", mux: "765,000 kHz", provider: "", service: "", quality: 100
Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input]
Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input] [Input on service]
Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input] [Input on service] [No available descrambler]
Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler]
Dec 08 17:18:17 dvb: "/dev/dvb/adapter0" tuning to "573,000 kHz" (Transport start)
Dec 08 17:18:17 subscription: "HTTP" direct subscription to adapter: "HDHomeRun ATSC", network: "", mux: "573,000 kHz", provider: "", service: "", quality: 100
Dec 08 17:18:17 Service: HDHomeRun ATSC/573,000 kHz: Status changed to [Hardware input]
Dec 08 17:18:17 Service: HDHomeRun ATSC/573,000 kHz: Status changed to [Hardware input] [Input on service]
Dec 08 17:18:17 Service: HDHomeRun ATSC/573,000 kHz: Status changed to [Hardware input] [Input on service] [No available descrambler]
Dec 08 17:18:17 Service: HDHomeRun ATSC/573,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler]
Dec 08 17:18:24 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:18:26 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:18:27 Service: HDHomeRun ATSC/573,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler] [Graceperiod expired]
Dec 08 17:18:36 webui: Stop streaming /stream/service/_dev_dvb_adapter0_HDHomeRun_ATSC765000000_0002, timeout waiting for packets
Dec 08 17:18:36 subscription: "HTTP" unsubscribing
Reconnected to Tvheadend
Dec 08 17:19:17 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:19:18 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:19:24 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:19:26 dvb: "573,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
There seems to be a problem with the live update feed from Tvheadend. Trying to reconnect...
Dec 08 17:19:41 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service]
Dec 08 17:19:41 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [No available descrambler]
Dec 08 17:19:41 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler]
Dec 08 17:19:45 subscription: "HTTP" direct subscription to adapter: "HDHomeRun ATSC", network: "", mux: "567,000 kHz", provider: "", service: "", quality: 100
Dec 08 17:19:45 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input]
Dec 08 17:19:45 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service]
Dec 08 17:19:45 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [No available descrambler]
Dec 08 17:19:45 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler]
Dec 08 17:19:50 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler] [Graceperiod expired]
Dec 08 17:19:55 Service: HDHomeRun ATSC/567,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler] [Graceperiod expired]
Dec 08 17:20:00 webui: Stop streaming /stream/service/_dev_dvb_adapter0_HDHomeRun_ATSC573000000_0014, timeout waiting for packets
Dec 08 17:20:00 subscription: "HTTP" unsubscribing
Reconnected to Tvheadend
Dec 08 17:20:24 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:20:26 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:20:41 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:20:42 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:21:24 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:21:26 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:21:40 webui: Stop streaming /stream/service/_dev_dvb_adapter0_HDHomeRun_ATSC567000000_0006, client hung up
Dec 08 17:21:40 webui: Stop streaming /stream/service/_dev_dvb_adapter0_HDHomeRun_ATSC567000000_0009, client hung up
Dec 08 17:21:40 subscription: "HTTP" unsubscribing
Dec 08 17:21:40 subscription: "HTTP" unsubscribing
Dec 08 17:21:41 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to No signal
Dec 08 17:21:42 dvb: "567,000 kHz" on adapter "HDHomeRun ATSC", status changed to OK
Dec 08 17:21:56 web interface: Service probe started on "HDHomeRun ATSC"
Dec 08 17:21:56 dvb: "/dev/dvb/adapter0" tuning to "483,000 kHz" (Autoscan)
Dec 08 17:21:59 web interface: Service probe started on "HDHomeRun ATSC"
Dec 08 17:21:59 web interface: Service probe started on "HDHomeRun ATSC"
Dec 08 17:22:00 web interface: Service probe started on "HDHomeRun ATSC"
Dec 08 17:22:16 dvb: "/dev/dvb/adapter0" tuning to "399,000 kHz" (Autoscan)
Dec 08 17:22:36 dvb: "/dev/dvb/adapter0" tuning to "357,000 kHz" (Autoscan)
Dec 08 17:22:56 dvb: "/dev/dvb/adapter0" tuning to "801,000 kHz" (Autoscan)
Dec 08 17:23:16 dvb: "/dev/dvb/adapter0" tuning to "387,000 kHz" (Autoscan)
Dec 08 17:23:36 dvb: "/dev/dvb/adapter0" tuning to "783,000 kHz" (Autoscan)
Dec 08 17:23:56 dvb: "/dev/dvb/adapter0" tuning to "477,000 kHz" (Autoscan)
Dec 08 17:24:16 dvb: "/dev/dvb/adapter0" tuning to "333,000 kHz" (Autoscan)

RE: Map DVB Services Doesn't Work - Added by Alex . almost 12 years ago

Hi Robert,

It looks to me that the actual problem is that you cant play the channels anyhow ( mapping the services is the last step).

Robert Baird wrote:

Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input] [Input on service] [No available descrambler]
Dec 08 17:18:08 Service: HDHomeRun ATSC/765,000 kHz: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No available descrambler]
Dec 08 17:18:17 dvb: "/dev/dvb/adapter0" tuning to "573,000 kHz" (Transport start)

I think "no available descrambler" means the channel is encrypted and it cannot decrypt it;
Are the channels encrypted? (and might there be unencrypted c hannels, like an "information" channel you can use for testing?)
(I dont have ATSC myself so if it is a specific ATSC-problem I cannot help you, but this looks more generic I think).

How do I add a servicename by hand? I tried double clicking on the field, but it doesn't do anything. I have also tried to play the streams like you described above, but my browser just hangs and doesn't do anything. Here is some debug info if it helps:

What browser do you use? I have some problems myself with Chrome, but firefox with vlc-plugin works fine.

Alex.

RE: Map DVB Services Doesn't Work - Added by Bob Baird almost 12 years ago

I have tried both Chrome and Firefox. I even booted into Windows and started Firefox. None of the browsers were able to play the streams.

I can pull up unencrypted channels using the hdhomerun-gui program, tune to a channel, say channel 114 program 5 and watch that channel. Hdhomerun-gui feeds it to VLC. The problem is I only get about 9 unencrypted channels, but I have about 400 services listed. If I could figure out how to get the frequency from the physical channel in hdhomerun-gui (qam256:114 program 5) I could try to bring up that frequency in the tvheadend web interface. As it is now I'm just randomly trying to find a frequency that plays, but I haven't hit one yet.

If I had to guess I would say the problem is the dvb driver, but I followed the instructions in the post I linked to above. Surely others have been able to get the HDHomerun to work with TVheadend, right?

RE: Map DVB Services Doesn't Work - Added by Alex . almost 12 years ago

Robert Baird wrote:

If I had to guess I would say the problem is the dvb driver, but I followed the instructions in the post I linked to above. Surely others have been able to get the HDHomerun to work with TVheadend, right?

I am using HDHomerun with TVheadend ( allthough it is dvb-c and not ATSC, but the idea is the same).

However, it might be that indeed you do not have the right frequencies: Some cable companies broadcast the channel-info on different frequencies then the actual channel is on. This means that even with the right frequency, you also need the other one to get the right info ( and maybe other way around: You get the info, but not the rigth frequency for the channel).

You can maybe use your regular tuner to find out some of the frequencies, and add those muxes manually, or try to google for the frequencies in your region.
(maybe you can try this, but i am not sure if it helps : http://www.silicondust.com/support/channels/ )

Alex.

RE: Map DVB Services Doesn't Work - Added by Bob Baird almost 12 years ago

Thanks for the help Alex. I got it working with the help of another user in this https://www.lonelycoder.com/redmine/boards/4/topics/6326?r=6858 thread.

In case anyone stumbles across this I'll try to document what I did to get this to work.

First, I couldn't get any of the streams to play in the browser (any browser). If you run into that don't panic.

Setup a custom mux list:

Run this command to get your device id:

hdhomerun_config discover

Output should look like this:

hdhomerun device 101899F3 found at 192.168.2.5

101899F3 is my device id. 192.168.2.5 is the IP address of the HDHR

hdhomerun_config 101899F3 scan 1 scan1.txt

where 101899F3 is my HDHR device ID and scan 1 refers to tuner 1 (which is actually the second tuner, tuner 0 is the first tuner, use the tuner number that corresponds to where your cable is plugged in).

Then run this command:

awk '{if ($1 ~ /SCANNING/) print "\n" $2; else print $0}' scan1.txt | awk 'BEGIN { RS = "" ; FS = "\n" } { if (length($4) > 0) print "A " $1 " qam256" }' >us-KS-Salina

where us-KS-Salina is the name of your custom mux list. The format should be us-ST-City. Name yours appropriately.

I only have the 18 local channels (10 PBS stations:( ) my cable company transmits unencrypted over cable, but it still came back with 51 muxes and 416 services. To whittle that down I used the hdhomerun-config program to figure out which muxes were actually usable. Of the 51 only four of them were transmiting unencrypted data. Using this http://www.silicondust.com/forum/viewtopic.php?t=2335 link that Alex posted above I was able to translate those for muxes to frequencies. I then edited my custom mux list to only include those four frequencies.

Next copy your custom mux to the folder containing the default ATSC muxes:

sudo cp us-KS-Salina /usr/share/tvheadend/data/dvb-scan/atsc

Next I went into TVHeadend config and proceded with the setup as described here, with my changes in bold:

Finish tvheadend config:
open browser, go to: http://tvheadendserver:9981/
click "Configuration", click "TV Adapters"
Select an adapter in dropdown list;
Check Autodetect muxes and Idle scanning;
Check "Close Device Handle When Idle" and "Monitor Signal Quality"
Set "Full Mux Reception" to OFF

optionally change the adapter name;
click save;
Click Add DVB Network by Location and select yours; Select the file we created above
The Status display will now change to show how many Muxes there are and how many more need scanned;

This may take a while depending on how many muxes you have, but my 4 sure went a hell of a lot faster than the initial 51 :P

Once that is done, Uncheck "Idle Scanning". If you don't check it initially scanning muxes will hang with one mux left to scan, if you leave it checked it screws you up later.

When "Muxes Awaiting Initial Scan" goes to 0 you should be able to click "Map DVB Services". If you're lucky, you'll be done. If not continue.

I didn't get any services mapped to my channels, so I set bogus channel names (I just used 1 - 18) and then used XBMC to view the channels. Like I said above, I could not get the play button to work in my browser. Once I could watch the channels on XBMC I figured out what channel went with each channel number. Then I went back into the configuration and changed the channel names. After that everything has been smooth sailing.

Hopefully this helps someone out in the future. TVHeadend has defiantly made my XBMC box perfect now that XBMC has PVR support. Thanks for everyone's help and hard work!

Bob.

    (1-6/6)