Project

General

Profile

How to configure Tvheadend to use HDHomeRun under FreeBSD

Added by Dominique fossette over 8 years ago

A very precise question... It's a question at this time, but maybe I can turn it into a tutorial with your help. Thank you in advance!

I already have a solution to play HDHomeRun ATSC channels using mplayer, so I know that it works under FreeBSD. I can even record live TV using the capture feature of mplayer. However, I would love to use the Scheduled Recorder feature of Tvheadend.

Tutorials I found were really hard to follow and confusing because they were from a different Tvheadend version, not specific to only Tvheadend, and dealt with Linux intricacies.

1)
So, what I have installed is the multimedia/tvheadend Freebsd port, more precisely, it's version 4.0.8_1. At first, it wouldn't build because of missing functions during the linking phase. For example, the missing inotify_init1() function called in fsmonitor.c. This error is addressed by deinstalling the devel/libnotify FreeBSD port.

2)
Now that Tvheadend builds nicely, I run it in a user terminal. A nice looking web page is linked to port TCP 9981. I browse through the tabs to familiarizing myself. Lots of options I'm not exactly sure what they are all about.

3)
The tab CONFIGURATION -> DVB INPUTS -> TV ADAPTERS is where the HDHomeRun device is detected, as well as its two tuners. Next to the TV ADAPTERS tab is the NETWORKS tab to create network configurations. Tuners can then be assigned a network. Next to the NETWORKS tab is the MUXES tab to scan the tuner channels. Lots of options there too.

This is where my journey ends! I don't know how to have the available channels scanned and listed. (SCAN RESULT: FAIL) The PLAY link in the MUXES tab opens a blank VLC.

If it can be of any help, these errors are printed in the terminal:

2016-06-16 18:47:33.123 [ INFO] http: 192.168.1.3: using ticket 86AEC376B396DA70A669B8531C9368188414F31B for /stream/mux/6c725c6d93b7f361542b52884952bc2b
2016-06-16 18:47:33.123 [ INFO] mpegts: 0MHz in Broadcast2 - tuning on HDHomeRun ATSC Tuner #1 (192.168.1.10)
2016-06-16 18:47:33.123 [ INFO] tvhdhomerun: tuning to auto:0
2016-06-16 18:47:33.136 [ ERROR] tvhdhomerun: failed to tune to auto:0
2016-06-16 18:47:39.004 [WARNING] webui: Couldn't start streaming /stream/mux/6c725c6d93b7f361542b52884952bc2b?ticket=86AEC376B396DA70A669B8531C9368188414F31B, No free adapter
2016-06-16 18:47:39.004 [ NOTICE] subscription: 0012: No input source available for subscription "HTTP" to mux "0MHz in Broadcast2"
2016-06-16 18:47:39.004 [ INFO] subscription: 0012: "HTTP" unsubscribing, hostname="192.168.1.3", client="VLC/2.2.1 LibVLC/2.2.1"

I know that auto:0 is not good. How could I specify the system to use, for example:
:5004/auto/v5.3
If I watch it weeknights 30min. after midnight, I'll be watching THE TWILIGHT ZONE in black and white. ;-)

Dominique.


Replies (3)

RE: How to configure Tvheadend to use HDHomeRun under FreeBSD - Added by Steven Becker over 8 years ago

I'm about at the same spot in FreeBSD.
1) Create network
2) Assign network to HDHomeRun
3) Wait for muxes that never populate
I also see the same error about failing to tune to auto:0.
Forcing a network scan repeats the same error.

hdhomerun_config can scan for channels via CLI, so the HDHomerun appears to work.

Any advice would be greatly appreciated.

RE: How to configure Tvheadend to use HDHomeRun under FreeBSD - Added by Dominique fossette over 8 years ago

Steven, I don't have all the answers yet, but you may be interested by this thread:
https://forums.freebsd.org/threads/56045/#post-322300

Dominique.

RE: How to configure Tvheadend to use HDHomeRun under FreeBSD - Added by Steven Becker over 8 years ago

I had another tvheadend install working on a completely different OS. I looked at all the muxes there, and then manually added them to my FreeBSD tvheadend. Then everything works just fine. So it's a matter of getting the network to populate the mux list from the pre-defined lists -- that doesn't appear to work.

I guess since those are just predefined in a file, I could manually enter all of them. See "Make your own Mux file" in:
https://tvheadend.org/projects/tvheadend/wiki/HDHomerun

    (1-3/3)