View Full Version : [MAC] HDHomeRun not working in XBMC for Mac?
grywalsr
2009-01-04, 16:52
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?
jeffreybreen
2009-01-05, 04:42
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... :)
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]
jeffreybreen
2009-01-05, 17:16
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
Gamester17
2009-01-05, 17:22
Patch and/or a Bug Report on trac would be welcomed:
http://xbmc.org/trac/
:;):
grywalsr
2009-01-10, 20:41
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.
jeffreybreen
2009-01-11, 01:21
Hi:
I have opened XBMC trac bug ticket #5606 (http://xbmc.org/trac/ticket/5604) 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
mrjcleaver
2009-01-11, 19:24
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
jeffreybreen
2009-01-13, 18:05
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
mrjcleaver
2009-01-16, 03:21
Hmm. Well, I'd compiled it again, and it worked fine.
Good job Jeffrey, and thanks!
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]
http://xbmc.org/trac/changeset/17352
http://xbmc.org/forum/showthread.php?t=44301
have you actually gotten it to work, davilla? It is detecting the tuners now, but once you click one to add it as a source, XBMC crashes. I tried hardcoding the source (hdhomerun://10173ab6-0/ for mine) and it starts buffering but then stops at 47-48% then times out and goes back to the file listing.
The old source format hdhomerun://10173ab6/tuner0 just crashes for me.
have you actually gotten it to work, davilla? It is detecting the tuners now, but once you click one to add it as a source, XBMC crashes. I tried hardcoding the source (hdhomerun://10173ab6-0/ for mine) and it starts buffering but then stops at 47-48% then times out and goes back to the file listing.
The old source format hdhomerun://10173ab6/tuner0 just crashes for me.
Works for me :) It would be helpful to pastebin xbmc.log and the crashreporter log.
ok here's the log after it discovers the two hdhomerun tuners and I select the tuner I want to add as a source.
XBMC.log http://pastebin.com/mf35c133
Crash Reporter http://pastebin.com/d6174dfc1
With adding the source manually, I've mostly got the live feed working with some tweaks to the video cache.
ok here's the log after it discovers the two hdhomerun tuners and I select the tuner I want to add as a source.
XBMC.log http://pastebin.com/mf35c133
Crash Reporter http://pastebin.com/d6174dfc1
With adding the source manually, I've mostly got the live feed working with some tweaks to the video cache.
Thanks, I'll look into it.
just installed tsf42m's new build and installed it on the appletv, and it detects the tuners, hit select to add it as a source and xbmc crashes there too and goes back to the launcher. log looks the same.. no real error, just starts loading the dll then dead.
21:49:07 T:2684407808 M: 28393472 DEBUG: SECTION:LoadDLL(special://xbmc/system/hdhomerun-osx.so)
21:49:07 T:2684407808 M: 28397568 DEBUG: Loading: /Applications/XBMC.app/Contents/Resources/XBMC/system/hdhomerun-osx.so
21:49:09 T:2684407808 M: 25501696 DEBUG: Sort, sorting took 0 millis
21:49:09 T:2684407808 M: 25186304 DEBUG: Load defaultFolderBackBig.png: 6.1ms (bundled)
21:49:09 T:2684407808 M: 25473024 DEBUG: Load browsermask.png: 0.5ms (bundled)
21:49:11 T:2684407808 M: 25190400 DEBUG: Load defaultFolderBig.png: 5.3ms (bundled)
21:49:11 T:2684407808 M: 25485312 DEBUG: Load browsermask.png: 0.5ms (bundled)
21:49:15 T:2684407808 M: 18743296 DEBUG: PICTURE: loaded image and created texture. height: 720, width: 1280
21:49:15 T:2684407808 M: 16818176 DEBUG: Load /mnt/Scratch/Users/frontrow/Pictures/TV Shows/stargate1080.jpg: 364.7ms
21:49:16 T:2684407808 M: 14336000 DEBUG: Sort, sorting took 0 millis
Crash Reporter:
http://pastebin.com/m3aafefe8
looks like plex fixed hdhomerun while my xbmc still just crashes whenever i try to add it as a source. wonder what they did.
looks like plex fixed hdhomerun while my xbmc still just crashes whenever i try to add it as a source. wonder what they did.
9.04.alpha1 ?
yep. Version 9.04.alpha1 (SVN-19213M)
crash reporter: http://pastebin.com/m895693
log: http://pastebin.com/m5d9728db
usually xbmc just crashes as soon as i try to add it as a source, sometimes i can get it to add it, but then if i try to click it on it, it either crashes then or gets to the current stream info and when i try to hit that says the item doesn't exist any more would i like to remove it.
yep. Version 9.04.alpha1 (SVN-19213M)
crash reporter: http://pastebin.com/m895693
log: http://pastebin.com/m5d9728db
usually xbmc just crashes as soon as i try to add it as a source, sometimes i can get it to add it, but then if i try to click it on it, it either crashes then or gets to the current stream info and when i try to hit that says the item doesn't exist any more would i like to remove it.
Will look into it. Most likely something stupid. :)
EDIT: yep, it's broke. This worked when I updated the code and some svn commit broke it :) Starting to track it down.
fixed in Changeset [19420]
fixed in Changeset [19420]
awesome, can't wait until alpha 2.
now if we could only develop dvr software built into xbmc :)
mbertsch
2009-04-12, 20:57
fixed in Changeset [19420]
Hi davilla,
First, thanks much for all your work on this. I just discovered XBMC and am both thrilled and in awe of it all.
I checked out and built changeset 19420, and both browsing to my HDHomerun device and trying to play a pre-configued .strm file result in XBMC crashing with a "Bus error" reported in my Terminal window.
The debug logs and crashreporter logs for both scenarios are at:
Browsing, debug log: http://pastebin.com/m35650af7
Browsing, crash reporter: http://pastebin.com/m6ccf9671
Stream play, debug log: http://pastebin.com/m5146f4a5
Stream play, crash reporter: http://pastebin.com/m624ef697
I'm not much of a developer, but please let me know if there's anything I can do to help you on this, or if it looks like I just screwed up the build on my system.
Thanks,
-Mike
fastscirocco
2009-09-21, 18:27
I can't tell by reading this thread if this is fixed now.
I'm looking into buying an Apple TV that I'll set up with XBMC and want to get
an HDHomeRun to stream my local channels to it, anyone else have this set up working?
I can't tell by reading this thread if this is fixed now.
I'm looking into buying an Apple TV that I'll set up with XBMC and want to get
an HDHomeRun to stream my local channels to it, anyone else have this set up working?
I just reconfirmed that my setup is working. I have the build from SVN 23185