SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Media Extender
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-28-2013, 03:34 PM
maninblack_30 maninblack_30 is offline
Sage Advanced User
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 236
Decompiling Placeshifter JAR???

Just wondering what the chances would be of decompiling the Placeshifter JAR file (Which isn't obfuscated) and reversing the protocol to perhaps use something like a Raspberry Pi (which ships with JAVA I believe) as a really cheap extender?

Perhaps if this thread remains, that could be considered a sign that we could do this without upsetting Sagegoogle?

Just a thought ;-)

Fraser
__________________
Server:HP DL380 Dual Quad Xeon E5530 2.4Ghz per core, 64GB RAM, 2x Hauppauge HVR-2200 tuners (4 total) 146GB mirrored system drive running Server 2012 R2, 3TB storage HDD space (7x500Gb),
Clients:1 STX HD-100, 1 HD-200, 1 HD-300 for main TV room connected to Pioneer SC-LX72 with Tannoy MX4 mains, MX3 rears and MXm centre (or center!) and Yamaha YST-SW160 subwoofer, Bravia 55' LCD
Reply With Quote
  #2  
Old 11-29-2013, 08:10 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Wow, that would be very cool. It's above my Java pay grade but perhaps Slugger, Sean or one of our other Java guru's could take this on?
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 11-29-2013, 09:10 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Decompiling the Jar is pretty trivial. I've done it a number of times to review different things. (I used it to reverse engineer the placeshifter discovery code at one point).

I've used both JAD and the newer JD (http://jd.benow.ca/).

Neither will produce a set of java files that can be recompiled, but it does give enough of an idea that you can read the code.

The problem with decompiled code, is that you don't get the "original" code that includes comments and variable names (non public ones) are just assigned letters, like ,'a1' 'a2', etc, and this can make reading it somewhat tricky.

I did start to look at "how" the placeshifter works, but I didn't have the time to dedicate to really understanding it. (The past year, has been a very busy year for me...)
Reply With Quote
  #4  
Old 11-29-2013, 06:09 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
I'm intrigued, and like stuckless, I've decompiled the jar before. I've decompiled the server jar to learn somethings about the server side in the past as well.

But this, to me, falls under the same category as the ongoing effort by others to raise cash for an XBMC pvr plugin against Sage -- it'll get done if/when someone with the know how needs/wants the functionality. I hope they do, but I doubt they'll raise enough cash to pay someone to write that client. But if a user with the skill set ever wants/needs that client then that's when it'll get done.

I think with enough desire, I could probably deduce the placeshifter protocol based on the decompile of the jar, but that's the key -- I don't have the desire to actually do it. Why? Because it's a lot of work & I don't need to do it. I have extenders at my tvs and I have a stockpile of extenders in the office closet to replace those extenders and so I just don't need the functionality. If I ever do, well then that's when I probably start looking closer at it.

With that said, my interests would lie exclusively in the communications & data structures. The graphics and A/V requirements... no interest to me what so ever so I'd only be able to bring but a small piece of what's required.

Anyway, in short, you need to find someone (or a group) of people with the skill set and the need for the functionality this work would provide. Find that and you're good to go. Until then, I don't think there's anything here other than knowing it's probably possible that someone could do it, which I suppose is better than nothing.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #5  
Old 11-29-2013, 10:53 PM
maninblack_30 maninblack_30 is offline
Sage Advanced User
 
Join Date: Jul 2006
Location: Melbourne, Australia
Posts: 236
Quote:
Originally Posted by Slugger View Post

Anyway, in short, you need to find someone (or a group) of people with the skill set and the need for the functionality this work would provide. Find that and you're good to go..
I guess that is exactly what I'm hoping for - something that would provide me with a secure future with SageTV - as there still isn't anything that comes close for me - for me it's the extenders, and the lack of maintenance they require and the flexibility they provide, heck, my 6yo doesn't understand what "normal" TV is, and gets annoyed at other houses when she can't watch what she wants! ;-) I'd be more than happy to chip in money wise, but I have no programming skills at all.

Cheers,
Fraser
__________________
Server:HP DL380 Dual Quad Xeon E5530 2.4Ghz per core, 64GB RAM, 2x Hauppauge HVR-2200 tuners (4 total) 146GB mirrored system drive running Server 2012 R2, 3TB storage HDD space (7x500Gb),
Clients:1 STX HD-100, 1 HD-200, 1 HD-300 for main TV room connected to Pioneer SC-LX72 with Tannoy MX4 mains, MX3 rears and MXm centre (or center!) and Yamaha YST-SW160 subwoofer, Bravia 55' LCD

Last edited by maninblack_30; 11-29-2013 at 10:56 PM.
Reply With Quote
  #6  
Old 11-30-2013, 09:19 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Money doesn't matter on things like this, imho. But if you're willing to pay for an alternate client solution for Sage then, as I said, there's an ongoing effort to raise cash for an XBMC plugin (more details thru out this thread). But that doesn't look very promising (91% shy with 4 weeks remaining).

If it were strictly about money then there wouldn't be enough users to pay the actual development costs of such a solution. That's always been my thoughts and that kickstarter project above is confirming it. But lucky for us, these types of things don't get done for money. Unlucky for us, they get done by people who 1) know how to do it and 2) need the functionality and that group, unfortunately, has diminished quite significantly over the last couple years.

I'm stockpiled in HD200s and hopefully won't run into any issues, but trust me, if someone came and took all my extenders tonight, you'd have that XBMC plugin ready to go within a few weeks.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #7  
Old 12-01-2013, 07:05 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I agree wit Slugger here, as well. The things that are done for SageTV are largely done out of necessity, and not for monetary gains. And right now, a lot of sagetv developers have lots of extra hardware, etc, and the necessity just isn't there. My biggest concern isn't about what I could use as an extender, but what am I going to do when I can no longer run a SageTV server (for whatever reason).

So, in a year or two, after a few more electrical storms (I've lost extenders during electrical storms ) I might have a greater need to do this
Reply With Quote
  #8  
Old 12-01-2013, 10:40 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
It randomly popped into my mind yesterday while I was out and about that if nothing else, deducing the placeshifter protocol would probably allow an external client (like the XBMC plugin -- or really just about anything) to register with the Sage server and obtain a Sage UI context. This would presumably allow a live tv implementation on these third party solutions to occur with a much greater chance of success. With a Sage UI context, you can now call the various live tv api calls. I'm not sure if it's quite that easy because maybe the UI context must consume the a/v stream as part of the protocol, but if not then you can just register as a UI and consume the live recording outside of the placeshifter connection. Anyway, just some food for thought for anyone who comes reading in here.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #9  
Old 12-03-2013, 10:46 AM
Brent Brent is offline
SageTVaholic
 
Join Date: May 2006
Location: KC, Missouri
Posts: 3,695
I don't currently have a need for this, but I hope someone does it. Certainly has a lot of potential!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Placeshifter and HD-PVR srothwell SageTV Placeshifter 45 12-02-2010 10:18 PM
Placeshifter won't do this, will it? troycheek SageTV Placeshifter 1 11-14-2009 10:47 PM
Placeshifter/MVP and HD-PVR opusinteractive SageTV Beta Test Software 11 08-22-2008 02:51 AM
Mac Placeshifter Taddeusz SageTV Beta Test Software 3 11-09-2007 08:41 PM
MP4 and Placeshifter codacoda SageTV Beta Test Software 21 06-17-2006 01:24 PM


All times are GMT -6. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.