|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
Quote:
__________________
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 |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
Quote:
You are missing the first . k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#10
|
||||
|
||||
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#11
|
|||
|
|||
Quote:
k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page |
#12
|
|||
|
|||
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 |
#13
|
|||
|
|||
Quote:
__________________
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 |
#14
|
|||
|
|||
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 |
#15
|
|||
|
|||
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 |
#16
|
|||
|
|||
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 |
#17
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |