HDHR Stream Builder is a tool written in C#.Net for Windows to assist in managing the integration of the HDHomeRun network streaming device with various aspects of XBMC including the TVGuide Addon.
To be able to tune and play content from my shiney new HDHomeRun Prime on my XBMC clients of course!
XBMC has had support for the HDHomeRun for some time now. Using the following format XBMC will change the channel on the specfied tuner to the channel and program specfied un the url. The easiest way to get this setup is to generate *.strm files for each channel. Each *.strm file contains a url like the one below.
hdhomerun://99999999-0/tuner0?channel=auto:135&program=646
Yes there is a Perl script written by JWater7. I had some trouble with the Fios channel scans producing consistent *.strm files for each channel. I monkeyed with it for a while, but since I'm a complete novice when it comes to Perl, it was just easier for me to port it over to C# real quick. The challenge turned out not to be Perl, but the regular expression for parsing the output of the scan. I found that many channels were being skipped because the regex didn't cover all scenarios in the output data.
The HDHomeRun Config GUI tool has support for generating *.strm files too, but unortunately has not been updated to work on Windows 7.
I threw together a quick program one night based mostly on the Perl code I found that generated the files. That was the basis of the HDHomeRun Stream Builder as it has since been added to with other utility functions to make my life easier.
Considering this thing has become a bit of a hodgepodge of features related to HDHR and XBMC, and the fact that this is written hastily in my spare time focusing more on results than user experience and code prettiness, I'd bet the following information is required.
Choose Tools > Options to configure the tool
-
Choose the location of your hdhomerun_config.exe file.
- This is located in the install directory for your silicondust HDHomeRun
-
Choose the location of your mc2xml.exe file.
-
Choose the location of your TVGuide Source.db file.
- This is located in the addon_data directory of your XBMC install under the TVGuide folder. If you do not see a folder there for the TVGuide Addon, then make sure it is installed first.
-
Set your prefered behavior of the scanner. You can choose to have it ignore any channel that is marked as encrypted and any zero program numbers.
-
For Fios setup on my Prime, I leave "Ignore All Encrypted" unchecked, but I check the "Ignore Zero Program Number" option.
-
For QAM channels, Dilligaf from the XBMC forums reported having channels that were not named, but did in fact contain a stream (these are channels that have not been encrypted by the provider and therefor can be obtained without a cablecard or set top box directly over the cable line like in the old days of cable)
-
-
Choose the tuner to use from the top right of the screen
- The selected tuner is the value used when writing the *.strm files
- The selected tuner is the value used when configuring the TVGuide Addon
-
Choose Tools > Scan Channels (a few minutes with the Pime)
-
Enhancing channel names with XMLTV data
- This will be done automatically by building an XMLTV file using mc2xml.exe during the channel scan.
- If you have not yet configured mc2xml, you will be prompted to enter your zipcode during the first channel scan.
- Once a zip code is entered, a list of content providers for your area will be presented for you to select the one that represents your cable service.
- mc2xml will now download the tv listings and channels for your cable service specifically
- HDHR Stream Builder will use the channels portion of that generated XMLTV to merge with the content from the initial HDHR channel scan. This provides for a higher quality channel name, the callsign, and the XMLTV channel ID for any channels matched by the virtual channel number.
-
Check the boxes for the channels you want (favorites). There are a couple of convenient ways to do this.
-
Click the "Select HD Only" button from the UI to automatically check channels that contain the capital letters "HD" in the name. This will overright any previous checks as it does a clear of all checks as it's first step.
-
Click the "Select Channel Range" button from the UI to select a range of channels in a popup. This popup has a checkbox to give the option over overriding all prior checks first or to add to what is already checked.
-
The last option is the simplest and the one I end up using the most. Holding down CTRL or SHIFT to select multiple channels at once, then right click and choose check or uncheck.
-
-
Choose File > Save to save all of the channels.
-
First complete a channel scan and select your favorite channels as the only *.strm files generated will be for the selected channels.
-
Choose File > Export > Stream Files (*.strm)
- This will generate a folder named for the selected tuner under the configured strm file directory like
/<strm_dir>/tuner<tuner_number>/<strm_filename>.strm
- This will generate a folder named for the selected tuner under the configured strm file directory like
-
Choose Tools > XMLTV > Write Favorite Channels File (*.chl)
-
Choose Tools > XMLTV > Build XMLTV File For Favorites Only
-
Choose Tools > Configure Using Favorite Channels
- This will publish each favorite channel to TVGuide and associate the stream files with each