SageTV Community  

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

Notices

SageTV Placeshifter Discussion related to the SageTV Placeshifter application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV Placeshifter software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2018, 11:55 AM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
How do you start Placeshfiter from the command line with server parameter?

I am trying to figure out how to start placeshifter from a command line in Windows. I found this post by BobPhoenix which says to use:

c:\Program Files (x86)\Java\jre6\bin\javaw.exe -cp MiniClient.jar;jogl.jar;gluegen-rt.jar sage.miniclient.MiniClient SERVERIP

But when I do this and try:
C:\Program Files (x86)\SageTV\Placeshifter>"c:\program files\Java\jre7\bin\javaw.exe" -cp MiniClient.jar;jogl.jar;gluegen-rt.jar sage.miniclient.MiniClient 192.168.1.99

I just get the splash screen and it doesn't go any further. I have verified that I have the correct path to my java executable.

I get the same thing when I just use javaw.exe as the program name rather then the full path to the jre\bin folder.

I also tried "sagetvplaceshifter.exe 102.168.1.99" but that just brings up the window to choose the server that you want to connect to.

Any suggestions?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 01-20-2018, 12:40 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Likely the jars have changed since then.

On linux the jars are

Code:
/opt/sagetv/client/gluegen-rt-2.3.1.jar
/opt/sagetv/client/gluegen-rt-2.3.1-natives-linux-amd64.jar
/opt/sagetv/client/gluegen-rt-2.3.1-natives-linux-i586.jar
/opt/sagetv/client/gluegen-rt-main-2.3.1.jar
/opt/sagetv/client/jogl-all-2.3.1.jar
/opt/sagetv/client/jogl-all-2.3.1-natives-linux-amd64.jar
/opt/sagetv/client/jogl-all-2.3.1-natives-linux-i586.jar
/opt/sagetv/client/jogl-all-main-2.3.1.jar
/opt/sagetv/client/MiniClient.jar
All of these are in the same directory as the miniclient, so, I would look at what jars you have and make sure they are all on the -cp arg.
Reply With Quote
  #3  
Old 01-20-2018, 01:54 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
When I start a bash prompt in my docker I don't see a /client folder. In /opt/sagetv I just have: Add Ons, comskip and server

But just to clarify - I am trying to start PlaceShifter on Windows using a single command rather than having to go through the screen where you select the server.

Regardless, I tried putting all of those jars in one statement but it doesn't like something as I don't even get a splash screen when I do that:

C:\Program Files (x86)\SageTV\Placeshifter>"c:\program files\Java\jre7\bin\javaw
.exe" -cp Miniclient.jar;gluegen-rt-2.3.1.jar;gluegen-rt-2.3.1-natives-linux-amd
64.jar;gluegen-rt-2.3.1-natives-linux-i586.jar;gluegen-rt-main-2.3.1.jar;jogl-al
l-2.3.1.jar;jogl-all-2.3.1-natives-linux-amd64.jar;jogl-all-2.3.1-natives-linux-
i586.jar;jogl-all-main-2.3.1.jar sageminiclient.MiniClient 192.168.1.99
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #4  
Old 01-20-2018, 02:06 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by wayner View Post
When I start a bash prompt in my docker I don't see a /client folder. In /opt/sagetv I just have: Add Ons, comskip and server

But just to clarify - I am trying to start PlaceShifter on Windows using a single command rather than having to go through the screen where you select the server.

Regardless, I tried putting all of those jars in one statement but it doesn't like something as I don't even get a splash screen when I do that:

C:\Program Files (x86)\SageTV\Placeshifter>"c:\program files\Java\jre7\bin\javaw
.exe" -cp Miniclient.jar;gluegen-rt-2.3.1.jar;gluegen-rt-2.3.1-natives-linux-amd
64.jar;gluegen-rt-2.3.1-natives-linux-i586.jar;gluegen-rt-main-2.3.1.jar;jogl-al
l-2.3.1.jar;jogl-all-2.3.1-natives-linux-amd64.jar;jogl-all-2.3.1-natives-linux-
i586.jar;jogl-all-main-2.3.1.jar sageminiclient.MiniClient 192.168.1.99
Just a guess, but is that the path to 32-bit Java or 64-bit Java on your Windows machine? I would assume you have to use 32-bit Java with the Windows version of Placeshifter.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #5  
Old 01-20-2018, 02:15 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I have two versions of Java - one in \Program Files and one in \Program Files (x86)

For the first one the version reports:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

For the second one it reports:
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

So presumably the second one is the 32 bit as it doesn't mention 64 bit and you would think that the x86 folder should have the 32 bit stuff. But neither of them work. I wonder how you can tell what parameters are being passed when you click on the server name when PlaceShifter starts up and gives a choice of what server to connect to?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #6  
Old 01-20-2018, 03:09 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
In your post above you indicate that you are starting in the program files x86 directory, but you are calling the non-x86 version of Java.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #7  
Old 01-20-2018, 04:00 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
In that example that is correct but I have tried it pointing to either Java folder with no luck.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #8  
Old 01-20-2018, 09:46 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I found an old bat file for running placeshifter but cannot test it right now...perhaps this helps....

java -cp MiniClient.jar;jogl.jar;gluegen-rt.jar -Xmx1024m sage.miniclient.MiniClient -mac 00:01:23:45:67:89 192.168.0.143

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #9  
Old 01-20-2018, 09:51 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
When I start a bash prompt in my docker I don't see a /client folder. In /opt/sagetv I just have: Add Ons, comskip and server

But just to clarify - I am trying to start PlaceShifter on Windows using a single command rather than having to go through the screen where you select the server.

Regardless, I tried putting all of those jars in one statement but it doesn't like something as I don't even get a splash screen when I do that:

C:\Program Files (x86)\SageTV\Placeshifter>"c:\program files\Java\jre7\bin\javaw
.exe" -cp Miniclient.jar;gluegen-rt-2.3.1.jar;gluegen-rt-2.3.1-natives-linux-amd
64.jar;gluegen-rt-2.3.1-natives-linux-i586.jar;gluegen-rt-main-2.3.1.jar;jogl-al
l-2.3.1.jar;jogl-all-2.3.1-natives-linux-amd64.jar;jogl-all-2.3.1-natives-linux-
i586.jar;jogl-all-main-2.3.1.jar sageminiclient.MiniClient 192.168.1.99
In the above you have a typo... its sage.miniclient.MiniClient....

You are missing the first .

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #10  
Old 01-21-2018, 04:39 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
as per my post, I said those are the ones for linux, and they are in the same directory as the MiniClient... so, in your case, you need to use all the jars in your miniclient directory.

ie,
cd C:\Program Files (x86)\SageTV\Placeshifter
dir *.jar

and use that list of jars.

I don't know what those jars on Windows... only linux.
Reply With Quote
  #11  
Old 01-21-2018, 08:42 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by jusjoken View Post
I found an old bat file for running placeshifter but cannot test it right now...perhaps this helps....

java -cp MiniClient.jar;jogl.jar;gluegen-rt.jar -Xmx1024m sage.miniclient.MiniClient -mac 00:01:23:45:67:89 192.168.0.143

k
I tested this and it still works. The -mac is handy if you want to start a few placeshifters and keep their settings separate...just make up a new mac address.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #12  
Old 01-21-2018, 08:51 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I even tried your command line and only changed the IP and it worked on my test VM.

javaw -cp MiniClient.jar;jogl.jar;gluegen-rt.jar sage.miniclient.MiniClient IP

Perhaps you need JAVA_HOME user environment variable set to the jre path as.... "c:\Program Files (x86)\Java\jre6".

I am using jre7 but I do not include the path to the bin when running javaw.exe (or java.exe) so perhaps the environment variable is key for this.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #13  
Old 01-21-2018, 12:04 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by stuckless View Post
as per my post, I said those are the ones for linux, and they are in the same directory as the MiniClient... so, in your case, you need to use all the jars in your miniclient directory.

ie,
cd C:\Program Files (x86)\SageTV\Placeshifter
dir *.jar

and use that list of jars.

I don't know what those jars on Windows... only linux.
It appears that for a Placeshifter install on Windows the only JAR that is installed is MiniClient.jar. There are a bunch of DLLs for stuff like IR, etc but it is a pretty lean install.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #14  
Old 01-21-2018, 12:23 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by jusjoken View Post
I found an old bat file for running placeshifter but cannot test it right now...perhaps this helps....

java -cp MiniClient.jar;jogl.jar;gluegen-rt.jar -Xmx1024m sage.miniclient.MiniClient -mac 00:01:23:45:67:89 192.168.0.143

k
When I do that using java as the exe rather than javaw it gives "Could not find or load main class sage.miniclient.Miniclient"
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #15  
Old 01-21-2018, 12:49 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I am stumped and going backwards! I can't even get the splash screen to occur. I don't get errors, just nothing happens when I try: "javaw.exe -cp MiniClient.jar;jogl.jar;gluegen-rt.jar sage.miniclient.MiniClient SERVERIP" or variants.

I have also tried this on my laptop which is cleaner in terms of Java as it only has the 32 bit version in c:/program files (x86). So when you type "java -version" from the C:/ root you get the 32 bit version.

But both of these systems run Placeshifter without issue when you go through the server selector program. Is there any way to see what is being spawned when you click on a server?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #16  
Old 01-21-2018, 02:46 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
What folder are you in when you are running this. My bat is in the placeshifter folder.

Did you try the environment variable and/or placing the jre\bin path in the path environment variable?

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #17  
Old 01-21-2018, 05:28 PM
wayner wayner is online now
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Ok - finally got it! @jusjoken - your batch file is the way to go but you probably want to use javaw instead of java as if you use java then you see all of the java info in a console window.

In case anyone needs this in the future the directory independent way to do this, at least currently using the 32 bit version of Java7 under a 64 bit version of Windows is: (note that if a 64 bit version of SageTV placeshifter is released then this will change, the Java folder will also be different if you aren't using V7 of Java)

"C:\Program Files (x86)\Java\jre7\bin\java" -cp "C:\Program Files (x86)\sagetv\placeshifter\MiniClient.jar;jogl.jar;gluegen-rt.jar" -Xmx1024m sage.miniclient.MiniClient 192.168.1.99

The problems I was having were related to having both 64 bit and 32 bit versions of Java with 64 bit being the default version in the path.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
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
4.1.0 command line? aflat Batch Metadata Tools 1 06-25-2010 06:48 PM
Whats the command line switch to start SageTV.exe without splashscreen? mkanet SageTV Customizations 0 05-30-2008 09:25 PM
possible to start/stop recording via automation/command line or similar? hagur SageTV Software 3 04-17-2008 03:32 AM
command line option to start in full screen? jlindborg SageTV Software 8 09-20-2007 11:33 AM


All times are GMT -6. The time now is 11:07 AM.


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