Forum
Video Library does not work - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+--- Thread: Video Library does not work (/thread-1179.html)



Video Library does not work - kiney - 2nd Aug, 2013 09:40 PM

Hi,

although I seem to be the only one, I'll use the template from the "basic forum rules"...

Software
XBian version: 1.0Beta1.1
XBMC version: 12.2
Overclock settings:
arm_freq=900
core_freq=500
gpu_freq=500
gpu_mem_256=128
gpu_mem_512=128
sdram_freq=500
over_voltage=6
over_voltage_sdram=1

Hardware
Power supply rating: unknown
RPi model (model A/B 256mb/512mb): Model B
SD card size and make/type: 4GB
Network (wireless or LAN): LAN
Connected devices (TV, USB, network storage, etc.): NFS fileserver

Logile
Code:
03:19:46 T:2839540800 WARNING: DoWork - Unable to open video database. Can not save file state!
03:19:46 T:2769286208  NOTICE: Thread Jobworker start, auto delete: true
03:19:50 T:2906649664  NOTICE: Thread Background Loader start, auto delete: false
03:20:01 T:3042721792   ERROR: GetResumeItemOffset - Cannot open VideoDatabase
03:20:18 T:2906649664   ERROR: Previous line repeats 1 times.
03:20:18 T:2906649664  NOTICE: Thread Background Loader start, auto delete: false
03:20:18 T:2760897600 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
03:20:20 T:2906649664  NOTICE: Thread Background Loader start, auto delete: false
03:20:24 T:3042721792  NOTICE: Previous line repeats 1 times.
03:20:24 T:3042721792   ERROR: GetResumeItemOffset - Cannot open VideoDatabase
03:20:46 T:2906649664  NOTICE: Thread Background Loader start, auto delete: false
03:21:23 T:2906649664  NOTICE: Thread CVideoInfoScanner start, auto delete: false
03:21:23 T:2752508992  NOTICE: Thread Background Loader start, auto delete: false
03:21:24 T:2906649664  NOTICE: VideoInfoScanner: Starting scan ..
03:21:24 T:2906649664  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
03:21:24 T:2906649664  NOTICE: Thread Background Loader start, auto delete: false
03:21:38 T:3042721792   ERROR: GetResumeItemOffset - Cannot open VideoDatabase

Problem description:
Video Library or any other video database features do not work.
I access my movie collection over NFS, but it does not work either when I mount the NFS share on operating system level (fstab). At the moment I access the share with the build-in nfs support of xbmc.
I recently reinstalled xbian to fix other problems. Before everything worked (with some hiccups).
Not only the library is broken, but also the "mark as watched" feature.
Music library works without problems.
Selecting and watching movies from the file-view works just fine.

How to reproduce:
Select "set content" on any video Folder, configure the scraper and nothing happens.

I shortened the logfile above to what seems relevant. Every time I choose "set content" on any video Folder something similiar appears in the logfile.


Another small thing thats not worth a thread on its own:
watching 1080p DTS movies from a source using the build-in NFS support works fine, while mounting the same source on operating system level and accessing it as local file within xbmc stutters a bit. Why?


RE: Video Library does not work - kiney - 2nd Aug, 2013 11:18 PM

Ok.... stopped xbmc
Code:
service xbmc stop
and then deleted
/home/xbian/.xbmc/userdata/Database/MyVideos75.db
and started xmbc again...
Code:
service xbmc start
now it seems to scan my DB.. but it takes some time. I'll report back if it worked or not when the scraper finishes.


RE: Video Library does not work - mk01 - 3rd Aug, 2013 12:50 AM

(2nd Aug, 2013 09:40 PM)kiney Wrote:  watching 1080p DTS movies from a source using the build-in NFS support works fine, while mounting the same source on operating system level and accessing it as local file within xbmc stutters a bit. Why?

without any doubt because of nfs mount options used. I don't know, which xbmc is using, but you can check the ones on system level with just "mount"

performance (and specially lagging) is affected by more nfs mount options. for example using UDP/TCP, receive and send buffer sizes, use of nfs version (2,3,4) and more.

for example when using buffers in 2k - 64k, the performance (max bandwidth) can be as much different as 2x.

then UDP was known to provide lower latency, as it is not statefull. etc etc etc.

let us know about the first issue with video DB. I have never seen such errors.


RE: Video Library does not work - kiney - 3rd Aug, 2013 01:08 AM

Hi,

the library works again. It seems the database file got corrupted by some way. So if anyone has the same problem, just delete MyVideos75.db
XBMC seems to recreate it (empty of course) automatically on startup.

@mk01:
according to nfsstat on the server xbmc uses NFS 3 while I mounted it manually with NFS 4.
But xbmc does not seem to mount NFS shares anywhere but access them directly???


RE: Video Library does not work - mk01 - 3rd Aug, 2013 01:22 AM

(3rd Aug, 2013 01:08 AM)kiney Wrote:  according to nfsstat on the server xbmc uses NFS 3 while I mounted it manually with NFS 4.
But xbmc does not seem to mount NFS shares anywhere but access them directly???

ok, then try following options:

nfsvers=3,rsize=65535,wsize=65535

and retest your video.

xbmc is using system libs to provide the access, so at the end it uses the same libnfs for access. so the difference is in options for the nfs mount (or connection in xbmc case).


RE: Video Library does not work - kiney - 3rd Aug, 2013 01:44 AM

I experimented with some rsize, wsize options (from 8k to 64k) and tried with NFS 3 and NFS 4. The result is always the same. The video stutters a little every few seconds.
But its not really important for me, because the build-in NFS support of xbmc works fine.

One Idea: does xbmc perhabs treat local and network files differently (buffersize?)? Because in the view of xbmc a mounted NFS volumen should be just like local files.


RE: Video Library does not work - mk01 - 3rd Aug, 2013 01:49 AM

very good point ! exactly as you say.

xbmc is creating buffers for local and network sources. by default, for "local" almost no buffers (as most of the time there is local fs cache on fs level) and up to xMB for network.

those settings should be in guisetting.xml.

and to be honest, I use the xbmc own access as well. from simple reason, with network shared sources.xml and mediasources.xml, its much more simpler global / shared access from more XBMC installations in the network. It would be possible to configure with shared mounts (the same for all) via autofs, automount, but this is quite different per platform. but xbmc's sources.xml are the same over all supported platforms.


RE: Video Library does not work - kiney - 3rd Aug, 2013 02:18 AM

I played a little with the cache settings in guisetting.xml, but I don't really get it.
Is the file documented somewhere?
Theres an option
Code:
<cache>
        <harddisk>256</harddisk>
</cache>
That seems to have no effect at all on videos. And another section
Code:
<cachevideo>
        <dvdrom>2048</dvdrom>
        <internet>4096</internet>
        <lan>2048</lan>
    </cachevideo>
Where there is no option for harddisk. If I add a <harddisk> tag on my own, xbmc removes it on next startup.
Also where is the difference of these caches to <cachemembuffersize> in advancedsettings.xml?


RE: Video Library does not work - mk01 - 3rd Aug, 2013 03:25 AM

what happens, if you change the <cachevideo><lan> to 8388608 ?


RE: Video Library does not work - kiney - 3rd Aug, 2013 04:27 AM

no change for mounted NFS volumes


RE: Video Library does not work - mk01 - 3rd Aug, 2013 06:03 AM

then I suppose it's not worth spending time anymore Smile

sometimes, some things are simply happening.