• 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 58
xbmc minified as a server?
backgroundupdate is set for the video library. not yet for the music library.

I am using a 1811+ on which i setup a debian chroot system (you can find this in the wiki)

Inside of the debian system it was easy to follow all instructions posted here or in connection with the usual git compile tutorials.

Reply
(2012-11-03, 02:20)joelones Wrote: What's the best way to disable sound, the log seems to fill up with errors
Quote:20:19:31 T:3015170880 INFO: CAESinkALSA::Initialize - Attempting to open device ""
20:19:31 T:3015170880 INFO: CAESinkALSA - ALSA: pcm.c:2217Sadsnd_pcm_open_noupdate) Unknown PCM
20:19:31 T:3015170880 INFO: CAESinkALSA - Unable to open device "" for playback
20:19:31 T:3015170880 ERROR: CAESinkALSA::Initialize - failed to initialize device ""
20:19:31 T:3015170880 ERROR: CAESinkOSS::Initialize - Failed to open the audio device: /dev/dsp
20:19:31 T:3015170880 DEBUG: CSoftAE::InternalOpenSink - NULL Initialized:
20:19:31 T:3015170880 DEBUG: Output Device : Device not found
20:19:31 T:3015170880 DEBUG: Sample Rate : 44100
20:19:31 T:3015170880 DEBUG: Sample Format : AE_FMT_FLOAT
20:19:31 T:3015170880 DEBUG: Channel Count : 2
20:19:31 T:3015170880 DEBUG: Channel Layout: FL,FR
20:19:31 T:3015170880 DEBUG: Frames : 22000
20:19:31 T:3015170880 DEBUG: Frame Samples : 2
20:19:31 T:3015170880 DEBUG: Frame Size : 8
20:19:31 T:3015170880 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
20:19:31 T:3015170880 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 176000
20:19:42 T:3015170880 DEBUG: CSoftAE::Run - Sink restart flagged

This was bothering me, as xbmcserver is the most active process on my NAS. Here's what I did. It's probably not the cleanest way, but as this whole thing is a huge kludge, who cares?

1. Open ./xbmc/Application.cpp and comment out following
~ line 727:
Code:
/*
  // start the AudioEngine
  if (!CAEFactory::StartEngine())
  {
    CLog::Log(LOGFATAL, "CApplication::Create: Failed to start the AudioEngine");
    return false;
  }

  // restore AE's previous volume state
  SetHardwareVolume(g_settings.m_fVolumeLevel);
  CAEFactory::SetMute     (g_settings.m_bMute);
  CAEFactory::SetSoundMode(g_guiSettings.GetInt("audiooutput.guisoundmode"));
  */

~ line 3600:
Code:
// shutdown the AudioEngine
    //CAEFactory::Shutdown();

2. Re-compile xbmc shared library
3. Copy library to /usr/lib
4. Re-run make for xbmcserver

No guarantees, but this brought xbmc from the top offender in powertop back down to the middle of the pack
Reply
Thanks, will give that a try.

My log now seems to be getting filled up by that following:

Quote:11:59:51 T:2993683264 DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":1}
11:59:51 T:2993683264 DEBUG: JSONRPC: Calling player.getactiveplayers

using code from master as of Nov.30 (20121130-00a8099)
Reply
You have the web gui open? It generates a crapload of those.. It's not an error, it's just debug information from json and nothing to worry about regardless. Something is asking for the state of the players. Anything connecting via DLNA/UPnP? WebUI/HTTP page open? etc...

Reply
Thanks manxam.

On another note, I've manually modified sickbeard for jsonrpc suppost from this commit https://github.com/midgetspy/Sick-Beard/pull/524/files , by essentially checking out the dev branch and just copying the files over.

After building xbmc Nov.30 (20121130-00a8099) I'm getting errors with sickbeard updating the xbmc db

http://pastebin.com/6StTjCY2

Reply
I'm running Sickbeard development branch for the json-rpc update and am running Beta 1 and it works without issue.

Looking at the xbmc commits though there was a json-rpc version update and a bunch of changes to the return string response on the 30th which may be the issue with your "result" error. It's only a guess though but going through the commits it's the only major change that I can see that would break such a thing.
Reply
Thanks manxam, will just run from the dev branch then and see if it's better.

EDIT: so I checked out the dev branch and it seems to be better. i'm just wondering how you manage your updates? i noticed an update is available this morning, "There is a newer version available (you're 2 commits behind)— Update Now", i'm assuming this update applies for the branch i'm currenting in, development, correct? and not master
Reply
So for now, is smth working as headless server?
Any limitations or faults?
Reply
So what are the config file requirements to get the library scan working?

I took the plunge and built per instructions for the main xbmc git branch. Put everything required in /opt/xbmc-server. Added the init.d script to start xbmb-server. System is ubuntu i386 12.10 minimal in a virtual machine.

xbmc-bin starts with only the xrandr error. Stops and starts properly from init.

Code:
sudo ./xbmc-server --no-test --nolirc -p
sh: 1: /opt/xbmc-server/xbmc-xrandr: not found
XBMC Media Center 12.0-BETA3 Git:20121208-f5f3472
Copyright (C) 2005-2011 Team XBMC - http://www.xbmc.org

Starting XBMC Server

I copied over mediasources.xml over from my main xbmc frodo machine and modified the paths to point to local fstab cifs mounts. I enabled the web server in guisettings.xml. Modified advancedsettings.xml to point to a fresh mysql install and set backgroundupdate true for video library.

I see the web gui when I got to the url in my browser so thats working.

I look at my fresh mysql server and the MyMusic32 and MyVideos75 databases have been created.

Then I tail the xbmc.log file and issue the library update with curl:
Code:
curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://127.0.0.1:8585/jsonrpc?VideoLibrary.Scan

Log output:
Code:
09:34:43 T:2935987008  NOTICE: Thread Jobworker start, auto delete: true
09:34:43 T:3019732736   DEBUG: CLibrefmScrobbler: Clearing session.
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-http type: _xbmc-jsonrpc-h._tcp name:XBMC (whsbuntu) port:8585
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-tpc type: _xbmc-jsonrpc._tcp name:XBMC (whsbuntu) port:9090
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webserver type: _http._tcp name:XBMC (whsbuntu) port:8585
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.eventserver type: _xbmc-events._udp name:XBMC (whsbuntu) port:9777
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:35:13 T:2935987008   DEBUG: Thread Jobworker 2935987008 terminating (autodelete)
09:35:52 T:2977950528   DEBUG: webserver: request received for /jsonrpc?VideoLibrary.Scan
09:35:52 T:2977950528   DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}
09:35:52 T:2977950528   DEBUG: JSONRPC: Calling videolibrary.scan
09:35:52 T:2935987008  NOTICE: Thread CVideoInfoScanner start, auto delete: false
09:35:52 T:2935987008  NOTICE: VideoInfoScanner: Starting scan ..
09:35:52 T:2935987008   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
09:35:52 T:2935987008  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
09:35:52 T:2935987008   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
09:35:52 T:2935987008   DEBUG: Thread CVideoInfoScanner 2935987008 terminating

Looks like it starts and stops immediately. Either I missed a config step or something didn't build right.
Reply
(2012-12-09, 18:24)KRavEN Wrote: So what are the config file requirements to get the library scan working?

I took the plunge and built per instructions for the main xbmc git branch. Put everything required in /opt/xbmc-server. Added the init.d script to start xbmb-server. System is ubuntu i386 12.10 minimal in a virtual machine.

xbmc-bin starts with only the xrandr error. Stops and starts properly from init.

Code:
sudo ./xbmc-server --no-test --nolirc -p
sh: 1: /opt/xbmc-server/xbmc-xrandr: not found
XBMC Media Center 12.0-BETA3 Git:20121208-f5f3472
Copyright (C) 2005-2011 Team XBMC - http://www.xbmc.org

Starting XBMC Server

I copied over mediasources.xml over from my main xbmc frodo machine and modified the paths to point to local fstab cifs mounts. I enabled the web server in guisettings.xml. Modified advancedsettings.xml to point to a fresh mysql install and set backgroundupdate true for video library.

I see the web gui when I got to the url in my browser so thats working.

I look at my fresh mysql server and the MyMusic32 and MyVideos75 databases have been created.

Then I tail the xbmc.log file and issue the library update with curl:
Code:
curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://127.0.0.1:8585/jsonrpc?VideoLibrary.Scan

Log output:
Code:
09:34:43 T:2935987008  NOTICE: Thread Jobworker start, auto delete: true
09:34:43 T:3019732736   DEBUG: CLibrefmScrobbler: Clearing session.
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-http type: _xbmc-jsonrpc-h._tcp name:XBMC (whsbuntu) port:8585
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-tpc type: _xbmc-jsonrpc._tcp name:XBMC (whsbuntu) port:9090
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webserver type: _http._tcp name:XBMC (whsbuntu) port:8585
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.eventserver type: _xbmc-events._udp name:XBMC (whsbuntu) port:9777
09:34:43 T:2935987008   DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
09:35:13 T:2935987008   DEBUG: Thread Jobworker 2935987008 terminating (autodelete)
09:35:52 T:2977950528   DEBUG: webserver: request received for /jsonrpc?VideoLibrary.Scan
09:35:52 T:2977950528   DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}
09:35:52 T:2977950528   DEBUG: JSONRPC: Calling videolibrary.scan
09:35:52 T:2935987008  NOTICE: Thread CVideoInfoScanner start, auto delete: false
09:35:52 T:2935987008  NOTICE: VideoInfoScanner: Starting scan ..
09:35:52 T:2935987008   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
09:35:52 T:2935987008  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
09:35:52 T:2935987008   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
09:35:52 T:2935987008   DEBUG: Thread CVideoInfoScanner 2935987008 terminating

Looks like it starts and stops immediately. Either I missed a config step or something didn't build right.

Have you set the content for each of your sources?
Reply
which file and section is that? Any examples?

Here's sources.xml
Code:
<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    
    <video>
        <default pathversion="1"></default>
        
        <source>
            <name>Movies</name>
            <path pathversion="1">/media/whs/Movies</path>
        </source>
        
        <source>
            <name>TV Shows</name>
            <path pathversion="1">/media/whs/Recorded TV</path>
        </source>

    </video>
    
    <music>
        <default pathversion="1"></default>
        
        <source>
            <name>Music</name>
            <path pathversion="1">/media/whs/Music</path>
        </source>
    
    </music>
    
    <pictures>
        <default pathversion="1"></default>
        
        <source>
            <name>Pictures</name>
            <path pathversion="1">/media/whs/Pictures/</path>
        </source>
    
    </pictures>
    
    <files>
        <default pathversion="1"></default>
    </files>
    
</sources>
Reply
nevermind, missed the "all" at the end.
Reply
Well I saw a post about beta 2 and 3 of frodo not reading sources.xml so I pulled from git again and attempted to rebuild. The shared library builds fine but build xbmc-server is not working now:

Code:
~/xbmc/xbmc$ make -f make_xbmc-server
for d in ; do (cd "$d"; make pch ); done

I'm using the files from post #244 Something they changed in the last 24 hours?

Nevermind. I forgot the "all" after make_xbmc-server. I did checkout and build frodo beta 1 and am about to try that.
Reply
Okay, building from Frodo_beta1 tag doesn't resolve my issue. Still not scanning.
Reply
Okay, so I pointed to my old database that has the sources in the database and the scanner works. Now I just need to figure out what I need to add to the database or settings file to get the sources in my sources.xml to be used.
Reply
  • 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 58

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