[MAC/ATV] SiliconDust HDHomeRun not working in XBMC for Mac and Apple TV?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
grywalsr Offline
Junior Member
Posts: 2
Joined: Jan 2009
Reputation: 0
Question  [MAC/ATV] SiliconDust HDHomeRun not working in XBMC for Mac and Apple TV? Post: #1
I have the latest HDHomeRun and XBMC versions. I can get live TV to work with the HDHomeRun on my XP PC, but I can't seem to get it to work on my Mac. When I add video content on the PC and browse to hdhomerun:// I see the the device id of the turners, but on the mac side they are missing. So my guess it is something to do with the discovery of the device over the network. I can use the hdhomerun gui with VLC to view live TV on the mac, so it does not appear to be a basic hdhomerun/Mac/network setup issue. Any ideas on what I could be doing wrong? Anyone get this combination to work yet?
find quote
jeffreybreen Offline
Junior Member
Posts: 5
Joined: Jan 2009
Reputation: 0
Post: #2
I am having the same problem. I turned on debug mode, and it looks as though the hdhomerun code isn't being included in the Mac OS binary releases.

In the log below, see "ERROR: Unable to load /Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so, reason: dlopen(/Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so, 1): image not found". Sure enough, that library is missing.

I haven't downloaded the source (yet) -- if someone wants to compile a version with the hdhomerun: handler included, I'd be happy to test... Smile

Thanks!
Jeffrey


21:30:34 T:2691958560 M:109617152 DEBUG: new file set audiostream:0
21:30:34 T:2691958560 M:109531136 NOTICE: DVDPlayer: Opening: hdhomerun://1011610B/tuner0?channel=8vsb:641000000&program=3
21:30:34 T:2961051648 M:109535232 DEBUG: Running thread 2961051648
21:30:34 T:2691958560 M:109535232 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
21:30:34 T:2961051648 M:109514752 DEBUG: thread start, auto delete: 1
21:30:34 T:2961858560 M:109510656 DEBUG: Running thread 2961858560
21:30:34 T:2961858560 M:109510656 DEBUG: thread start, auto delete: 0
21:30:34 T:2961858560 M:109498368 NOTICE: Creating InputStream
21:30:34 T:2961858560 M:109449216 DEBUG: Loading: /Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so
21:30:34 T:2961858560 M:109457408 ERROR: Unable to load /Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so, reason: dlopen(/Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so, 1): image not found
21:30:34 T:2961858560 M:109449216 ERROR: CDVDPlayer::OpenInputStream - error opening [hdhomerun://1011610B/tuner0?channel=8vsb:641000000&program=3]
21:30:34 T:2961858560 M:109445120 INFO: Loading skin file: DialogProgress.xml
21:30:34 T:2961858560 M:108318720 DEBUG: Load DialogProgress.xml: 19.16ms
21:30:34 T:2961858560 M:108318720 NOTICE: CDVDPlayer::OnExit()
21:30:34 T:2961858560 M:108318720 NOTICE: CDVDPlayer::OnExit() deleting input stream
21:30:34 T:2961051648 M:108314624 DEBUG: staticThread, deleting thread object
21:30:34 T:2961051648 M:108314624 DEBUG: staticThread, deleting thread graphic context
21:30:34 T:2961051648 M:108314624 DEBUG: Thread 2961051648 terminating
21:30:34 T:2961858560 M:108310528 DEBUG: Playback was stopped
21:30:34 T:2961858560 M:108310528 DEBUG: staticThread, deleting thread graphic context
21:30:34 T:2961858560 M:108310528 DEBUG: Thread 2961858560 terminating
21:30:34 T:2691958560 M:108294144 NOTICE: CDVDPlayer::CloseFile()
21:30:34 T:2691958560 M:108294144 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
21:30:34 T:2691958560 M:108294144 NOTICE: DVDPlayer: waiting for threads to exit
21:30:34 T:2691958560 M:108326912 NOTICE: DVDPlayer: finished waiting
21:30:34 T:2691958560 M:108322816 ERROR: Playlist Player: skipping unplayable item: 0, path [hdhomerun://1011610B/tuner0?channel=8vsb:641000000&program=3]
find quote
jeffreybreen Offline
Junior Member
Posts: 5
Joined: Jan 2009
Reputation: 0
Post: #3
It looks as though there was a change in Silicon Dust's libhdhomerun and the function which XBMC uses to discover the device(s) on the network went away. I'm posting at Silicon Dust to see if that was intentional.

In the mean time, I found the code for the required function (hdhomerun_discover_find_devices) in the source from the XBMC SVN (looks like a 2007 version), hacked it in, built it, and dropped it into /Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so and -- voila -- it worked!

I don't have any of the prereqs to build XBMC on my iMac (yet), so I've only built the library and done basic testing (i.e., it seems to work vs. it didn't work at all before :). If someone is really eager to have it working, I can send you the hacked source and library, etc. But I would like to hear back from Silicon Dust first, in case there was a reason that function was dropped and there's a better way to be doing device discovery.

Thanks,
Jeffrey
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,595
Joined: Sep 2003
Reputation: 9
Location: Sweden
Post: #4
Patch and/or a Bug Report on trac would be welcomed:
http://trac.xbmc.org/

Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
grywalsr Offline
Junior Member
Posts: 2
Joined: Jan 2009
Reputation: 0
Post: #5
jeffreybreen Wrote:If someone is really eager to have it working, I can send you the hacked source and library, etc.

I'd like to get this working. Where I can I get your library.
find quote
jeffreybreen Offline
Junior Member
Posts: 5
Joined: Jan 2009
Reputation: 0
Post: #6
Hi:

I have opened XBMC trac bug ticket #5606 for this issue. I think the quickest, "correct" solution is to fix the build to include the hdhomerun code (it currently only seems to reference the *.h header files).

I want to help, but I'm a linux hacker and am still trying to learn how to compile XBMC in XCode.

So, in the mean time I've posted my hacked code and compiled binary here:

http://sites.jeffreybreen.com/mac-hdhomerun-xbmc/ (thanks, Google!)

Hopefully it works for you. I have tested it with XBMC and Boxee.

Being able to stream from HDHomeRun has given me a whole new appreciation for "rabbit ear TV".

Thanks,
Jeffrey
(This post was last modified: 2009-01-11 04:24 by Gamester17.)
find quote
mrjcleaver Offline
Junior Member
Posts: 2
Joined: Jan 2009
Reputation: 0
Post: #7
Hi,

Looks like I am hot on your heels with this one!

I'd really like to use my HDHomeRun with Boxee.

Here's the bug I get when I try installing on my Leopard based Mac that I use as a Media Centre:

12:09:27 T:2959486976 M:3236560896 ERROR: Unable to load /Applications/Boxee.app/Contents/Resources/Boxee/system/hdhomerun-osx.so, reason: dlopen(/Applications/Boxee.app/Contents/Resources/Boxee/system/hdhomerun-osx.so, 1): no suitable image found. Did find:
/Applications/Boxee.app/Contents/Resources/Boxee/system/hdhomerun-osx.so: unknown file type, first eight bytes: 0xBE 0xBA 0xFE 0xCA 0x02 0x00 0x00 0x00

Is the problem that I need an Intel version?

Thanks,
Martin
find quote
jeffreybreen Offline
Junior Member
Posts: 5
Joined: Jan 2009
Reputation: 0
Post: #8
Hi Martin:

That is a weird one, but I am not a Mac hacker. I compiled that binary on an Intel iMac machine running Leopard.

I simply uploaded the .so to Google as an attachment -- don't know if that may have mangled something. Could you try replacing hdhomerun-osx.so with the library in the ".tar.gz" file?

Thanks,
Jeffrey
find quote
mrjcleaver Offline
Junior Member
Posts: 2
Joined: Jan 2009
Reputation: 0
Smile    Post: #9
Hmm. Well, I'd compiled it again, and it worked fine.

Good job Jeffrey, and thanks!
find quote
archaos Offline
Junior Member
Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #10
I tried using the hacked library in XBMC for Mac and it still does not work :

21:47:03 T:2689849120 M:372838400 NOTICE: DVDPlayer: Opening: hdhomerun://10126758/tuner1?channel=qam256:657000000&program=6
21:47:08 T:2988339200 M:372518912 ERROR: Open - error reading from input stream, hdhomerun://10126758/tuner1?channel=qam256:657000000&program=6
21:47:08 T:2689849120 M:372527104 ERROR: Playlist Player: skipping unplayable item: 20, path [hdhomerun://10126758/tuner1?channel=qam256:657000000&program=6]
find quote
Post Reply