• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 58
xbmc minified as a server?
#1
I am currently in blueprint process for managing multiple xbmc's via a central mysql database located on a server. I am currently designing a webui that manages every xbmc system through the server. my question really regards to how i could get xbmc locally on the server without UI etc just so i can make system calls via json or exec commands from php to update the library and obtain library information aswell as have the thumbs etc stored locally... The server i am currently working with is Ubuntu Server.
Reply
#2
XBMC from master doesn't support headless mode. However, there is a patch: https://github.com/xbmc/xbmc/pull/890
So you cn compile XBMC with that patch yourself or use the normal XBMC and use a little more resources.

As for the Webui: Did you check Marachino? It's doing eactly what you want...
Reply
#3
Patched Eden => https://github.com/vajonam/xbmc/tree/Eden-Server

new command line option: --server

For configuration, multiple choices:
- edit XML files
- configure through gui before executing with --server
- configure an Eden install on an other PC and copy config files
Reply
#4
after hours of trying to get Marachino working (mainly due to not realizing my vm was set to nat and not bridged!) it came accross impressive but for some reason it doesnt feel right for me, my webui is half completed and is working very well and uses a library interface like the Eden's default UI, as well as better filters and search functions, i aslo find it a bit compact. So I think my own tailored version would suit me better imo. I will look into both the supplied links tomorrow as its late now and determine the best direction to go... My reason for no X11 is purely to have a server with as minimal applications and purely act as a server and not a UI. But thanks for your help in the mean time.
Reply
#5
All is working good, its a shame it still requires all the dependencies thats not even being used, a server would probably be better if it was a standalone application. Anyways I have 1 issue, I copied a sources.xml from a client xbmc to the server settings and the database was forged after initiating a scan but no movies were added. I have a feeling this is to do with samba authentication. Where can I add this in a settings file?
Reply
#6
LOL nevermind found it, it doesnt help looking for the file in the wrong machine :/
Reply
#7
Im still struggling and event though i have the sources file in place.... I think it wont add because theres no where to define a scraper for them... How do i assign a scraper to a path? I have checked all over the wiki and files and cant seem to figure this one out.
Reply
#8
OK Never mind, I found it in the database and added it manually and now have successfully scanned videos without any GUI access. This server settings needs alot more improvments and i find it strange not to have these scaper settings specific for paths in the sources.xml file, if so everything would had been alot smoother, but i am hoping this server side off xbmc picks up quickly...

EDIT: I am a bit wary off the recursive field within the paths table and what value it should hold, any insight to this will be appreciated.
Reply
#9
the number of dirs allowed to be recursed under the folder. it is either 0 (no recursion), 1 (when doing directory name based lookups without recursion - need to recurse one level) and a large number (when doing recursion).
Reply
#10
With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications... Smile

Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...

http://pastebin.com/WpEvRTws

Enjoy!
Reply
#11
(2012-06-13, 10:48)vicbitter Wrote: With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications... Smile

Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...

http://pastebin.com/WpEvRTws

Enjoy!

Thank you for the sample, i will try to do some improvements to have a complete Headless XBMC Server : ) (webserver, json, periodical updates)

Reply
#12
(2012-06-15, 17:04)Odon Wrote:
(2012-06-13, 10:48)vicbitter Wrote: With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications... Smile

Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...

http://pastebin.com/WpEvRTws

Enjoy!

Thank you for the sample, i will try to do some improvements to have a complete Headless XBMC Server : ) (webserver, json, periodical updates)


Thats great news! If you need a WHS2011 tester im right here!! Smile
Reply
#13
(2012-06-16, 12:56)jompan87 Wrote:
(2012-06-15, 17:04)Odon Wrote:
(2012-06-13, 10:48)vicbitter Wrote: With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications... Smile

Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...

http://pastebin.com/WpEvRTws

Enjoy!

Thank you for the sample, i will try to do some improvements to have a complete Headless XBMC Server : ) (webserver, json, periodical updates)


Thats great news! If you need a WHS2011 tester im right here!! Smile

I don't know if libxbmc is buildable on Windows yet.
Reply
#14
(2012-06-15, 17:04)Odon Wrote:
(2012-06-13, 10:48)vicbitter Wrote: With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications... Smile

Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...

http://pastebin.com/WpEvRTws

Enjoy!

Thank you for the sample, i will try to do some improvements to have a complete Headless XBMC Server : ) (webserver, json, periodical updates)

You'll find that to get the webserver, json, etc running you won't have do much at all... In fact, all you need to do is, remove line 95 and the "g_application.IsVideoScanning()" check from the while loop...

After that you can launch it as a background process and control it with http, json, etc

For example, having it run in the background, you would issue the following HTTP commands to do a video library update...

To get XBMC to update the video library:
Code:
curl --user xbmc_web_user:xbmc_web_password "http://xbmc_ip_address:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(XBMC.UpdateLibrary(video))"

To get XBMC to exit:
Code:
curl --user xbmc_web_user:xbmc_web_password "http://xbmc_ip_address:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(XBMC.Quit)"

Note: You need to enable HTTP access in XBMC and xbmc_web_user, xbmc_web_password, xbmc_ip_address will be specific to your setup

Reply
#15
I'm trying to compile the cpp but keep getting stuck.
Code:
git clone git://github.com/xbmc/xbmc.git
cd xbmc
wget http://pastebin.com/download.php?i=WpEvRTws -O xbmcvideolibraryscan.cpp
g++ xbmcvideolibraryscan.cpp -Ixbmc/ -Ilib/ -o xbmcvideolibraryscan
should normally do the trick right ?

I'm getting a lot of this kind of errors
Code:
ISO C++ forbids declaration of âsomethingâ with no type

It also seems to compile the windows version somehow because i see Iphlpapi.h being included from NetworkWin32.h
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 58

Logout Mark Read Team Forum Stats Members Help
xbmc minified as a server?9