Kodi Community Forum
XBMC Slingbox Client - Development Status - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: XBMC Slingbox Client - Development Status (/showthread.php?tid=82597)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


- tolax - 2011-02-12

Harry Muscle Wrote:Got some good news for those that have been waiting to try this but didn't want to go thru the process of compiling, etc. Here: http://www.megaupload.com/?d=468BLANO you can find a compiled version of XBMC for Windows. It's based on GIT commit 4b398fe55699325a2e8ae7ef880abb167de2890f (which if from February 11, 2011 @ 6:27:20PM). Only problem is that there's currently no nightly builds (with installer and all the support files, etc.) available officially. However, I believe you can get your hands on some from about a month ago here: http://sshcs.com/xbmc/?mode=DLC&FA=XBMC&FT=PC&FB=35744&TF=rar (or just go to http://sshcs.com/xbmc/ and follow the prompts) and then just swap the exe file that I provided in the first link. I haven't actually tested that combination, but unless something major was changed on the skin or other support files it should work I presume. Maybe whoever is the first to try could just report back and let everyone else know. If I had more time I'd try it myself, but it's either that or continue working on the changes requested by the mods to get this officially into XBMC.

Thanks,
Harry

P.S. Since XBMC has moved over to GIT my latest posted patch is a pain to apply, so if there's anyone who wants to compile the latest and greatest version of XBMC from GIT with my patch, I can make a copy of it available designed for GIT. Just ask and I'll upload it.

P.P.S. For those trying this out and not wanting to read the ticket on how to add the Slingbox ... basically just add a new source in the format of:
sling://username: password@slingboxaddress: port (username has to be either administrator or viewer)

Close - downloaded rar you linked and installed replacing the xbmc.exe file.

I gt the option to watc Slingbox but then I get the spinning wheel for 20 secsonds and nothing. Log file shows a loop of:

10:36:14 T:2696 M:909447168 NOTICE: DVDPlayer: Opening: sling://administrator:********@192.168.0.254:***/
10:36:14 T:2696 M:909443072 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
10:36:14 T:588 M:909443072 NOTICE: Creating InputStream
10:36:18 T:588 M:909848576 NOTICE: Creating Demuxer
10:36:18 T:588 M:909828096 WARNING: Win32DllLoader::ResolveExport - Unable to resolve: avutil-50.dll av_set_string3
10:36:18 T:588 M:909828096 ERROR: Unable to resolve exports from dll special://xbmcbin/system/players/dvdplayer/avutil-50.dll
10:36:18 T:588 M:909828096 ERROR: CDVDDemuxFFmpeg::Open - failed to load ffmpeg libraries

Loops this 10 times or so and then closes out

10:36:20 T:588 M:909832192 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
10:36:20 T:588 M:909832192 NOTICE: CDVDPlayer::OnExit()
10:36:20 T:588 M:909832192 NOTICE: CDVDPlayer::OnExit() deleting input stream
10:36:20 T:588 M:909832192 ERROR: XFILE::CSlingboxFile::Close - Error disconnecting from Slingbox
10:36:20 T:2696 M:909828096 ERROR: Playlist Player: skipping unplayable item: 0, path [sling://administrator:********@192.168.0.254:***/]
10:36:20 T:2696 M:909824000 NOTICE: CDVDPlayer::CloseFile()
10:36:20 T:2696 M:909824000 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
10:36:20 T:2696 M:909824000 NOTICE: DVDPlayer: waiting for threads to exit
10:36:20 T:2696 M:909824000 NOTICE: DVDPlayer: finished waiting

(password/port replaced with *)

I'll investigate the FFmpeg more tomorrow. Seems there are similar error messaged on the PVR development threads. Windows64 if that is relevant. Slingplayer itself runs fine.

BTW would it be possible to use the Slingbox-ID rather than the IP Address? That would make it easier to access remote Slingboxes

Tolax


- Harry Muscle - 2011-02-12

tolax Wrote:Close - downloaded rar you linked and installed replacing the xbmc.exe file.

I gt the option to watc Slingbox but then I get the spinning wheel for 20 secsonds and nothing. Log file shows a loop of:

10:36:14 T:2696 M:909447168 NOTICE: DVDPlayer: Opening: sling://administrator:********@192.168.0.254:***/
10:36:14 T:2696 M:909443072 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
10:36:14 T:588 M:909443072 NOTICE: Creating InputStream
10:36:18 T:588 M:909848576 NOTICE: Creating Demuxer
10:36:18 T:588 M:909828096 WARNING: Win32DllLoader::ResolveExport - Unable to resolve: avutil-50.dll av_set_string3
10:36:18 T:588 M:909828096 ERROR: Unable to resolve exports from dll special://xbmcbin/system/players/dvdplayer/avutil-50.dll
10:36:18 T:588 M:909828096 ERROR: CDVDDemuxFFmpeg::Open - failed to load ffmpeg libraries

Loops this 10 times or so and then closes out

10:36:20 T:588 M:909832192 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
10:36:20 T:588 M:909832192 NOTICE: CDVDPlayer::OnExit()
10:36:20 T:588 M:909832192 NOTICE: CDVDPlayer::OnExit() deleting input stream
10:36:20 T:588 M:909832192 ERROR: XFILE::CSlingboxFile::Close - Error disconnecting from Slingbox
10:36:20 T:2696 M:909828096 ERROR: Playlist Player: skipping unplayable item: 0, path [sling://administrator:********@192.168.0.254:***/]
10:36:20 T:2696 M:909824000 NOTICE: CDVDPlayer::CloseFile()
10:36:20 T:2696 M:909824000 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
10:36:20 T:2696 M:909824000 NOTICE: DVDPlayer: waiting for threads to exit
10:36:20 T:2696 M:909824000 NOTICE: DVDPlayer: finished waiting

(password/port replaced with *)

I'll investigate the FFmpeg more tomorrow. Seems there are similar error messaged on the PVR development threads. Windows64 if that is relevant. Slingplayer itself runs fine.

BTW would it be possible to use the Slingbox-ID rather than the IP Address? That would make it easier to access remote Slingboxes

Tolax

If you can, please post the whole log to pastebin.com and post the link here. Also make sure it's the debug log (enable debug log in settings). It's hard to trouble shoot without having the whole thing.

Thanks,
Harry


- Harry Muscle - 2011-02-12

Quick little follow up ... I did some testing on my own with the configuration that I recommended but didn't have time to test and it turns out that indeed some of the support files did change enough to not allow what I've recommended. There's been a bunch of changes to the ffmpeg dll files so all you need is to update those too, which I happen to have uploaded here: http://www.megaupload.com/?d=GMPGOW5T . The contents of that file need to replace the DVDPlayer folder in the XBMC/System/Players folder.

This isn't exactly a pretty solution, but I've tested it and it will work. Once we have official nightly builds things will be much prettier and easier, but I'm hoping by then this code might actually be part of those builds.

Thanks,
Harry


- tolax - 2011-02-12

Harry,

I'll try your file but just in case you need the debug log here it is: http://pastebin.com/SfSK32q7

Tolax


- Harry Muscle - 2011-02-12

tolax Wrote:Harry,

I'll try your file but just in case you need the debug log here it is: http://pastebin.com/SfSK32q7

Tolax

Thanks for the log ... yup, the errors you are getting is cause the ffmpeg dll files have changed significantly enough to mess things up. Based on my own testing those new dll files should fix things.

Harry


- tolax - 2011-02-12

Harry Muscle Wrote:Thanks for the log ... yup, the errors you are getting is cause the ffmpeg dll files have changed significantly enough to mess things up. Based on my own testing those new dll files should fix things.

Harry

Yay a picture...... Smile

some pixelation (especially with solids) and no sound. Seems it has an error decoding the audio.

Apologies for taking up your weekend.... http://pastebin.com/TG7B0xj7

Also a quick question. Should I be able to send remote controls? So as I was streaming cableTV should channel up change channel etc?

Tolax


- Harry Muscle - 2011-02-12

Version 4 of the patch is now up: http://trac.xbmc.org/ticket/10464 . It includes all the changes asked for by the devs so there's a good chance this is gonna make it into the actual code base.

Thanks,
Harry


- Harry Muscle - 2011-02-12

tolax Wrote:Yay a picture...... Smile

some pixelation (especially with solids) and no sound. Seems it has an error decoding the audio.

Apologies for taking up your weekend.... http://pastebin.com/TG7B0xj7

Also a quick question. Should I be able to send remote controls? So as I was streaming cableTV should channel up change channel etc?

Tolax

The pixelation is cause the max resolution that's not encrypted on the Slingbox is 320 by 240, which isn't exactly super high res Smile Plus it defaults to a video bit rate of 768kb/s, which again isn't too high. All these can be modified via AdvancedSettings.xml (in your precompiled version) and via SlingboxSettings.xml in the latest version based on patch 4. The sound part is interesting though. I'm wondering if maybe that's just an artificat of the fact that you are piecing together bits and pieces so as to avoid having to compile things. If you'd like, if you PM me your Slingbox ip address and the viewer username and address I could connect to it this afternoon and see what kind of results I get with the latest patch.

Thanks,
Harry


- tolax - 2011-02-12

Harry Muscle Wrote:The pixelation is cause the max resolution that's not encrypted on the Slingbox is 320 by 240, which isn't exactly super high res Smile Plus it defaults to a video bit rate of 768kb/s, which again isn't too high. All these can be modified via AdvancedSettings.xml (in your precompiled version) and via SlingboxSettings.xml in the latest version based on patch 4. The sound part is interesting though. I'm wondering if maybe that's just an artificat of the fact that you are piecing together bits and pieces so as to avoid having to compile things. If you'd like, if you PM me your Slingbox ip address and the viewer username and address I could connect to it this afternoon and see what kind of results I get with the latest patch.

Thanks,
Harry

PM sent - Smile


- Harry Muscle - 2011-02-12

tolax Wrote:PM sent - Smile

PM sent back Smile ... in case others are curious though, it seems that for some reason Tolax's slingbox "encrypts" all resolutions. It's the first one I've come across that does that. All the other ones I've tested so far allowed anything below 320x240 to be unencrypted and thus perfectly watchable. So for anyone who might read this and test things out, if you are seeing half a picture with a bunch of "garbage" and are hearing no audio, that's the "encryption". And if any ecryption or decoding gurus are reading this and want to help figure out a solution to this issue I'm all ears.

Thanks,
Harry


- Harry Muscle - 2011-02-12

More good news Smile ... I've put together a "nightly compile" of not just the exe but the full XBMC distribution with all required files, etc. It can be downloaded here: http://www.megaupload.com/?d=IPXL13WO . Simply unzip the file and run the xbmc.exe file. You'll be running the latest XBMC as of yesterday with patch version 4 compiled in. In order to add a slingbox, add a source in the following format:

Code:
sling://username:password@slingboxaddress:port/input

Where username is either administrator or viewer and slingboxaddress is either an IP address or DNS name that you can resolve locally and input is the input number you want to watch. Input is optional, if none is specified it will default to the first input. Port is also optional, it will default to 5001 (default Slingbox port) if none is specified.

If you want to change the default connection settings for connecting to your Slingbox, you can create a SlingboxSettings.xml file in the userdata folder (where the AdvancedSettings.xml file would normally be created also, for example) with the following layout:

Code:
<slingboxsettings>
  <slingbox>
    <width>320</width>
    <height>240</height>
    <videobitrate>704</videobitrate>
    <framerate>30</framerate>
    <smoothing>50</smoothing>
    <audiobitrate>64</audiobitrate>
    <iframeinterval>10</iframeinterval>
    <buttons>
      <channelup>09</channelup>
      <channeldown>0A</channeldown>
      <zero>3A</zero>
      <one>31</one>
      <eight>38</eight>
      <nine>39</nine>
    </buttons>
  </slingbox>
</slingboxsettings>

Every settings is optional, so if you only want to override the audio bitrate, then that's all you have to specify, all the other settings will keep their default values. If you need your Slingbox to send IR commands to control whatever your source is, you need to enter your button details in the button section. Currently only the channel up/down and 0-9 buttons are supported. They need a value somewhere between 00 and FF in hexadecimal notation. The problem currently is that the only two ways to find the correct values are either by trial and error (most Slingboxes I tested had values under 50 for all these buttons, if that helps), or to analize the network traffic between the Slingbox and Sling Player ... not a very user friendly act.

Hope this helps while we wait for the latest patch to make it into XBMC.

If you guys have any questions let me know. I should be around for the next couple of days.

Thanks,
Harry

P.S. If you are connecting to more than one Slingbox, you can specify settings for them seperately, by adding hostname=slingboxaddress to the slingbox entry in SlingboxSettings.xml ... so it would look something like this:

Code:
<slingboxsettings>
  <slingbox hostname=slingbox1address>
    ...
  </slingbox>
  <slingbox hostname=slingbox2address>
    ...
  </slingbox>
</slingboxsettings>

The code will try to find the first set of settings that either has no hostname specified (the settings that match all Slingboxes) or where the hostname matches the Slingbox you wanna watch.


- chris0147 - 2011-02-13

Harry Muscle Wrote:I haven't had a chance to host it on my site yet, so I uploaded it here: http://www.megaupload.com/?d=FTUQOMWM . You should find this way easier to understand and use than SlingboxSDK ... then again of course I'd say that cause I wrote it Smile

Harry

Thanks Harry,

is that both documents is for c++? if yes then i will try and convert it to net. however how i can watch streams through on my form, should i drag the vlc player control and use it? Smile


- tolax - 2011-02-13

Harry Muscle Wrote:PM sent back Smile ... in case others are curious though, it seems that for some reason Tolax's slingbox "encrypts" all resolutions. It's the first one I've come across that does that. All the other ones I've tested so far allowed anything below 320x240 to be unencrypted and thus perfectly watchable. So for anyone who might read this and test things out, if you are seeing half a picture with a bunch of "garbage" and are hearing no audio, that's the "encryption". And if any ecryption or decoding gurus are reading this and want to help figure out a solution to this issue I'm all ears.

Thanks,
Harry

For reference I have a couple of Slingbox PRO-HD's (USA). HW rev 1.0, Firmware 2.1.90 (11/30/2010). If anyone with a pro-hd does not have encryption at the low resolutions I would be interested in the FW version they are using

Tolax


- Harry Muscle - 2011-02-13

chris0147 Wrote:Thanks Harry,

is that both documents is for c++? if yes then i will try and convert it to net. however how i can watch streams through on my form, should i drag the vlc player control and use it? Smile

Yup, both are C++ documents, one is the actual c++ source file and the other is the c++ header file. As for answering your question, sorry no idea.

Harry


Can't find the addon - astroboy2 - 2011-02-13

I tryed http://www.megaupload.com/?d=IPXL13WO. I unziped the file then run XBMC.exe. The application started but I can't find anyting about SlingBox in program or video. I did a seach for Sling* in program file and in AppData but I have 0 result.

Are you sure this build really include the SlingBox add-on Huh

Bye the way, very nice idea to do this feature ! If yes this there a GUI in XBMC ?