|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Load file via commandline
Hi,
Is there a way with studio for sage to load an external file sent via the commandline? Or Is there a way for sage using a tool in studio to receive a file name from an external source (girder) to play on it's internal player? I have had a look thru the studio manuals but could not see anything ovbvious, so forgive me if I missed something. Cheers Dan |
#2
|
||||
|
||||
not directly -- you would need to build a client/server API in studio and access it from Girder/external app...
Fortunatly my webserver already is one A URL of the form: Code:
http://user:pass@localhost:8080/sage/MediaFileCommand?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=\\mediaserver\sage\file.mpg Use this either with a Girder HTTP plugin, or a command like web browser such as lynx/links/wget Caveats: the path must match a library import or sage recordings path exactly: ie exactly what you see in detailed info pages
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#3
|
||||
|
||||
Thanks I'll try that I am still on 2.3 it does not seem to work with that version so I will upgrade, and feedback if I have issues
|
#4
|
||||
|
||||
Works great for avi's, will / should it work for ifo's?
I have tried does not seem to for me. |
#5
|
||||
|
||||
for DVD filestructures, you give the path to the VIDEO_TS directory (search for an imported vid, type DVD, then view detailed info to see the path that Sage understands...)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#6
|
||||
|
||||
Good tip thanks.
|
#7
|
||||
|
||||
Nielm,
Is there a list of availble commands which we can use via the web interface? So far I have managed to get a fair few, via looking in the html source of the webserver and guess work. But a definative list would be cool Quote:
Any chance of a list or possibly a clue as to were I might find one please? The other question is would it be possible to get an xml feed for disk usage? I am trying to build some girder actions, and extend my NetRemote interface, so this would all be very useful. Many Thanks Dan |
#8
|
||||
|
||||
Quote:
The list of SageCommands (arguments to the SageCommand page) is in the Sage manual, and in the Detailed Setup/Commands page. Otherwise, the arguments that can be passed to MediaFileCommand/AiringCommand can be seen from the detailed info page:
Finally ManualRecord ?command=CancelRecord/Record ?command=SetRecPad&startpad=x&stoppad=y (mins) ?command=SetRecQual&quality=zzz ManualRecord/AiringCommand/MediaFileCommand all need an argument that specifies a file/airing: you can either use AiringId=1234 or MediaFileId=1234 or FileName=c:\path\to\file.mpg
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#9
|
||||
|
||||
Cheers Neilm,
Forgive me for asking, I am unformiliar with Java, how do I access the source code, do I need a specific ide or reader? Thanks Dan |
#10
|
||||
|
||||
Neil,
Is it possible to specify a sagetv instance (i.e. a client) for the commands to take place on? Cheers Dan |
#11
|
||||
|
||||
Quote:
Quote:
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#12
|
||||
|
||||
Thanks Niel.
|
#13
|
||||
|
||||
Hey Nielm,
Trying to get this working w/ wget - but I'm getting a 401 unauthorized - You have any idea what I'm doing wrong? Here is the script from my console: Code:
C:\wget>wget.exe http://ufgraymatter:xxxxxx@localhost:8000/sage/MediaFileCommand ?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=E:\TV\Recordings\Hous e-InformedConsent-63365-0.mpg --20:14:40-- http://ufgraymatter:xxxxxx@localhost:8000/sage/MediaFileCommand?co mmand=WatchNow => `MediaFileCommand@command=WatchNow' Connecting to localhost:8000... connected! HTTP request sent, awaiting response... 401 Unauthorized Connecting to localhost:8000... connected! HTTP request sent, awaiting response... 200 Ok Length: unspecified [text/html] 0K -> . 20:14:40 (1.31 MB/s) - `MediaFileCommand@command=WatchNow' saved [1372] 'context' is not recognized as an internal or external command, operable program or batch file. 'FileName' is not recognized as an internal or external command, operable program or batch file. Ryan Last edited by UFGrayMatter; 12-28-2006 at 07:35 PM. |
#14
|
||||
|
||||
Quote:
I am also not sure if wget copes with user/pass in the URL -- if quoting does not work, try using the --user=ufgraymatter --password=xxxxxx arguments to specify user and pass instead
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#15
|
||||
|
||||
Quote:
DOES anybody have this setup working? One other weird thing - using the this command line - i can enter it in FireFox 2.0 and it will launch the file, but it will not in IE? Any ideas on that one? Code:
C:\wget>wget.exe --http-user=ufgraymatter --http-passwd=xxxx "http://localhost :8000/sage/MediaFileCommand?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&Fil eName=E:\TV\Recordings\EverybodyHatesChris-EverybodyHatesLiar-1102124-0.mpg" --02:34:06-- http://localhost:8000/sage/MediaFile...WatchNow&conte xt=SAGETV_PROCESS_LOCAL_UI&FileName=E%3A%5CTV%5CRecordings%5CEverybodyHatesChris -EverybodyHatesLiar-1102124-0.mpg => `MediaFileCommand@command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI &FileName=E:\TV\Recordings\EverybodyHatesChris-EverybodyHatesLiar-1102124-0.mpg' Connecting to localhost:8000... connected! HTTP request sent, awaiting response... 401 Unauthorized Connecting to localhost:8000... connected! HTTP request sent, awaiting response... 200 Ok Length: unspecified [text/html] MediaFileCommand@command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=E:\TV \Recordings\EverybodyHatesChris-EverybodyHatesLiar-1102124-0.mpg: No such file o r directory Cannot write to `MediaFileCommand@command=WatchNow&context=SAGETV_PROCESS_LOCAL_ UI&FileName=E:\TV\Recordings\EverybodyHatesChris-EverybodyHatesLiar-1102124-0.mp g' (No such file or directory). |
#16
|
||||
|
||||
works for me... (wget 1.10.2 from here and in cygwin)
Futher notes: the path must match exactly the path shown in the detailed info on the webserver. Any errors would be in the saved document (but your wget appears to be haing problems generating a valid file name -- perhaps add the command line parameter --restrict-file-names=windows ) for me the output looks slightly different: Code:
C:\Documents and Settings\Niel\wget>wget "http://xxxx:xxxxx@mediaserver:801/sage/MediaFileCommand?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=\\mediaserver\media2\Sage-Video\Alias-Reunion-2573896-0.avi" --15:30:58-- http://xxxxx:*password*@mediaserver:801/sage/MediaFileCommand?command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=%5C%5Cmediaserver%5Cmedia2%5CSage-Video%5CAlias-Reunion-2573896-0.avi => `MediaFileCommand@command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=%5C%5Cmediaserver%5Cmedia2%5CSage-Video%5CAlias-Reunion-2573896-0.avi.2' Resolving mediaserver... 192.168.0.50 Connecting to mediaserver|192.168.0.50|:801... connected. HTTP request sent, awaiting response... 200 Ok Length: unspecified [text/html] [ <=> ] 1,372 --.--K/s 15:30:59 (11.95 MB/s) - `MediaFileCommand@command=WatchNow&context=SAGETV_PROCESS_LOCAL_UI&FileName=%5C%5Cmediaserver%5Cmedia2%5CSageVideo%5CAlias-Reunion-2573896-0.avi.2' saved [1372]
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki Last edited by nielm; 01-15-2007 at 08:36 AM. |
#17
|
||||
|
||||
awesome - that version worked for me. I guess the one i had wasn't up to the task!
Thanks, Ryan |
#18
|
||||
|
||||
ok - so quick question - wget creates little 4kb files every time I run this setup. Is there a way to not create the files?
Thanks, Ryan found --delete-after |
#19
|
||||
|
||||
Are others having any problems with this now? I don't remember when but now when I try this method - Sage just goes to the home menu instead of launching a file...
|
#20
|
|||
|
|||
This works awesome for me.
I actually now can use my RF remote to control my MVP in the master bedroom! Love it!!! Can someone post the syntax of the "--delete-after" that seems to bork my commands. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|